To maximize your hashrate, it is very important that you select a 64-bit OS image, a quality miner and the most current compiler that you can.
The 64-bit Ubuntu Server for Raspberry Pi3 is a good choice:
You will need to write this image to an SD card with a utility such as Etcher. Once your OS is written, insert your SD Card and boot your Pi.
Once you've got it booted, you'll be asked for a username and password. These are both
Once you've logged in, you'll be asked to change the password. For the current password, enter
ubuntuagain. Then, enter a new password, and confirm it.
Get the Latest Compiler
You will need to edit your sources.list file and add the debian testing repository in order to install gcc-8 and g++-8 on your system:
sudo nano /etc/apt/sources.list
Add this line to the end of the file:
deb http://ftp.us.debian.org/debian testing main contrib non-free
Then save it with
Ctrl-xand then the following:
sudo apt-get update
sudo apt-get install gcc-8 g++-8
Download Compile, and Configure Your Miner
Now you need to install the required dependencies and the latest release of the xmrig miner and compile it with gcc-8.
sudo apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev libssl-dev
git clone https://github.com/xmrig/xmrig.git
sudo mkdir build
sudo cmake .. -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8
sudo make -j4
Compiling the miner could take several minutes to complete. When your miner is ready you need to create a configuration file with your Kryptokrona settings. Navigate to your home directory and create a file named config.json.xkr.
sudo nano config.json.xkr
Populate your configuration file with something similar to the code below. Make sure that
passare populated with the your own unique and proper values.
Create a separate miner start script so that you can easily start the miner and invoke the proper cofiguration file with a single command. I like to name it "minexkr".
sudo nano minexkr
Place the following code into the minexkr file:
sudo sysctl -w vm.nr_hugepages=8
Make the file executable as a script:
sudo chmod +x minexkr
Now you can start the miner using the start script:
Happy mining and make sure to support small pools and keep Kryptokrona mining decentralized.