How To Install XMR-STAK on Ubuntu 16.04
How To Install XMR-STAK on Ubuntu 16.04 Console
Tutorial on the simplest Cryptonote miner on the market and how to install it on modern Ubuntu servers. Instructions should work for most Ubuntu releases, please let me know if you have problems and I will try to help.
XMR-Stak is a free and open-source Cryptonote miner that supports Monero (XMR) mining and other cryptonote coins.
This tutorial is based on the official github compile instructions located at https://github.com/fireice-uk/xmr-stak/blob/master/doc/compile_Linux.md
NOTE: use sudo
before each command if you are getting permissions errors. If prompted for password, use your current username's password. If you are told this incedent will be reported
or something to that effect, it just means your current user is not in the sudo
subgroup, which means you need to have root
give your user permission.
The basic install command line instructions are:
apt-get update
apt install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev
git clone https://github.com/fireice-uk/xmr-stak.git
mkdir xmr-stak/build
cd xmr-stak/build
cmake .. -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF
make install
You can now run the miner:
cd bin
./xmr-stak
However, there is a donation fee hardcoded into the app, so you may want to edit that if you are poor and just trying to get it running before you start giving away your earnings. Therefore, use the following instructions instead:
apt-get update
apt install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev
git clone https://github.com/fireice-uk/xmr-stak.git
mkdir xmr-stak/build
Now, change the donation to zero:
nano xmr-stak/xmrstak/donate-level.hpp
Find the line that says
constexpr double fDevDonationLevel = 2.0 / 100.0
and change it to
constexpr double fDevDonationLevel = 0.0 / 100.0
then use Ctrl-X to exit nano and do the following:
cd xmr-stak/build
cmake .. -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF
make install
Now, stay in the xmr-stak/build directory.
These last instructions are to optimize your mining.
First run the miner setup script:
cd bin
./xmr-stak
Follow the setup wizard -- most important is you need your wallet address and the pool address you are working with. Everything else is optional.
Once the miner is running, you should be getting status updates:
about blocks being found, difficulty changing, and results
Enable hugepages and run miner
nano start.sh
add the following lines:
sysctl -w vm.nr_hugepages=128
/usr/local/src/xmr-stak/build/bin/xmr-stak
Ctrl-x to save and exit
Now run the miner again.
✅ @joshadams, congratulations on making your first post! I gave you an upvote!
Please give me a follow and take a moment to read this post regarding commenting and spam.
(tl;dr - if you spam, you will be flagged!)
Congratulations @joshadams! You received a personal award!
Click here to view your Board
Do not miss the last post from @steemitboard:
Congratulations @joshadams! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!