Are you asking how to go about getting the money needed to post bail? Or are you asking how to go about getting the court to allow you to get out on bail?
If you are asking the first of these, there are two main ways to obtain bail. You can get the money from a company that specializes in providing bail or you can raise the money informally. In other words, you can get it out of your own assets or you can raise it from family and friends. Which you choose generally depends on how much money you have.
If you are asking the second question, the main way to get bail is to convince the judge that you will show up for your trial date and will not harm anyone in the meantime. This is generally done by showing ties to the community and by showing that you are not a threat to anyone.
Bail can be paid in three ways. The first is cash or check in the full amount of the bail determined by the judge. The second is to turn over the deed to property equal to the full amount of bail (e.g house title). The third is a bail bond. Bail bondsmen are like creditors. They take a percentage of the bail (usually 10 to 15%) and pay the full amount to the court. When the person shows up for court, their money is returned to the bail bondsman. The bondsman usually keeps the first 10 or 15 percent, paid by the person charged with the crime, as their fee for the "loan" of the rest of the bail. If they fail to show for court they can recoup their money and have the person back in jail.