Skip to content
Home » Mining » Page 2

Mining

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…

Installing Teamviewer on Ubuntu Server

How-To guide for installing and running Teamviewer on your Ubuntu Mining Rig

This is the quick and dirty to get it up and running.  I find that running Teamviewer on my Ubuntu Mining Rigs helps me manage them on the fly.  For this guide you will replace the home directory named tacticalware with the name of your home directory.  The rest of the commands will work as they are listed.

From a command prompt run the following commands:

sudo bash

mkdir /home/tacticalware/teamviewer

cd /home/tacticalware/teamviewer

wget https://download.teamviewer.com/download/linux/teamviewer-host_amd64.deb

dpkg -i teamviewer-host_amd64.deb

The installation will fail

Now run:

apt-get -f install

y

After it installs then run

teamviewer setup

Enter your username

Enter your password

Log into your email, and find the Teamviewer email

Allow/Add the device

And now you can log into your server using Teamviewer

 

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 https://www.amd.com/en/support 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

Mining LOKI on Windows 10 with NVidia 1080TI Cards

How-to Guide for Mining LOKI

Quick rundown on how to mine a new crypto named LOKI or LOK as some of you may know it as.  I mine it with both NVidia and AMD series cards.  This guide will walk you through mining it with NVidia Series cards.  You will find that the guide is a mirror of the AMD guide, except for how you fine tune it at the end.

The mining software will throw errors with your AV program.  You will need to whitelist the files when they are downloaded, or disable Realtime Protection..  Personally, I only use Windows Defender on my mining rigs, so I can keep the costs down, plus it is easy to wipe and reinstall the OS if need be.

For Windows Defender, you will need to open the program up, and disable Realtime Protection

If you are using Chrome as your Browser, you will also need to allow the download there as well.  To do this:

Open up Chrome

In your address bar type in chrome://settings and press Enter

Scroll to the bottom and select Advanced

De-Select “Protect your device from dangerous sites” 

Now you can download the software

Open up another chrome tab and download XMR-STAK to your Windows 10 computer from here:

https://github.com/fireice-uk/xmr-stak/releases

Once you have it downloaded, go ahead and unzip the file to your Desktop

Navigate to the unpacked files

Double click on xmr-stak and Run the file

You will need to insert a port for monitoring the progress.  I use port 30131 and press Enter

Next type in cryptonight_heavy and press Enter

For the pool address, I use loki.ingest.cryptoknight.cc:7733  press Enter

Your username will be your wallet address, for example

LChtjHqr29p5FojLdMtcUW5ApLWyQHH5j4366V78YECEjUkgK99Y7uLDVLpHjXpYM3UcZ39FFL5Gvd4debF95mcJHbnx5ke

Your password will be your worker name.  For example mine is Miner6

Your Rig Identifier can be empty, so just press Enter

Input N for TLS and press Enter

Insert N for Nicehash and press Enter

Input N for multiple pools and press Enter

Select Yes when prompted

and your miner will begin!

Now you can use the ipaddress:port/h of your miner to keep an eye on it’s progress from anywhere in the network.  For example, navigate to

Once you are mining, you can open up the nvidia.txt file in the same directory as your xmr-stak executable.  Within the nvidia.txt file, you will be able to modify your settings.  I have found that changing the threads setting it will yield the most results.  Each series of card can act differently, so spend some time, and fine tune this settings.  It will be worth the time invested.

Happy Mining!

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/3nZ5pH4

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

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