This is not a complete recipe - it's a component of the cryptominer "uber-recipe", but has been split into its own page to reduce complexity.
So, you have GPUs. You can mine cryptocurrency. But what cryptocurrency should you mine?
- You could manually keep track of whattomine, and launch/stop miners based on profitability/convenience, as you see fit.
- You can automate the process of mining the most profitable coin based on your GPUs' capabilities and the current market prices, and do better things with your free time! (receiving alerts, of course, if anything stops working!)
This recipe covers option #2 😁
Miner hotel is a collection of scripts and config files to fully automate your mining across AMD or Nvidia cards.
- Latest Minerhotel release for Linux
- Time and patience
Unpack the minerhotel release. You can technically unpack it anywhere, but this guide, and all pre-configured miners, expect an installation at /opt/minerhotel.
Copy /opt/minerhotel/miner.config.example to /opt/minerhotel/miner.config, and start making changes. Here's a rundown of the variables:
- WALLET<WHATEVER> : Set these WALLET variables to your wallet addresses for all the currencies you want to mine. Your miner will fail to start without the wallet variable, but it won't confirm it's a valid wallet. Now, double-check to confirm the wallet is correct, and you're not just mining coins to /dev/null, or someone else's wallet! You can either use your exchange wallet address or your own wallet.
- WORKER : Set this to the name you'll use to define your miner in the various pools you mine. Some pools (i.e. NiceHash) auto-create workers based on whatever worked name you specify, whereas others (Supernova.cc) will refuse to authenticate you unless you've manually created the worker/password in their UI first.
- SUPRUSER : Set this to your supernova.cc login username (not your worker name) (optional, only use this if you want to use supernova.cc)
- SUPRPASS : Set this to the password you've configured within Supernova.cc for your worker as defined by the WORKER variable. Note that this require syou to use the same worker name and password across all your supernova.cc pools (optional, only necessary if you want to use supernova.cc)
- MPHUSER : Set this to your miningpoolhub login username (optional, only necessary if you want to use miningpoolhub.com)
- TBFUSER : Set this to your theblocksfactory login username (optional, only necessary if you want to use theblocksfactory.com)
- VERTPOOLUSER/VERTPOOLPASS : Set these to your vertpool user/password (optional, only necessary if you want to use vertpool.org)
/opt/minerhotel/scripts/install-services.shto install the necessary services for systemd
/opt/minerhotel/scripts/fixmods.shto correctly set the filesystem permissions for the various miner executables
fixmods.sh doesn't correctly set permissions on subdirectories, so until this is fixed, you also need to run
chmod 755 /opt/minerhotel/bin/claymore/ethdcrminer64
For the whattomine bot to select the most profitable coin to mine for your GPUs, you'll need to feed your cookie from https://whattomine.com
- Start by installing this addon for Chrome, or this addon for firefox
- Then visit http://whattomine.com/ and tweak settings for you GPUs, power costs, etc.
- Grab the cookie per the whattomine README, and paste it (about 2200 characters) into /opt/minerhotel/whattomine/config.json
- Ensure that only the coins/miners that you want are enabled in config.json - delete the others, or put a dash ("-") after the ones you want to disable. Set the service names as defined in /opt/minerhotel/services/
Before trusting the whattomine service to automatically launch your miners, test each one first by starting them manually, and then checking their status.
For example, to test the miner-amd-eth-ethhash-ethermine miner, run
systemctl start miner-amd-eth-ethhash-ethermine.serviceto start the service
- And then watch the output by running
journalctl -u miner-amd-eth-ethhash-ethermine -f
- When you're satisfied it's working correctly (without errors and with a decent hashrate), stop the miner again by running
systemctl stop miner-amd-eth-ethhash-ethermine, and move onto testing the next one.
systemctl start minerhotel-whattomine and then
journalctl -u minerhotel-whattomine -f to watch the output. Within a minute, you should see whattomime launching the most profitable miner, as illustrated below:
1 2 3 4 5 6
Jan 29 13:49:38 kvm.funkypenguin.co.nz whattomine-linux: 2018-01-29T13:49:38+1300 <INF> whattomine.js Loading whattominebot Jan 29 13:49:38 kvm.funkypenguin.co.nz whattomine-linux: 2018-01-29T13:49:38+1300 <INF> whattomine.js Starting whattominebot now. Jan 29 13:50:45 kvm.funkypenguin.co.nz whattomine-linux: 2018-01-29T13:50:45+1300 <INF> whattomine.js Mining Ethereum|ETH|Ethash|0.0089|0.00093|100 Jan 29 13:50:45 kvm.funkypenguin.co.nz whattomine-linux: 2018-01-29T13:50:45+1300 <INF> whattomine.js Could not find a miner for Ubiq. Jan 29 13:51:39 kvm.funkypenguin.co.nz whattomine-linux: 2018-01-29T13:51:39+1300 <INF> whattomine.js Mining Ethereum|ETH|Ethash|0.0089|0.00094|100 Jan 29 13:51:39 kvm.funkypenguin.co.nz whattomine-linux: 2018-01-29T13:51:39+1300 <INF> whattomine.js Could not find a miner for Ubiq.
The messages about "Could not find miner" can be ignored, they indicate that one of the preferred coins on whattomine does not have a miner defined.
To make whattomine start automatically in future, run
systemctl enable minerhotel-whattomine
Continue your adventure¶
Now, continue to the next stage of your grand mining adventure:
- Build your mining rig 💻
- Setup your AMD or Nvidia GPUs 🎨
- Sign up for mining pools
- Setup your miners with Miner Hotel 🏨 (This page)
- Send your coins to exchanges or wallets 💹
- Monitor your empire
- Profit! 💰
Tip your waiter (donate) 👏¶
Did you receive excellent service? Want to make your waiter happy? (..and support development of current and future recipes!) See the support page for (free or paid) ways to say thank you! 👏