Skip to content
Home » Ubuntu » Page 6

Ubuntu

Ubuntu Linux Technology, Related Information, How-To’s, Tips, Tools, and Guides

Installing TPRUVOT’s CCMiner on Ubuntu 16.04

How-to Guide for Installing the Linux version of ccminer (tpruvot) on Ubuntu 16.04.04

This is a quick guide that I created a few months back.  It gets the latest version of tpruvot’s ccminer installed and running on your Ubuntu mining rig.  There are a lot of algos which can use this, and since most of my rigs run on linux, I had to find a way to get it installed.  It is the general commands that I use from a terminal.  The assumption here is that you already have Ubuntu 16.04 installed and updated.  It is also assumed that you are running NVidia 1080Ti cards, and they are all functional.  I am going to run it all logged in as sudo to make it quick and easy.

From the terminal:

sudo bash

apt-get dist-upgade

apt-get purge nvidia*

reboot

mkdir /drivers && mkdir /drivers/nvidia

wget https://developer.nvidia.com/compute/cuda/9.1/Prod/local_installers/cuda_9.1.85_387.26_linux

mv cuda_9.1.85_387.26_linux cuda_9.1.85_387.26_linux.run

chmod +x cuda_9.1.85_387.26_linux cuda_9.1.85_387.26_linux.run

sh cuda_9.1.85_387.26_linux.run

Answer “yes” for installing the nvidia-drivers, the cuda tools and the symbolic link.

apt-get install git automake openssl libssl1.0.0 libssl-dev libcurl4-openssl-dev

cd /drivers/

git clone https://github.com/tpruvot/ccminer.git

cd ccminer

nano Makefile.am

CTRL & W

Search for 61

Remove comment at the beginning of the line which refers to “61

CTRL & X

Y to save

nano /etc/ld.so.conf.d/cuda-9.1-x86_64

Put only one line:
/usr/local/cuda-9.1/lib64

CTRL & X

Y to save

ldconfig

cd /drivers/ccminer

./build.sh

make install

cd /home/miner/ && nano .bashrc

add this to the end:
export LD_LIBRARY_PATH=/usr/local/cuda-9.1/lib64:$LD_LIBRARY_PATH
export PATH=/usr/local/cuda-9.1/bin:$PATH

CTRL & X

Y to save

nano start.sh

Insert the following into the file:

nvidia-smi -pm 1
nvidia-smi -acp 0
nvidia-smi -pl 300
./ccminer -a x16r -i 20 -o stratum+tcp://us.bsod.pw:2176 -u RMzHAFgqgjV5qLkajBjLQ325V7HWBpG3d9 -p c=RVN

CTRL & X

Y to save

chmod +x start.sh

./start.sh

You are now up and mining.  I have chosen Raven for this one, only since I was mining it when I put it together.  You will want to remove my wallet address and insert your own.  Otherwise, the rest will get your rig up and running.

Happy Mining!

Burning the Ubuntu Server 16.04.04 ISO onto a USB

Step One – Prepare the OS Installation Media

Below you will find the default way in which I use a Windows 10 Computer, Etcher, and a USB Drive, to create and install Ubuntu Server 16.04.04 onto a mining rig.  Once you have that ISO flashed onto a USB drive, you can go from mining rig to mining rig, installing the Operating System.  So this really is step one in the entire process.  This guide will in turn become the starting point for each linux based coin/token/masternode that we will gather.  Shoot me any questions you have.

From your Windows 10 machine, Download and install the Bittorrent Client:

http://www.bittorrent.com/downloads/complete/track/stable/os/win

 

Then download the Official Ubuntu Server 16.04.04 (x64) Release:

Finally, Download and Install Etcher (this will write your ISO to the USB Drive)

https://etcher.io/

Once the Ubuntu software has been downloaded, insert a USB drive to write the Operating System Installer to

Make sure this USB drive has nothing else on it.   Everything will be erased

To write Ubuntu to the USB drive:

Open Etcher

Click Select Image

Navigate to where you downloaded the Ubuntu ISO (it is probably located in your Downloads folder)

Select the ubuntu-16.04.4-server-amd64 image and click Open

Click Select Drive

Select the USB drive

Click Continue

Click Flash

Select Continue to Flash the drive

It should take a few minutes for Ubuntu Server to be written to the USB drive

When it has completed flashing the USB drive you can click the X at the top right corner to close the window

Now, you are ready to begin the installation.  So, insert it into a USB 3.0 port on your mining rig, and turn the rig on

 

My Setup – Ubuntu Mining Rig with NVidia 1080Ti cards

Rig Parts Breakdown and Driver Installation for the NVidia 1080 TI GPUs on Ubuntu 16.04.04

I have several rigs running at any given time. Below you will find the equipment list for my NVidia 1080 TI Rigs, and also the installation instructions on getting the Drivers working under Ubuntu 16.04.04

Rack to Install the Hardware On.  I usually put two full rigs onto one single rack.  It saves space and I end up stacking mine (QTY 1): Seville Classics 3-Tier UltraZinc Cabinet Organizer, 7.5″ W x 17.5″ D x 18.5″ H

These steps will help you install the drivers.  It assumes that you have the hardware connected and Ubuntu Server 16.04 already installed.

Log into your Rig

Open a Terminal

sudo bash

apt-get update && apt-get upgrade

apt-get install gcc libglu1-mesa libxi-dev libxmu-dev libglu1-mesa-dev screen

lspci | grep -i nvidia

Check to see if all gpus are listed

apt-get install linux-headers-$(uname -r)

mkdir /miner && mkdir /miner/drivers/ &&  mkdir /miner/drivers/nvidia && cd /miner/drivers/nvidia

sudo add-apt-repository ppa:graphics-drivers/ppa && sudo apt update 

wget https://developer.nvidia.com/compute/cuda/9.1/Prod/local_installers/cuda_9.1.85_387.26_linux

chmod +x cuda_9.1.85_387.26_linux

mv cuda_9.1.85_387.26_linux cuda_9.1.85_387.26_linux.run

apt-get purge nvidia*

screen sh cuda_9.1.85_387.26_linux.run

Answer “yes” for installing the nvidia-drivers, the cuda tools and the symbolic link.

nano /etc/ld.so.conf.d/cuda-9.1-x86_64

put only one line:
/usr/local/cuda-9.1/lib64

Save the file and exit

Then run

ldconfig

In the next step you will want to change tacticalware to the name of your home directory

cd /home/tacticalware/ && nano .bashrc

add this to the end:
# add cuda tools to command path
export LD_LIBRARY_PATH=/usr/local/cuda-9.1/lib64:$LD_LIBRARY_PATH
export PATH=/usr/local/cuda-9.1/bin:$PATH

Save the file and exit

systemctl disable lightdm.service

reboot

Log back in and check to ensure all of your GPUs are still accessible

nvidia-smi

That’s it.  Your GPUs are setup and ready to mine!

Hardware that I use:
Motherboard (QTY 1):
https://amzn.to/2JqGJZ7

CPU (QTY 1):
https://amzn.to/3qevp2X

Memory (QTY 1):
https://amzn.to/2JqHn8Z

Hard Drive (QTY 1):
https://amzn.to/3lic3X5

Risers (QTY 6):
https://amzn.to/33rIgVE

Power Supplies (QTY 2):
https://amzn.to/3fTRpLR

Add2PSU (QTY 1):
https://amzn.to/39s4URY

GPUs (QTY 6):
https://amzn.to/2JqvXC8

Power Switch (QTY 1):
https://amzn.to/3ljmNVk