CPU pool mining with Ubuntu (XMRig)

Objective:
– Setting up your first CPU pool mining software under Linux

Requirements:
– Ubuntu 16.04 (all updates done)
– A CPU capable of mining
– Has an AEON Wallet address
– Has basic pool mining knowledge or has read through Basic knowledge of pool mining

Disclaimer:
– I am not a Linux professional, some parts of this guide can be improved and be done in a more professional way.
– If you use the commands as root user, you can skip the “sudo” in each command
– The pool mining software shown in this guide is personal preference, you are of course free to choose any other software.
– The pool Serenity shown in this guide is owned by Hidden Jadestone, you are of course free to choose any other pool.

 


 

Table of contents:
Step 1: Install required packages
Step 2: Download pool mining software
Step 3: Start your pool mining software
 


 

Step 1: Install required packages

First we have to install the required packages.

sudo apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev

Let your Ubuntu work until it pauses.

y

Confirm with y and press Enter to continue the installation of the packages. It will take a minute now, wait for it to finish.

All required packages are now installed!

 

Step 2: Download pool mining software

Now we have to download our mining software. If you dont know where to find mining software, check out: Basic knowledge of pool mining

For this guide we will use the Serenity AEON Pool and the mining software “XMRig”.

sudo git clone https://github.com/xmrig/xmrig.git aeon_mining

This command clones the mining software repository on your Ubuntu into the folder “aeon_mining”. Switch now into that folder.

cd aeon_mining

Start compiling the mining software code now.

sudo cmake .

Wait for it to finish.

Now we have to install the software.

sudo make

Wait till it has finished.

After it is finished we check the folder for the content.

ls

For us important is the file:
– xmrig

Everything is now setup, we are ready to start the pool mining software.

 

Step 3: Start your pool mining software

Start your mining software now with the adjusted command (replace YOUR_PUBLIC_WALLET_ADDRESS with your AEON Wallet address), for example:

sudo ./xmrig -a cryptonight-lite -o serenity.hiddenjadestone.com:7777 -u YOUR_PUBLIC_WALLET_ADDRESS -p x

Make sure you see the “HUGE PAGES: available, enabled” to have maximum hashrate while mining. In this example, the HUGE PAGES are disabled because the CPU has no L3 cache. If your CPU has L3 cache and the HUGE PAGES is still disabled, then you might wanna try the /u/stoffu pro tip:

BTW, it’s crucially important to make sure that you see “HUGE PAGES: available, enabled” at the launch which increases the performance by a lot. If it’s shown as disabled, a typical fix is to reboot the computer and launch XMRig right after the system starts. At least for OSX and Windows, not sure with Linux though.

You successfully started pool mining on your computer!

Now that it is running, we want to check our stats. Go to Serenity AEON Pool scroll down to the section “Your Stats & Payment History”.

Enter your YOUR_PUBLIC_WALLET_ADDRESS and click on “Lookup”.

Here you will see your pending balance, current hash rate, payouts and other stats.

All you have to do now is to wait for the pool to find a block!:)

 

Congratulation, you just setup your first CPU pool mining software.