Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: MEPHuk on January 21, 2014, 06:31:31 PM



Title: Help needed setting up solo mining
Post by: MEPHuk on January 21, 2014, 06:31:31 PM
Hi, i need help setting up solo mining. I found this https://bitcointalk.org/index.php?topic=83371.0 (https://bitcointalk.org/index.php?topic=83371.0), but i wont be mining litecoin. But will most of that notepad entry still be relevant for other coins ? (say. offerings).

Thanks in advance

MEPH


Title: Re: Help needed setting up solo mining
Post by: MEPHuk on January 21, 2014, 08:05:10 PM
Anyone ?

MEPH


Title: Re: Help needed setting up solo mining
Post by: kfactor on January 22, 2014, 12:09:33 AM
Quick & Dirty Method

If you haven't already, setup bitcoin-qt (latest is 0.8.6) and download the blockchain.

Once bitcoin-qt is up to date, shut it down (close application) and do the following:


Assuming windows machines

1) Navigate to C:\Documents and Settings\your_user\Application Data\Bitcoin

(If you can't find this folder, enable "show hidden files" in your control panel under folder options / view)


2) In the above folder edit or create "bitcoin.conf" and insert the following:

daemon=1
server=1
gen=0
rpcuser=your_chosen_user_name
rpcpassword=your_chosen_user_password
rpcallowip=127.0.0.1
rpcallowip=192.168.2.*
rpcport=8332

  • The user / password combo is yours to choose, and are the pool credentials that bitcoin-qt will accept from BFGminer or standalone stratum proxy
  • The allow ip of 127.0.0.1 is localhost, and you would use this if your BFGminer or standalone stratum proxy is hosted on the same machine as bitcoin-qt
  • If bitcoin-qt is on another machine on your network use the IP range of your network with a wildcard (eg: 192.168.2.*), so any machine can talk to bitcoin-qt
  • Choose an rpcport, I suggest 8832
  • Note: gen=0 may be deprecated, not sure but no harm to leave it in

3) Save bitcoin.conf file


4) Navigate to your bitcoin-qt install (probably C:\Program Files\Bitcoin)

5) Launch bitcoin-qt in server mode. You can do this a few ways:

    A) Hold shift and right-click anywhere in the bitcoin folder and select "open command window here". In dos box type "bitcoin-qt.exe -server". Bitcoin will load and your solo pool is running.
or
    B) Create a batch file anywhere on your machine with the following code, which when run will open a box and prompt you to hit a key before launching bitcoin-qt in server mode. Name the batch file anything.bat

@echo off
echo Press any key to run Bitcoin-QT Server mode
pause
CD C:\Program Files\Bitcoin
start bitcoin-qt -server


Now that bitcoin-qt is running in server mode, point your stratum proxy or BFGminer to bitcoin-qt (port 8332) and start hashing! Here is a shortcut example to launch BFGminer in solo mining mode:

C:\bfgminer\bfgminer.exe -o 127.0.0.1:8332 -u my_rpc_user -p my_rpc_password

In the above instance BFGminer is running on the same machine as bitcoin-qt. Insert whatever other commands you need to get your miners talking to BFGminer.



You should be good to go ...

Cheers  :)



Title: Re: Help needed setting up solo mining
Post by: MEPHuk on January 22, 2014, 03:02:04 PM
Thanks for the reply ! The batch file you mentioned, you said save it anywhere on my machine.. would inside the wallet qt folder be ok ?

MEPH


Title: Re: Help needed setting up solo mining
Post by: kfactor on January 22, 2014, 04:01:15 PM
Thanks for the reply ! The batch file you mentioned, you said save it anywhere on my machine.. would inside the wallet qt folder be ok ?

MEPH

That will work fine, but as a general rule you don't want to be going into the application data folder (where wallet.dat resides) to run executables.


Title: Re: Help needed setting up solo mining
Post by: MEPHuk on January 23, 2014, 12:36:28 AM
Ok, thanks for the reply !

MEPH


Title: Re: Help needed setting up solo mining
Post by: harkonnen on January 26, 2014, 10:32:35 AM
Great article.
Thank you, kfactor.