I didn't see this thread earlier (I don't post on weekends). I would be a little cautious doing this if I were you. A few things caught my eye that I'd like to highlight.
[*]It appears that you haven't lived with this friend yet. It can work out quite well to live with a good friend, but I bet in the majority of cases, it won't. I can't think of a single person I knew in college who moved in with a best friend, and who didn't hate each other at the end. But those people who moved in with a complete stranger had a great time and a new friend at the end. Often you enjoy being with your friend but not spending 100% of your time with him. I would personally try renting a place for a few months with him (sometimes in college towns you can get a 3 month lease) before diving into a major committment like a home.
[*]Buying a home comes with upfront costs. Minimally you'll need to pay for the title inspection (~$500), bank fees (~$500ish), termite inspection ($100), and other fees which depend on house price (say 1%-1.5% total). When it is all said and done, you can often have $3-5k worth of closing costs for an inexpensive house. Then you have house maintenance, property taxes, house insurance, etc to consider. But you do save on rent and you can get a potential tax deduction. In order for the savings to overcome the expenses, you have to live there for a while. A rule of thumb is 5 years. If you spend less than 5 years in a house, you often lose money. You said you wanted to "live there...a couple years". The end result is that for such a short time period, you very well may lose money when compared to renting an equivalent house. Of course if housing prices skyrocket this might not be true. But likely it will be.
[*]You mentioned in your other thread a lot of problems. Banks won't like this. You are at a new job with high credit card debt. That screams high interest rate mortage (if you can get one at all).
If you really want to do this, I'd suggest following Evadman's advice. Have your friend buy it, and sign a legal contract where you rent from him. If you want to share a part of the costs and potential profits of the house, build that into your rent agreement, or sign a seperate agreement.