Post
Topic
Board Beginners & Help
Topic OP
A beginners guide to CPU Mining On Ubuntu 12.04 [TuT]
by
Conch
on 21/05/2012, 14:35:46 UTC
Hey guys, I'm pretty bored right now till I get released from the newbie section so I thought I'd write a little guide, to help people get started in Mining.

I figured it would be easier for people to start CPU Mining to begin with, then they can move onto GPU mining, once they feel comfortable.

Note: CPU mining is pretty pointless, the reason I'm writing this guide is to help people get started with the basics, I tried mining on a single core CPU laptop, it was absolutely pointless, and I run the risk of overheating my laptop and I basically got no where, if you want to be a dedicated miner, I recommend buying/using a rig fitted with a GPU.

With that out of the way, let's begin..

So I presume you're using the latest Ubuntu edition which is, 12.04 (Precise Pangolin) If you're using Windows, there are guides you can follow on here Smiley

We are going to be using a command line miner called "CPUMiner" - Don't worry if you don't feel comfortable using the terminal, and want to use GUI's. - It's really easy Smiley
Besides, you're using Linux, almost everything is done in the Terminal for quicker tasks Smiley

Open up the terminal, and we want to install some dependencies for CPUMiner,
Type..
Quote
sudo apt-get install libcurl4-openssl-dev
Press "Y" to continue installing, Once done, go to this page..

http://forum.bitcoin.org/index.php?topic=1925.0

And extract the folder to your Desktop.
Now back in the terminal, type:
Quote
cd Desktop/cpuminer-[VersionHere]
Example of recent version..
Quote
cd Desktop/cpuminer-1.0.2

Now we need to install it from source.
Back in the terminal, type:
Quote
./configure
Quote
make
Quote
sudo make install

Hopefully no errors will occur, which means we successfully installed from source.
Now whenever you want to use CPUMiner, we can call it anywhere from the /bin/ dir. - Don't worry if you don't understand, It's not needed Smiley

Now back in the terminal, type:
Quote
minerd --help

We're just going to be using the minimal switch arguments, which is --URL - For the Mining Pool we want to join to start mining.
And: --userpass Username:Password for the worker which is assigned to the pool. Again don't worry if you don't understand, it will all become clear Smiley

This is the Mining pool I use:- https://mining.bitcoin.cz/
As you can see on their homepage, the URL is right in front of your eyes after you scroll down a bit Cheesy We will use this in CPUMiner, it is as follows:
Quote

Now register yourself an account on Bitcoin.cz, once done, assign a new worker - This will be used for the Username:Password in CPUMiner.
A worker is as follows:
Quote
Username:[Worker.ID]
So mine could be:
Quote
Conch:MiningPool

This is the full username followed by : Then the password.
So to wrap this up and get the CPUminer running for you. Type in the Terminal:
Quote
minerd --url http://api.bitcoin.cz:8332 --userpass Conch.MiningPool:Password

Replace Conch.MiningPool:Password - To your own Username and Password.

It should start calculating your hashes and you're off Smiley
There will be a few messages pop up, like the status of your Mining progress, from "Yay!!!" - for Good (Working well) & "Boooo" - For bad, (basically meaning you're mining for nothing because it isn't working Tongue This could be because of a wrong password or other problem though.)

And that wraps it all up, I hope you learn something from this tutorial Smiley
I also can't stress this enough, if you want to earn cash in your back pocket, please consider upgrading for a GPU/power rig Cheesy

If you found this tutorial useful please feel free to drop me a little BTC, every penny, ahem.. BTC counts Smiley :
Quote
1466ywcJbrxrcwefefxcKgyJyVzBv2vJpD
. - I'll do my best to bring more tutorials.

Regards,
~Conch.