Complete step-by-step manual for complete dummies.
Ubuntu 14.04 x86_64 3.13.0-100 kernel
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
# install
$ sudo apt-get install cmake build-essential libboost-all-dev
$ git clone https://github.com/ocminer/nheqminer.git
$ cd nheqminer/nheqminer
$ mkdir build
$ cd build
$ cmake ..
$ make
# run miner
$ ./nheqminer -l eu1-zcash.flypool.org:3333 -u zcTK8dBXj2Qj1CTnUAKJPtfU53HqGV3roqyQZqkXLeWiGYK9Vr478fdeTpxDkRHwvG5sE8V2jXec5ZqoUvkeY3vJCC7xZjV
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=zcTK8dBXj2Qj1CTnUAKJPtfU53HqGV3roqyQZqkXLeWiGYK9Vr478fdeTpxDkRHwvG5sE8V2jXec5ZqoUvkeY3vJCC7xZjV
source my blog