Replaced hard drive - trying to do a clean install of OS-X on 2011 Macbook Pro I've seen plenty of how to's on how to upgrade if you have a working installation of OS-X, however I purchased this macbook used, it needed a hard drive and a keyboard.

So I put a new hard drive in it and installed Ubuntu temporarily.

How do I get the image of the newest OS-X onto a USB thumb drive? I can't access the mac store since I don't own any other Apple products.

Keep in mind I'm using a regular, non-mac external keyboard until my new one shows up.
Well if you have no other Mac, nor access to another Mac that you can download Mavericks with then you'll have to use internet recovery.

Boot the Mac holding down COMMAND-R (on a PC keyboard that would be WINDOWS-R) And if there is no recovery partition you go into internet recovery and get the OS your Mac shipped with (Possibly Mountain Lion).

Probably best to use a wired connection otherwise it will take hours.

I gather it's not difficult to do, but Apple has a knowledge base article here with the details.

http://support.apple.com/kb/HT4718?viewlocale=en_US&amp;locale=en_US

Once you get Mountain Lion installed you can use the App Store to download Mavericks. 

And if you just have to start with Mavericks, you'll have to find a friend with a Mac that can download that installer for you...