Bitcoin Forum
June 24, 2024, 06:45:48 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Eth mining on Ubuntu 16.04 complete guide  (Read 896 times)
mosidze (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
September 11, 2017, 09:46:48 AM
 #1

Hello
This is my first post here, and i know, that's this one is not first, related to such question, however, currently im managing farm with more than 1000 PC, and have good experience
So, let me briefly describe, how to run miner fast on Ubuntu 16.04 Desktop

1) Download and install OS, default settings is ok
2) Update using update GUI manager
3) run
Code:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update && clear && apt-get install nvidia-384 nano openssh-server screen
sudo update-grub
Also, remove SUDO prompt's as

Code:
sudo visudo -f /etc/sudoers

add line

Code:
usernameusedforlogin ALL=(ALL) NOPASSWD:ALL

usernameusedforlogin is your current username
save

Code:
esc :wq!


4)Download and unzip Claymore Dual Miner from here https://github.com/nanopool/Claymore-Dual-Miner/releases
 Personally I'm create folder called miner, so from here i will use path /miner in all examples
 
5) Create XORG config file as follow
Code:
sudo nvidia-xconfig -a  --allow-empty-initial-configuration --enable-all-gpus --cool-bits=31  
sudo mv /etc/X11/xorg.conf /usr/share/X11/xorg.conf.d/20-nvidia.conf
This will create dummy Screens and assing it per GPU
Do not create xorg.conf again, it's will be created automaticly after restart

6)RESTART

7) go to Claymore-Dual-Miner directory (/miner in my case) and create file called start.sh
Code:
nano start.sh
For NVIDIA 1070

Code:
#!/bin/sh
cd /miner

export DISPLAY=:0
sudo nvidia-settings -a GPUMemoryTransferRateOffset[3]=1450
sudo nvidia-settings -a GPUGraphicsClockOffset[3]=-100
sudo nvidia-smi -pm 1
sudo nvidia-smi -pl 145

./ethdcrminer64

for NVIDIA p106-100

Code:
#!/bin/sh
cd /miner

export DISPLAY=:0
sudo nvidia-settings -a GPUMemoryTransferRateOffset[3]=1111
sudo nvidia-settings -a GPUGraphicsClockOffset[3]=-100
sudo nvidia-smi -pm 1
sudo nvidia-smi -pl 98

./ethdcrminer64

Both this files, will overclock GPU's and will reduce power drain

make it exacutable

Code:
chmod a+x start.sh

Cool create or open config.txt
Code:
nano config.txt
Add follow

Code:
-epool POOL-NAME:PORT
-ewal WalletID.MinerName/Your@email
-epsw x
-esm 0
-estale 0
-mode 1
-asm  1
-tstop 95
-ftime 10
-wd 1
-r  0

Save

9) crete file called autorun.sh
it's will use screen and autologin
add follow

Code:
#!/bin/sh
PROCESS="miner"
screen  -mS $PROCESS  /miner/start.sh
PID=`screen -list | grep $PROCESS | cut -f1 -d'.' | sed 's/\W//g'`
echo $PID > /tmp/$PROCESS.pid
read
Agin, check path and make it executable
chmod a+x autorun.sh

them find "Startup Application" in Unity dash, create new startup enry and type (in command box)

Code:
gnome-terminal-command /miner/autorun.sh

10) Ok your miner is ready, reboot and enjoy

For sure, if you think, that's my topic help you you can donate me at
0xb2D98b7E7651361a06b2a3FD46F88D382304B054 etherium wallet
But, this is not mandatory
NameTaken
Hero Member
*****
Offline Offline

Activity: 630
Merit: 502


View Profile
September 11, 2017, 09:54:17 AM
 #2

Newer Nvidia driver version makes no hashrate difference.
No need to use sudo to run nvidia-settings.
Setting SUID to nvidia-smi is easier than editing visudo.

Code:
$ sudo chmod 4755 /usr/lib/nvidia-375/bin/nvidia-smi

Ubuntu as well as all major distros have adopted systemd so I recommend using that instead of screen, cron, rc.local, &, etc.
mosidze (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
September 11, 2017, 10:14:49 AM
 #3

Newer Nvidia driver version makes no hashrate difference.

Disagree
20m/h default vs 24 on 106-100 and 32 vs 26 on 1070 with reduced power is big difference
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!