Author

Topic: A beginners guide to CPU Mining On Ubuntu 12.04 [TuT] (Read 36768 times)

sr. member
Activity: 490
Merit: 262
The World’s First Blockchain Core
I will try your guide for my laptop UBUNTU mining some altcoins
hero member
Activity: 1022
Merit: 564
Need some spare btc for a new PC
Can it even payout? I was thinking of running a miner for some altcoins but I have a shitty pc. Is mining with a slower pc profitable in any way and is there any preset miner for any kind of alt?
legendary
Activity: 1190
Merit: 1002
How much hard drive space does ubantu take up ? I'm looking for a way to mine on my PC withough a HDD just a USB drive. Its an older PC and buying a HDD fpr it would be wasted.

If you are telling that this PC is older and buying a HDD is wasted, then why do  you want to mine, as i think your PC is not sufficient to load ubantu and the latest version is high configured.
member
Activity: 130
Merit: 10
How much hard drive space does ubantu take up ? I'm looking for a way to mine on my PC withough a HDD just a USB drive. Its an older PC and buying a HDD fpr it would be wasted.
newbie
Activity: 10
Merit: 0
Need Help Any One Help me i have 24 core Server i start Server After slushpool Not Show My date

connect me :- skype:- shahzadex
member
Activity: 109
Merit: 10
This means its working correctly?


Yes it is, however, the speed is far too slow.
hero member
Activity: 560
Merit: 509
I prefer Zakir over Muhammed when mentioning me!
Thank You Conch!  Grin
I installed CPU miner but I didn't know how to mine with it. In windows we can use a notepad file and save it as a .bat file. But in Ubuntu I was totally confused. I like to donate BTC but unfortunately I don't have enough BTC to donate. If you find any affiliate program in any site that would give you BTC when I sign up, please post the your referral link. So that I can sign up through your referral link and you can get ~0.011-0.0011 BTC .
legendary
Activity: 966
Merit: 1001
mining bitcoin with cpu it is nonsense ))

The thread was made in 2012, and OP knew CPU-mining bitcoin is pretty pointless in 2012  Cheesy

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.
sr. member
Activity: 364
Merit: 250
Great tutorial but wouldn't it make more sense to post this in the mining section?
newbie
Activity: 1
Merit: 0
Thanks for the tutorial Smiley

If I wanted to run another pool (eg. quirkcoin) at the same time, can I run another term window with the same minerd command with credentials relating to that pool?

Also, is it advisable to run more than one?

Thanks in advance.
newbie
Activity: 34
Merit: 0
I'm gonna check this out, seems like a great tutorial. thanks!
newbie
Activity: 2
Merit: 0
This is a dedicated server running ubuntu with Intel Core i5 Processor and 16 GB of RAM Memory. What should I do?
sr. member
Activity: 294
Merit: 250
If you want to mine with CPU, you could at least mine a coin that is only minable with CPU, like Primecoin or Quarkcoin.
newbie
Activity: 2
Merit: 0
This means its working correctly?

http://i62.tinypic.com/jz7b6b.jpg
newbie
Activity: 2
Merit: 0
Hey great tutorial!

I followed it very closely, and I'm getting an error I can't seem to find a solution to. I am using the same mining pool as you, and have followed the same formatting for starting to mine. This is what I get though:

toast@toast:~/Desktop/cpuminer-1.0.2$ sudo minerd --url http://api.bitcoin.cz:8332 --userpass USER:PASS
[2013-05-27 15:24:07] Binding thread 0 to cpu 0
[2013-05-27 15:24:07] HTTP request failed: The requested URL returned error: 502
[2013-05-27 15:24:07] json_rpc_call failed, retry after 30 seconds
[2013-05-27 15:24:08] Binding thread 1 to cpu 1
[2013-05-27 15:24:09] Binding thread 2 to cpu 2
[2013-05-27 15:24:10] Binding thread 3 to cpu 3
[2013-05-27 15:24:11] 4 miner threads started, using SHA256 'c' algorithm.
[2013-05-27 15:24:38] HTTP request failed: The requested URL returned error: 502
[2013-05-27 15:24:38] json_rpc_call failed, retry after 30 seconds


That error then keeps repeating. Every once in a while theres a 403 error, but mostly all 502. Any ideas?
legendary
Activity: 1148
Merit: 1008
If you want to walk on water, get out of the boat
Gabi guide to mining:
CPU mining: useless
GPU mining: almost useless

What to do: get ASICs

 Wink

Yes, cpu mining is totally useless
newbie
Activity: 4
Merit: 0
Even with being in a mining pool, would it still be pointless?
newbie
Activity: 14
Merit: 0
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.
Jump to: