Skip to content
Home » nitro

nitro

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 using AMD RX480 Nitro & RX580 Nitro on Ubuntu

How-To Guide for mining with the AMD Series cards on Ubuntu Server 16.04.04

This guide assumes you already have the Rig built, and Ubuntu Server 16.04.04 installed on it.  Once the rig boots to the terminal, this guide begins.  I am going to install everything as root, yes there are reasons why you should and should not do it that way.  I just prefer to get it up and running as quickly as possible.  I do not store anything on my miners, and you should not either.  Keep your wallets off your mining rig.  Keep your coins secure.  Keep your miners with limited data on them, so you can wipe and reinstall on the fly if you need.

Once Install Ubuntu 16.04 Server is installed type the following in bold as they appear

sudo bash

ifconfig

apt-get install openssh-server

Now you can use your laptop/desktop and log into the server.  Download putty, and connect to the server via it’s IP or Server Name.  My Username Name is tacticalware, so you can change everywhere you see tacticalware listed, you will change that to the username of the account you are logged in as

sudo bash

apt-get update

apt-get upgrade

apt install git screen nmap ncdu busybox inxi clinfo links unzip python xorg xserver-xorg-legacy xserver-xorg-video-dummy libcurl3

systemctl disable lightdm.service

mkdir /miner && mkdir /miner/drivers && mkdir /miner/drivers/amd && cd /miner/drivers/amd

Download the drivers from on a laptop

Now use Winscp on the laptop to copy the drivers to the Ubuntu Server

cd /home/tacticalware/ && cp ./* /miner/drivers/amd/ && cd /miner/drivers/amd/

The version I downloaded and used was amdgpu-pro-17.30-458935.tar.xz … you will need to change that part of the name to the version you have

tar -Jxvf amdgpu-pro-17.30-458935.tar.xz && cd amdgpu-pro-17.30-458935 && ./amdgpu-pro-install -y

usermod -a -G video $LOGNAME

Download the SDK from here to your laptop

Winscp it to the server

Move the SDK from your home directory to /miner/drivers/amd

tar xf AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2 && ./AMD-APP-SDK-v3.0.130.136-GA-linux64.sh

reboot

Log back into the server now

sudo bash

clinfo

clinfo | grep compute

nano /etc/X11/Xwrapper.config

delete the last line:
allowed_users=console

insert at end of file:

allowed_users=anybody
needs_root_rights=yes

Create a new file for operating without a monitor:

nano /etc/X11/xorg.conf

Section “ServerLayout”
Identifier “X.org Configured”
Screen 0 “Screen8” 0 0
EndSection

Section “Files”
ModulePath “/usr/lib/xorg/modules”
FontPath “/usr/share/fonts/X11/misc”
FontPath “/usr/share/fonts/X11/cyrillic”
FontPath “/usr/share/fonts/X11/100dpi/:unscaled”
FontPath “/usr/share/fonts/X11/75dpi/:unscaled”
FontPath “/usr/share/fonts/X11/Type1”
FontPath “/usr/share/fonts/X11/100dpi”
FontPath “/usr/share/fonts/X11/75dpi”
FontPath “built-ins”
EndSection

Section “Device”
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: “True”/”False”,
### <string>: “String”, <freq>: “<f> Hz/kHz/MHz”,
### <percent>: “<f>%”
### [arg]: arg optional
#Option “ShadowFB” # [<bool>]
#Option “DefaultRefresh” # [<bool>]
#Option “ModeSetClearScreen” # [<bool>]
Identifier “Card8”
Driver “dummy”
VideoRam 16384
EndSection

Section “Monitor”
Identifier “Monitor8”
HorizSync 15.0-100.0
VertRefresh 15.0-200.0
Modeline “1600×900” 33.92 1600 1632 1760 1792 900 921 924 946
EndSection

Section “Screen”
Identifier “Screen8”
Device “Card8”
Monitor “Monitor8”
SubSection “Display”
Viewport 0 0
Depth 24
Virtual 1600 900
EndSubSection
EndSection

Save the file and exit

cd /home/tacticalware/

nano .bashrc

Add the following at end of .bashrc

export DISPLAY=:0

Save the file and exit

nano /etc/profile

Add the following at end of /etc/profile:
export XAUTHORITY=~/.Xauthority

Save the file and exit

nano .xinitrc

#!/bin/bash
DISPLAY=:0 && xterm -geometry +1+1 -n login

Save the file and exit

cd /miner/drivers/ && mkdir claymore && cd /miner/drivers/claymore

On your laptop download Claymore from

https://drive.google.com/drive/folders/0B69wv2iqszefdmJickl5MF9BOEE

Winscp it to the mining rig

Move it to /miner/drivers/claymore

tar zxvf the file

nano zec.sh

#!/bin/sh
xinit &
sleep 5
export GPU_FORCE_64BIT_PTR=1
export GPU_MAX_HEAP_SIZE=100
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
export GPU_SINGLE_ALLOC_PERCENT=100

./zecminer64 -zpool us1-zcash.flypool.org:3333 -zwal t1QYSbLrnbECDu76KDcvoyjBbbhsuWxZXWm.miner20 -zpsw x

Save the file and exit

chmod +x zec.sh

Update config.txt file, also modify epool and dpool with your wallet info and remove default dev info

Save the files

screen ./zec.sh

Now you will want to watch for issues

You can close putty whenever, it does not need to be open for your miner to work, and if you want to reattach a screen, log back in using putty and type

screen -r