bitcoin CPU mining with Ubuntu 12.04

December 16, 2013

Please do not bother responding with how worthless this is.  This is purely academic.  A few of the guys at my office were curious and I was idle for a little while this weekend and got started with the basics of the basics in bitcon mining.

Prerequisites

Go setup yourself a bitcoin wallet here –> http://www.trybtc.com  There will be some tutorials, feel free to go through those.

You’ll end up here –> https://coinbase.com This is where you can keep track of your account.  First let’s pop in there and grab the bitcoin address that we will use in a bit.  You can find it under Account Settings –> Bitcoin Addresses.  This is how others can give you money.

Create an account here –> https://mining.bitcoin.cz/ This is the only way that CPU mining is even relevant….which it’s really not.  This is a pool of individuals that work on mining bitcoin blocks.

 

Ok, now that you have setup the accounts, here is the basic how-to for setting up CPUMINER on Ubuntu 12.04 Server.  I have this deployed on 16 VM’s running 1 processor and 512 Megs of RAM each for testing.

Install Ubuntu 12.04 Server and get root

wget https://s3.amazonaws.com/clamasters/linked/bcminingprep.sh
chmod o+x bcminingprep.sh

edit bcminingprep.sh for your worker user/pass found under “My Account” in the bitcoin.cz site.

./bcminingprep.sh
./mine.sh

Now you are mining.  Please feel free to comment how fast or slow your mining is going.  I have 16 VM’s on modern hardware under XenServer 6.2 running on AMD processors all getting 4.57 khash/s.  Please note…this is very slow and you will likely never make your money back once power is concerned.

If you want to learn more about bitcoin and bitcoin mining, here are 2 links that I found to be helpful.  http://www.reddit.com/r/bitcoin and http://www.bitcoinmining.com.

Leave a Reply

Your email address will not be published. Required fields are marked *


*