This post is a guide/setup part of our Mining cryptocurrencies in 2019 on a VPS article. We will move through the steps you need to take in order to start mining Bytecoin on your new Ubuntu VPS.
Please note that software versions may change, so this guide might be outdated. Also note that we do not encourage anyone to mine cryptocurrencies, and to mine at the places where we ran our tests. The difficulty of mining cryptocurrencies and their prices are always changing.
First, you need to order a VPS from a provider with Ubuntu 18 installed. Your server should be up and running within minutes after they received the payment. After the first login, it is always good to run
sudo apt-get update sudo apt-get upgrade
to upgrade your software to the latest stable version. Update loads the list of the latest versions, and with the upgrade line, you actually install the new versions.
We chose MinerGate as our mining pool, that has its own software to mine. It is very easy to set up and easy to use. First, you need to register your account at the MinerGate site. If your account is up and ready to go, now we can install the MinerGate client on your server. Make a new folder for your download, then download and install the client with the following lines:
mkdir /Downloads cd /Downloads wget https://minergate.com/download/ubuntu-cli sudo dpkg -i ubuntu-cli
Now your client is installed and you can start mining. You can mine multiple coins with MinerGate even simultaneously if you wish to. To start mining you need to run
minergate-cli --user /email/ /coin/ /threads/
where /email/ is the account you set up at MinerGate, /threads/ is the number of threads you want to use for mining (If you leave out this part it will use all available cores) and /coin/ is a cryptocurrency specific ticker – you can find out about these with
An example line for Bytecoin:
minergate-cli --user email@example.com --bcn 2
Congratulations you now have a running Ubuntu server mining Bytecoin!
You can see the miner running in the command line, with current hash rates. You can also monitor the mining on the MinerGate website, with all the received coins. It should look something like this:
Important to note, that if this is a remote server that you SSH into the machine the process will stop if you close the connection to the server. A handy solution is using tmux. It is easy to use and keeps the processes running in the background until you shut it down.
Just type tmux to start a new session start the mining there and you can exit with pressing ‘Ctrl’+’b’ and then ‘d’. You can safely close the SSH connection to your server, the mining will run inside the tmux session. If you connect next time, you can continue the work if you type ‘tmux attach‘ .
Additional setup steps in case of AWS GPU accelerated servers: (Make sure to check the latest driver version available)
sudo apt-get update -y sudo apt-get upgrade -y linux-aws sudo apt-get install -y gcc make linux-headers-$(uname -r) sudo reboot wget http://us.download.nvidia.com/tesla/410.79/NVIDIA-Linux-x86_64-410.79.run sudo /bin/sh ./NVIDIA-Linux-x86_64-410.79.run sudo reboot
From here on you can continue with installing the MinerGate client on your server.