Skip to content
Home » Mining » Raven Mining on Ubuntu 18.04

Raven Mining on Ubuntu 18.04

Configuring NVidia 1080TI Cards and ccminer on Ubuntu 18.04

This is a Raw guide, assuming that Ubuntu Server 18.04 is already installed.

Login

reboot

Login

sudo bash

add-apt-repository universe

add-apt-repository ppa:graphics-drivers/ppa

apt-get udpate

apt-get -y dist-upgrade

apt-get -y install gcc libglu1-mesa libxi-dev libxmu-dev libglu1-mesa-dev screen git python-dev freeglut3-dev libx11-dev libgl1-mesa-glx gcc make libcurl4-openssl-dev autoconf libncurses5-dev opencl-headers build-essential protobuf-compiler libprotoc-dev libboost-all-dev libleveldb-dev hdf5-tools libhdf5-serial-dev libopencv-core-dev libopencv-highgui-dev libsnappy-dev libsnappy1v5 libatlas-base-dev cmake libgoogle-glog0v5 libgoogle-glog-dev libgflags-dev liblmdb-dev python-pip gfortran libjansson-dev uthash-dev autogen libtool pkg-config gcc-multilib dkms libxml2-dev libxslt1-dev zlib1g-dev linux-image-extra-virtual libopencv-dev python-numpy libssl-dev automake autotools-dev openssl libssl1.0.0 libssl-dev

reboot

Login

sudo bash

lspci | grep -i NVIDIA

Note NVIDIA has to be capital or no results will show, and now you should see all of your video cards listed here

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

mkdir /miner && mkdir /miner/drivers/ && mkdir /miner/drivers/ewbf && mkdir /miner/drivers/intel && mkdir /miner/drivers/nvidia && cd /miner/drivers/nvidia

apt-key adv –fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub

sudo bash -c ‘echo “deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /” > /etc/apt/sources.list.d/cuda.list’

apt update

apt install nvidia-driver-410

wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda_10.0.130_410.48_linux

mv cuda_10.0.130_410.48_linux cuda_10.0.130_410.48_linux.run

chmod +x cuda_10.0.130_410.48_linux.run

screen sh cuda_10.0.130_410.48_linux.run

Select No to the driver update

Yes to the toolkit install

cd /home/miner/ && nano .bashrc

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

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

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

CTRL X to Save and Exit the file

ldconfig

cd /miner/drivers

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

cd ccminer

nano Makefile.am

Remove comment on line which refers to “61”

CTRL X

Yes

cd /miner/drivers/ccminer

./build.sh

make install

nano Start-Raven.sh

Fill the file with the following:

#!/bin/sh
nvidia-smi -pm 1
nvidia-smi -acp 0
#nvidia-smi -pl 300
sleep 2
export GPU_FORCE_64BIT_PTR=0
export GPU_MAX_HEAP_SIZE=100
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
export GPU_SINGLE_ALLOC_PERCENT=100
./ccminer -a x16r -i 20 -o stratum+tcp://us.ravenminer.com:4567 -u RMzHAFgqgjV5qLkajBjLQ325V7HWBpG3d9 -p c=RVN

Save the file

CTRL + X

Y

chmod +x Start-Raven.sh

reboot

Log back in

sudo bash

cd /miner/drivers/ccminer

screen ./Start-Raven.sh

Raven will begin to mine