If i help You, send me BTC please 1CJGz4UGyL7hTjPeN8j7fu9LRmmWiWSRHi

Mining Zcash Ubuntu CPU, GPU, zcash.flypool.org

Постов 4 из 175

zcash

Complete step-by-step manual for dummies.
Ubuntu 14.04 x86_64 3.13.0-100 kernel.
Ubuntu developers removed support for package fglrx-updates somewhere on kernels 4+. With proprietary driver installed I don’t know if this instruction help.

0. Install AMD driver

Download Accelerated AMD Parallel Processing “AMD-APP-SDK-linux-v2.9-1.599.381-GA-x64.tar.bz2” from AMD site.
Extract it to the /some/folder/. Open terminal again and run commands:

$ sudo apt-get -y update
$ sudo apt-get -y upgrade -f
$ cd /some/folder/AMD-APP-SDK-linux-v2.9-1.599/
$ sudo ./AMD-APP-SDK-v2.9-1.599.381-GA-linux64.sh 
$ sudo ln -s /opt/AMDAPPSDK-2.9-1 /opt/AMDAPP 
$ sudo ln -s /opt/AMDAPP/include/CL /usr/include 
$ sudo ln -s /opt/AMDAPP/lib/x86_64/* /usr/lib/ 
$ sudo ldconfig 
$ sudo reboot   
$ sudo apt-get install fglrx-updates 
$ sudo aticonfig --adapter=all --initial 
$ aticonfig --list-adapters 
$ sudo reboot
$ export GO_OPENCL=true GPU_MAX_ALLOC_PERCENT=100GPU_SINGLE_ALLOC_PERCENT=100 GPU_MAX_HEAP_SIZE=100

1. Install Zcash as described in

official git wiki.

# install dependencies 
$ sudo apt-get install \
build-essential pkg-config libc6-dev m4 g++-multilib \
autoconf libtool ncurses-dev unzip git python \
zlib1g-dev wget bsdmainutils automake opencl-headers \
mesa-common-dev
 
# install zcash
$ git clone https://github.com/zcash/zcash.git
$ cd zcash/
$ git checkout v1.0.0
$ ./zcutil/fetch-params.sh
$ ./zcutil/build.sh -j$(nproc)
$ mkdir -p ~/.zcash
$ echo "addnode=mainnet.z.cash" ~/.zcash/zcash.conf
$ echo "rpcuser=usefree" ~/.zcash/zcash.conf #change "usefree" with your name
$ echo "rpcpassword=`head -c 32 /dev/urandom | base64`" ~/.zcash/zcash.conf
# for CPU mining
$ echo 'gen=1' ~/.zcash/zcash.conf
$ echo "genproclimit=$(nproc)" ~/.zcash/zcash.conf
# to generate wallet address it is needed to run daemon
$ ./src/zcashd --daemon
# generate z-address
$ ./src/zcash-cli z_getnewaddress
zcTK8dBXj2Qj1CTnUAKJPtfU53HqGV3roqyQZqkXLeWiGYK9Vr478fdeTpxDkRHwvG5sE8V2jXec5ZqoUvkeY3vJCC7xZjV
# check if address generated
$ ./src/zcash-cli z_listaddresses
[
    "zcTK8dBXj2Qj1CTnUAKJPtfU53HqGV3roqyQZqkXLeWiGYK9Vr478fdeTpxDkRHwvG5sE8V2jXec5ZqoUvkeY3vJCC7xZjV",
]
# find with "ps aux | grep zcash" and kill process. It is now not needed

2. Mine Zcash with CPU

if after 01.20.2016 — can not compile.
https://bitcointalk.org/index.php?topic=1626185.msg16743017#msg16743017

# install
$ sudo apt-get install cmake build-essential libboost-all-dev
$ git clone https://github.com/sarath-hotspot/nheqminer.git
$ cd nheqminer/nheqminer
$ mkdir build
$ cd build
$ cmake ..
$ make
# run miner 
$ ./nheqminer -l eu1-zcash.flypool.org:3333 -u zcTK8dBXj2Qj1CTnUAKJPtfU53HqGV3roqyQZqkXLeWiGYK9Vr478fdeTpxDkRHwvG5sE8V2jXec5ZqoUvkeY3vJCC7xZjV
# or to t-address because of bug https://github.com/zcash/zcash/issues/1705
$ ./nheqminer -l eu1-zcash.flypool.org:3333 -u t1KAH9Vt5iNzFFi5qbH9Y81bH3E4wtXrctr.h

3. Mine Zcash with GPU

# install
$ git clone https://github.com/nginnever/zogminer.git
$ cd zogminer/
$ ./zcutil/fetch-params.sh
$ ./zcutil/build.sh -j$(nproc)
# run miner
$ ./src/zcash-miner -G -stratum="stratum+tcp://eu1-zcash.flypool.org:3333" -user=t1KAH9Vt5iNzFFi5qbH9Y81bH3E4wtXrctr.video

You can simply use command to get all your transparent addresses :

zcash-cli listreceivedbyaddress 0 true

Mining with optiminer.

git clone https://github.com/Optiminer/OptiminerZcash.git
cd OptiminerZcash
tar -zxvf optiminer-zcash-0.3.4.tar.gz
cd /home/usefree/soft/mining/optiminer1/OptiminerZcash/optiminer-zcash
./optiminer-zcash -s eu1-zcash.flypool.org:3333 -u t1e8ZTH1jYSB68HKvUer9uZGtryP7eh1wXz.video --watchdog-timeout 40 --watchdog-cmd /home/usefree/restartminer.sh
 
# and create restart script
 
vi /home/usefree/restartminer.sh
#!/bin/bash
kill $(ps aux | grep optiminer | grep fly | awk '{print $2}')
cd /home/usefree/soft/mining/optiminer1/OptiminerZcash/optiminer-zcash
./optiminer-zcash -s eu1-zcash.flypool.org:3333 -u t1e8ZTH1jYSB68HKvUer9uZGtryP7eh1wXz.video --watchdog-timeout 40 --watchdog-cmd /home/usefree/restartminer.sh
/home/usefree/restartminer.sh

4. Some usefull zcash wallet commands

# get help
./zcash-cli help
# get help for specific command (z_exportkey)
$ ./zcash-cli help z_exportkey 
# send coins from address to address
$ TADDR='t1KAH9Vt5iNzFFi5qbH9Y81bH3E4wtXrctr'
$ DEPO='t1e8ZTH1jYSB68HKvUer9uZGtryP7eh1wXz'
$ ./zcash-cli z_sendmany "$TADDR" "[{\"amount\": 0.01, \"address\": \"$DEPO\"}]"
# check balance
$ ./zcash-cli getbalance
# list tranzactions
$ ./zcash-cli listtransactions
# get operations details
$ ./zcash-cli z_getoperationstatus
# list all t-addresses
$ ./zcash-cli listreceivedbyaddress 0 true

, , ,

Menu