5.0 KiB
Minerhotel
!!! warning 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.
Ingredients
- Latest Minerhotel release for Linux
Preparation
Unpack Minerhotel
Unpack the minerhotel release. You can technically unpack it anywhere, but this guide, and all pre-configured miners, expect an installation at /opt/minerhotel.
Prepare miner.config
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)
Install services
- Run
/opt/minerhotel/scripts/install-services.shto install the necessary services for systemd - Run
/opt/minerhotel/scripts/fixmods.shto correctly set the filesystem permissions for the various miner executables
!!! note
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
Setup whattomine-linux
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/
Test miners
Before trusting the whattomine service to 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.