Reposting the mining guide here to clear up the OP and link to this.
Linux tutorialYou will need to open two terminals. The current implementation separates the wallet and daemon to make cloud mining easier.
First, you must compile the binaries. Run these commands in the location you want to install to:
git clone git://github.com/monero-project/bitmonero.git
cd bitmonero
sudo apt-get update
sudo apt-get install libboost-all-dev cmake
make -j4
The source will take a little while to compile. After it is done, in this terminal, type these commands:
cd build/release/src
./bitmonerod
Let it sync. Don't close (once the daemon is active, you can use
show_hr to get your hashrate or
set_log 1/2/3 to change the verbosity of the logs). If you close the daemon whilst you are mining, mining will stop (obviously) and if you open the daemon again the mining won't resume (you must use the start_mining command on the wallet for that).
Now, open a second terminal.
On
terminal 2, navigate to the same location and type these commands:
cd bitmonero/build/release/src
./simplewallet --generate-new-wallet=name_of_my_wallet.bin
You will be prompted for a password. Be careful: you won't have to type a confirmation so beware of typos!
Close the wallet with the "exit" command.
Now type this command:
./simplewallet --wallet-file=name_of_my_wallet.bin
and enter your password. If you forgot your password or mistyped it at creation time, delete every file starting with name_of_my_wallet.bin and start over. Every MRO would be lost forever, so it's important that you do it just after the creation, before any mining. ALWAYS BACK UP YOUR WALLET.
Go down to the mining section to get started. You can type
help in both the daemon and simplewallet to see more commands. If you'd like to see blocks as the come into the network, simply type "set_log 1" in the daemon (
terminal 1).
Good luck and happy mining!
Windows tutorialYou can use the command line as above. You can also use the batch file shown below. Paste the text into notepad and save it as a .bat file. Note that you can change the name of your wallet file if you want (it's wallet.bin here). Double click the .bat file then go down to mining after waiting for terminal 1 to sync.
@echo off
tasklist /FI "IMAGENAME eq bitmonerod.exe" 2>NUL | find /I /N "bitmonerod.exe">NUL
if not %ERRORLEVEL% == 0 (
echo Starting node...
start /MIN bitmonerod.exe
) else (
echo Node already started.
)
tasklist /FI "IMAGENAME eq simplewallet.exe" 2>NUL | find /I /N "simplewallet.exe">NUL
if not %ERRORLEVEL% == 0 (
if exist wallet.bin.keys (
echo Starting previous wallet...
start simplewallet.exe --wallet wallet.bin
) else (
echo Starting new wallet...
start simplewallet.exe --generate-new-wallet wallet.bin
)
) else (
echo Wallet already started.
)
MiningAnd now the good stuff: mining!
Since the wallet can command the daemon (miner), enter this in the wallet (
terminal 2):
start_mining <number of threads>
To get your number of threads, use
nproc on Linux,
sysctl -n hw.ncpu on Mac, and
WMIC CPU Get DeviceID,NumberOfCores,NumberOfLogicalProcessors on Windows. Or course, you don't have to use all your threads (especially if you are using your computer for something else such as simultaneous GPU mining).
You can mine to a specific address by typing this in the daemon (
terminal 1, not the wallet terminal):
start_mining <address> <number of threads>
By the way: if you want to know your hashrate, type show_hr in the daemon. And if you want to change the amount of information in the daemon, use set_log 1 (least info) to set_log 3 (max info).
How can you know that you are actually mining? Check you CPU usage :-) If it's less than 80%, chances are you are not mining.
I hope this tutorial will prove useful.
Address for tips to author David Latapie:
46ctfLBhgyzJm61oTtDfu9GbVhG7ito4fNiQjdZcB5bL3mz5ejQrPD29uEkDHFzCVTHGFqAdG456w6ivYp7K23SiGREUiQe