1.在基於 Ubuntu 或者 Debian 的系統中:node
$ sudo apt-get install \
build-essential pkg-config libc6-dev m4 g++-multilib \
autoconf libtool ncurses-dev unzip git python \
zlib1g-dev wget bsdmainutils automakepython
2.經過使用 git 或運行 fetch-params.sh, 來獲取咱們的程序庫:git
$ git clone https://github.com/zcash/zcash.git
$ cd zcash/
$ git checkout v1.0.3
$ ./zcutil/fetch-params.shgithub
3.配置ubuntu
創建 ~/.zcash 目錄,並在 ~/.zcash/zcash.conf 中使用如下命令行放置配置文件。dom
mkdir -p ~/.zcash
echo "addnode=mainnet.z.cash" >~/.zcash/zcash.conf
echo "rpcuser=username" >>~/.zcash/zcash.conf
echo "rpcpassword=`head -c 32 /dev/urandom | base64`" >>~/.zcash/zcash.conf測試
4.經過二進制安裝
On Ubuntu Trusty, you can install gcc/g++ 4.9 as follows:fetch
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.9ui
First install the following dependency so you can talk to our repository using HTTPS:命令行
sudo apt-get install apt-transport-https
Next add the Zcash master signing key to apt's trusted keyring:
wget -qO - https://apt.z.cash/zcash.asc | sudo apt-key add -
Fingerprint: F1E2 1403 7E94 E950 BA85 77B2 63C4 A216 9C1B 2FA2
Add the repository to your sources:
echo "deb [arch=amd64] https://apt.z.cash/ jessie main" | sudo tee /etc/apt/sources.list.d/zcash.list
Finally, update the cache of sources and install Zcash:
sudo apt-get update && sudo apt-get install zcash
5.運行 Zcash:
如今,運行 zcashd!
$ zcashd
想要在後臺運行程序 (並無一般可見的節點指示屏幕),能夠使用 ./src/zcashd --daemon。
你能夠在 RPC 加載完畢後使用它。如下是一個快速測試它的方法:
$ zcash-cli getinfo