Skip to content
Home » 18.04

18.04

Visit Tacticalware.com for information related to this tag and others. We look forward to assisting in your tech projects with our in-depth knowledgebase…

Mining LOKI with RX 480 Nitro 8GB Cards on Ubuntu 18.04

Quick How-To Guide

This guide assumes that you have Ubuntu 18.04 setup fresh.

On another computer, download the AMD drivers from the vendor’s website

Use winscp and move them to the computer

On the Mining Rig, login, and from the command line you will want to navigate to the directory you copied your AMD Drivers to….most likely it will be your home directory (/home/username/)

sudo bash

apt-get update && apt-get upgrade

ls

Look for those AMD Drivers

tar -xJvf amdgpu-pro-18.50-756341-ubuntu-18.04.tar.xz

cd amdgpu-pro-18.50-756341-ubuntu-18.04/

sudo dpkg –add-architecture i386

./amdgpu-pro-install -y –opencl=legacy

mkdir /miner && cd /miner

apt install clinfo -y

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

apt-get install libssl-dev

git clone https://github.com/xmrig/xmrig-amd.git

mkdir xmrig-amd/build

cd xmrig-amd/build

cmake ..

make

apt install mesa-opencl-icd -y

nano loki.sh

@echo off
./xmrig-amd -a cryptonight-ultralite –donate-level 1 -o loki.miner.rocks:4005 -u LChtjHqr29p5FojLdMtcUW5ApLWyQHH5j4366V78YECEjUkgK99Y7uLDVLpHjXpYM3UcZ39FFL5Gvd4debF95mcJHbnx5ke -p w=rx480 -k -o ca.loki.miner.rocks:4005 -u LChtjHqr29p5FojLdMtcUW5ApLWyQHH5j4366V78YECEjUkgK99Y7uLDVLpHjXpYM3UcZ39FFL5Gvd4debF95mcJHbnx5ke -p w=rx480 -k
pause

Save the file and Exit

chmod +x loki.sh

./loki.sh

And your rig will begin to mine

Headless Mining RVN with Z-Enemy on Ubuntu 18.04

Using NVIDIA 1080 TI Cards, Ubuntu Server 18.04, and Z-Enemy 1.26 to Mine Raven

Here is the quick installation notes on how to mine Raven.  My hashrate has almost doubled over running ccminer, on the same coin and same pool.

Log into the rig

sudo bash

apt-get -y install libcurl3

mkdir /miner && mkdir /miner/drivers && mkdir /miner/drivers/z-enemy
cd /miner/drivers/z-enemy

wget

tar zxvf z-enemy-1.26-cuda100-Linux.tar.gz

nano Raven.sh

Insert the following into the file#

#!/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

./z-enemy -a x16r -o stratum+tcp://ravenminer.com:3636 -u RMzHAFgqgjV5qLkajBjLQ325V7HWBpG3d9 -p d=16 -i 20

CTRL + X to Save and Exit

chmod +x Raven.sh

./Raven.sh

You are now mining! Thanks for reading!

The hardware that I used in this guide:
Gigabyte AORUS GeForce GTX 1080 Ti (QTY 6):
https://amzn.to/2JqvXC8

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

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

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

Opening 7zip files on Ubuntu 18.04

How to Install the 7zip Utility on Ubuntu 18.04

By default you can not download the p7zip-full package from the repo, as it returns the following error:  Package ‘p7zip-full’ has no installation candidate.   To fix this error follow the steps below

From the terminal

sudo bash

add-apt-repository universe

apt install p7zip-full

p7zip -d filename.7z

Thats it!

First Login on Ubuntu 18.04

How To Update the OS During The First Login

Login to the server and run the following commands

sudo bash

apt-get update && apt-get upgrade && apt-get dist-upgrade -y