Bitcoin Forum
May 04, 2024, 03:17:45 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: A beginners guide to CPU Mining On Ubuntu 12.04 [TuT]  (Read 36750 times)
Conch (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 0



View Profile
May 21, 2012, 02:35:46 PM
 #1

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.
1714835865
Hero Member
*
Offline Offline

Posts: 1714835865

View Profile Personal Message (Offline)

Ignore
1714835865
Reply with quote  #2

1714835865
Report to moderator
1714835865
Hero Member
*
Offline Offline

Posts: 1714835865

View Profile Personal Message (Offline)

Ignore
1714835865
Reply with quote  #2

1714835865
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714835865
Hero Member
*
Offline Offline

Posts: 1714835865

View Profile Personal Message (Offline)

Ignore
1714835865
Reply with quote  #2

1714835865
Report to moderator
1714835865
Hero Member
*
Offline Offline

Posts: 1714835865

View Profile Personal Message (Offline)

Ignore
1714835865
Reply with quote  #2

1714835865
Report to moderator
pghbsa
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 20, 2013, 02:21:28 PM
 #2

Even with being in a mining pool, would it still be pointless?
Gabi
Legendary
*
Offline Offline

Activity: 1148
Merit: 1008


If you want to walk on water, get out of the boat


View Profile
February 20, 2013, 02:31:56 PM
 #3

Gabi guide to mining:
CPU mining: useless
GPU mining: almost useless

What to do: get ASICs

 Wink

Yes, cpu mining is totally useless

irregular
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
May 27, 2013, 07:27:17 PM
 #4

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?
DooMFeaR
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 03, 2014, 01:11:16 AM
 #5

This means its working correctly?

http://i62.tinypic.com/jz7b6b.jpg
Jacce
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250


View Profile
February 03, 2014, 01:14:46 AM
 #6

If you want to mine with CPU, you could at least mine a coin that is only minable with CPU, like Primecoin or Quarkcoin.
DooMFeaR
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 03, 2014, 01:17:31 AM
 #7

This is a dedicated server running ubuntu with Intel Core i5 Processor and 16 GB of RAM Memory. What should I do?
kroleg
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
February 21, 2014, 07:57:16 AM
 #8

I'm gonna check this out, seems like a great tutorial. thanks!
drazen
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
March 21, 2014, 09:14:20 AM
 #9

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.
vnvizow
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250



View Profile
March 21, 2014, 09:50:01 AM
 #10

Great tutorial but wouldn't it make more sense to post this in the mining section?
Shogen
Legendary
*
Offline Offline

Activity: 966
Merit: 1001



View Profile
March 21, 2014, 02:58:00 PM
 #11

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.

Muhammed Zakir
Hero Member
*****
Offline Offline

Activity: 560
Merit: 506


I prefer Zakir over Muhammed when mentioning me!


View Profile WWW
April 25, 2014, 04:40:31 PM
 #12

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 .

PerrythePlatypus
Member
**
Offline Offline

Activity: 109
Merit: 10


View Profile
April 26, 2014, 04:23:25 AM
 #13

This means its working correctly?


Yes it is, however, the speed is far too slow.
shahzadex
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
September 01, 2016, 06:46:08 AM
 #14

Need Help Any One Help me i have 24 core Server i start Server After slushpool Not Show My date

connect me :- skype:- shahzadex
Orange Mango
Member
**
Offline Offline

Activity: 130
Merit: 10


View Profile
September 02, 2016, 06:34:35 AM
 #15

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.
equator
Legendary
*
Offline Offline

Activity: 1190
Merit: 1002


View Profile
September 06, 2016, 04:07:03 PM
 #16

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.
Tyrantt
Hero Member
*****
Offline Offline

Activity: 1022
Merit: 564

Need some spare btc for a new PC


View Profile
September 06, 2016, 05:53:58 PM
 #17

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?

Need some spare btc for a new PC that can at least run Adobe Dreamweaver.

BTC - 19qm3kH4MZELkefEb55HCe4Y5jgRRLCQmn ♦♦♦ ETH - 0xd71ACd8781d66393eBfc3Acd65B224e97Ae1952D
ERossin
Sr. Member
****
Offline Offline

Activity: 490
Merit: 262


The World’s First Blockchain Core


View Profile
September 07, 2016, 11:36:15 AM
 #18

I will try your guide for my laptop UBUNTU mining some altcoins


███
███
███
███
███
███
███
███
███
███
███
■    PRIVATE SALE is LIVE    ■
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
Whitepaper   ■   Bounty   ■   Bitcointalk

███
███
███
███
███
███
███
███
███
███
███
                        ███
                     ▄▄ ▀▀▀ ███
                     ██▀ ▄▄ ▀▀▀
                   ▄▄    █▀▀ ▄▄ ██
                   ▀▀ ▄█  ▄▄ ▀
                  ██  ▀ ▄ ▀
                  ▄▄ █▄ ▀▀
                  ▀▀  ▄ ▀
   ▄▄              ██ ▀ ▀
   ██▀               ▄ ▀
  ▄  ▄█         ▄ ▄   ▀
 ███  ▀ █▄ ▄▀ ▀▄  ▀  ▄ ██ ██
  ▀▀ █▄ ▄  ▄█ ▀ █▀  ▀ ▄ ▄▄  ▄█▄
███     ▀▀   ▄█▄       ▄ ▀ ▄ ▀ ▄
▀▀▀ ██ ██ ██  ▀         ▄▄ ▀▀ ▀██
                         ▀ ▄█  ▄▄
                        ▄█ ▀▀ ▀██
                        ▄ ▄█▄
                       ▀▀ ▀▀
                      ██
Skynet
███
███
███
███
███
███
███
███
███
███
███
Telegram   ■   Facebook   ■   Twitter   ■   Medium   ■   Reddit   ■   LinkedIn
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
CREATING THE INTELLIGENT MACHINE ECONOMY

███
███
███
███
███
███
███
███
███
███
███
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!