Zcash miner under linux manjaro with GTX1080

Prepare:

  1. GTX1080,
  2. X86 PC support 64bit ,4G memory,250Gb Sata HDD
  3. Usb stick above 2G bytes

Step1:
Download manjaro image, there are three version, I like gnome style ,so I take it
Gnome: https://downloads.sourceforge.net/manjarolinux/manjaro-gnome-17.0.5-stable-x86_64.iso
KDE: https://downloads.sourceforge.net/manjarolinux/manjaro-kde-17.0.5-stable-x86_64.iso
Xfce:https://downloads.sourceforge.net/manjarolinux/manjaro-xfce-17.0.5-stable-x86_64.iso

Step2:
Burn manjaro image to USB stick
linux:
To burn the iso on an usb stick, enter the following command in a terminal :
$sudo dd bs=4M if=/path/to/manjaro.iso of=/dev/sd[drive letter] status=progress

windows:use imagewriter
https://launchpad.net/win32-image-writer/

Step3:
Install manjaro to system by usb stick.

Step4:
Boot into system, install kernel ,kenrel header for build kernel module, cuda for miner tool

$sudo pacman -Sy
$sudo pacman -S cuda
$sudo pacman -S gcc make automake
$sudo pacman -S linux
$sudo pacman -S linux linux-headers
sudo pacman -S gcc-libs-multilib

do a reboot
$reboot

Step5:
Boot into system , check if system run new kernel

$uname -a
Linux manjaro 4.9.53-1-MANJARO #1 SMP PREEMPT Thu Oct 5 15:11:15 UTC 2017 x86_64 GNU/Linux

download nvida driver
$mkdir nv
$cd nv
$wget http://download.nvidia.com/XFree86/Linux-x86_64/384.90/NVIDIA-Linux-x86_64-384.90.run
download ewbf miner tool ,unzip miner tool
$wget https://github.com/nanopool/ewbf-miner/releases/download/v0.3.4b/Zec.miner.0.3.4b.Linux.Bin.tar.gz
$tar xvf Zec.miner.0.3.4b.Linux.Bin.tar.gz
modify start.sh , change the miner pool server ,port and miner address by gedit
$gedit start.sh

Step6:
install nvida linux driver
$ sudo ./NVIDIA-Linux-x86_64-384.90.run
It will report an error, we should boot to text mode to install the dirver, type below command to disable gdm and reboot
$sudo systemctl disable gdm
$sudo reboot
after reboot, we goto into a ternimal, just login and change to the nv directory, type command wait for command over.

sudo ./NVIDIA-Linux-x86_64-384.90.run

if successful , then run miner commnad
$sudo ./start.sh
if you want to run it under gnome desktop, run comand
$sudo systemctl enable gdm
$sudo systemctl start gdm
open a terminal
$sudo ./start.sh

Enjoy! Below is my miner output !

Hope it can help somebody!

Accept donate
ZEC: t1dY6yNRb8RHTmTUuyAiEEbXojfkiWPgNUF
BTC: 1Nf2QZCdsGb2giXiUZE5i4vvp5yvwXGEu2

±------------------------------------------------+
| EWBF’s Zcash CUDA miner. 0.3.4b |
±------------------------------------------------+
INFO: Current pool: cn1-zcash.flypool.org:3333
INFO: Selected pools: 1
INFO: Solver: Auto.
INFO: Devices: All.
INFO: Temperature limit: 90
INFO: Api: Disabled

INFO: Target: 0004189374bc6a7e…
CUDA: Device: 0 GeForce GTX 1080, 8112 MB i:64
INFO: Detected new work: 23f810c9b33017e54043
CUDA: Device: 0 Selected solver: 0
INFO: Detected new work: 7d2f3b912be7344458fb
Temp: GPU0: 83C
GPU0: 488 Sol/s
Total speed: 488 Sol/s
INFO 08:21:15: GPU0 Accepted share 49ms [A:1, R:0]
INFO 08:21:25: GPU0 Accepted share 53ms [A:2, R:0]

anyways, thanks for sharing this “kinda guide”.

Are there any advantages with this setup? Why are you using a kernel?

I agree , thanks for sharing a guide for a USB drive miner BUT

You only let it hash 2 shares, how about numbers after 5 minutes?
Also the temp is way too high (after two shares?)and the H/s should be about 100 higher

Is there a way to optimize?

I want to compare it with windows 10 , which will gain better hashrate, but there is no obvious difference between win10 and manjaro linux.
Only install the kernel-headers is enough for build the nvidia driver , I just want to update the kernel to the latest stable one.

The later H/s change between 460-500, and the temp is from 81 to 85. I have no idea to optimize it for now. My target is the PXE(no disk) system with miner for easy management with more rigs.

First, why are you using Manjaro? It does not supprt AMDGPU-PRO for AMD mining and will not run other precompiled miners such from Claymore. pacman -Syu base-devel will update all the packages and install development packages. Use Nvidia repo package instead of Nvidia.run so there is no need to install development packages

I try Ubuntu ,but the gateway block the apt-get protocol . I can’t install any package. so I select Manjaro, pacman is ok.

For AMDGPU , I have only GTX1080 in hand , I will try claymore miner when I have one.

Thanks for your suggestion : “Use Nvidia repo package instead of Nvidia.run so there is no need to install development packages” , I will try Nvida repo install of NV.run.

set fan to 100% run 135 shares ,result as below

Total speed: 497 Sol/s
INFO 10:28:16: GPU0 Accepted share 53ms [A:129, R:0]
INFO 10:28:17: GPU0 Accepted share 68ms [A:130, R:0]
Temp: GPU0: 78C
GPU0: 505 Sol/s
Total speed: 505 Sol/s
INFO 10:28:46: GPU0 Accepted share 52ms [A:131, R:0]
INFO 10:28:51: GPU0 Accepted share 55ms [A:132, R:0]
INFO: Detected new work: 0d80b03815d025b196d6
Temp: GPU0: 78C
GPU0: 503 Sol/s
Total speed: 503 Sol/s
INFO 10:29:32: GPU0 Accepted share 52ms [A:133, R:0]
Temp: GPU0: 78C
GPU0: 509 Sol/s
Total speed: 509 Sol/s
INFO 10:29:47: GPU0 Accepted share 52ms [A:134, R:0]
INFO: Detected new work: f72154b952f7bcaae0cc
Temp: GPU0: 79C
GPU0: 509 Sol/s
Total speed: 509 Sol/s
INFO: Detected new work: 879653afd6bca0829034
Temp: GPU0: 78C
GPU0: 505 Sol/s
Total speed: 505 Sol/s
ERROR: Lost connection with the server.
INFO: Attempt to restore connection.
INFO: Target: 0004189374bc6a7e…
INFO: Connection restored, pool: cn1-zcash.flypool.org:3333.
INFO: Detected new work: 058bddd5d5b3e664e263
INFO 10:31:06: GPU0 Accepted share 52ms [A:135, R:0]
INFO 10:31:22: GPU0 Accepted share 51ms [A:136, R:0]
Temp: GPU0: 78C
GPU0: 510 Sol/s
Total speed: 510 Sol/s