Installing Zel Daemon
This guide walks through the step-by-step process of building the Zel daemon/CLI from the open-source repository on Github

Getting Started

Recommended System Specs:
2 or more CPU threads 64-bit Linux (Ubuntu 18.04) 4+ GB RAM 25+ GB Storage
If setting up a ZelNode, follow this link: https://zel.gitbook.io/zelnodes/
The instructions below on this page are for setting up a standard p2p node, not a ZelNode to collect network rewards
Running a standard p2p node does not yield any Zel

Building for Linux from source

Building source works for many popular Ubuntu, Debian, & Fedora distros. We officially support Ubuntu 18.04 LTS "Bionic Beaver"

Install Ubuntu/Debian dependencies

1
sudo apt-get update && sudo apt-get upgrade -y
2
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python python-zmq zlib1g-dev wget curl bsdmainutils automake
Copied!

Install Fedora dependencies (if not using Ubuntu/Debian OS)

1
sudo dnf install git pkgconfig automake autoconf ncurses-devel python python-zmq wget gtest-devel gcc gcc-c++ libtool curl patch
Copied!

Build zelcashd

1
git clone https://github.com/zelcash/zelcash.git
2
cd zelcash
3
git checkout master
4
./zcutil/build.sh -j$(nproc)
Copied!

Create config file

1
mkdir ~/.zelcash
2
echo "rpcuser=username" >> ~/.zelcash/zelcash.conf
3
echo "rpcpassword=`head -c 32 /dev/urandom | base64`" >> ~/.zelcash/zelcash.conf
4
echo "rpcallowip=127.0.0.1" >> ~/.zelcash/zelcash.conf
5
echo "addnode=explorer.zel.cash" >> ~/.zelcash/zelcash.conf
6
echo "addnode=explorer.zel.zelcore.io" >> ~/.zelcash/zelcash.conf
Copied!

Fetch params

1
cd zelcash
2
./zcutil/fetch-params.sh
Copied!

Run zelcashd

1
./src/zelcashd
Copied!

Building for MacOS from source

Install dependencies

1
#install xcode
2
xcode-select --install
3
4
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
5
brew install cmake autoconf libtool automake coreutils pkgconfig gmp wget
6
7
brew install gcc5 --without-multilib
Copied!

Build

1
git clone https://github.com/zelcash/zelcash.git
2
cd zelcash
3
git checkout master
4
./zcutil/build.sh -j$(sysctl -n hw.ncpu)
Copied!

Fetch params

1
./zcutil/fetch-params.sh
Copied!

Create config file

1
mkdir ~/Library/Application Support/zelcash/
2
echo "rpcuser=username" >> ~/Library/Application Support/zelcash/zelcash.conf
3
echo "rpcpassword=`head -c 32 /dev/urandom | base64`" >> ~/Library/Application Support/zelcash/zelcash.conf
4
echo "rpcallowip=127.0.0.1" >> ~/Library/Application Support/zelcash/zelcash.conf
5
echo "addnode=explorer.zel.cash" >> ~/Library/Application Support/zelcash/zelcash.conf
6
echo "addnode=explorer.zel.zelcore.io" >> ~/Library/Application Support/zelcash/zelcash.conf
Copied!

Run zelcashd

1
./src/zelcashd
Copied!

Building for Windows from source

Install dependencies

1
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev cmake unzip git python zlib1g-dev wget bsdmainutils automake mingw-w64 curl
Copied!

Build zelcashd

1
git clone https://github.com/zelcash/zelcash.git
2
cd zelcash
3
git checkout master
4
./zcutil/build-win.sh -j$(nproc)
Copied!

Create config file

Create folder %AppData%/Roaming/ZelCash
Create txt file zelcash.conf in above folder. Copy/paste the below into zelcash.conf and save, close. Change rpc username and password
1
rpcuser=randomusername
2
rpcpassword=RandomPasswordChangeme
3
rpcallowip=127.0.0.1
4
addnode=explorer.zel.cash
5
addnode=explorer.zel.zelcore.io
Copied!

Fetch params

Create folder %AppData%/Roaming/ZcashParams
Download the below links into this folder
1
https://zelcore.io/zelcore/sapling-output.params
2
https://zelcore.io/zelcore/sapling-spend.params
3
https://zelcore.io/zelcore/sprout-groth16.params
4
https://zelcore.io/zelcore/sprout-proving.key
5
https://zelcore.io/zelcore/sprout-verifying.key
Copied!

Run zelcashd

1
zelcashd.exe
Copied!

Install using APT repo

The APT repo works with many popular Ubuntu & Debian distros
1
echo 'deb https://zelcash.github.io/aptrepo/ all main' | sudo tee --append /etc/apt/sources.list.d/zelcash.list
2
gpg --keyserver keyserver.ubuntu.com --recv 4B69CA27A986265D
3
gpg --export 4B69CA27A986265D | sudo apt-key add -
4
5
sudo apt-get update
6
sudo apt-get install zelcash
Copied!
This installs zelcashd, zelcash-cli, zelcash-tx and zelcash-fetch-params
1
cd zelcash
2
chmod +x zelcash-fetch-params
3
./zelcash-fetch-params
Copied!

Building for ARM from source (cross-compile)

Cross-compile works on Debian 9 and Ubuntu 18.04, possibly other versions and distros. This build is not officially supported.

Install dependencies

1
sudo apt-get update && sudo apt-get upgrade -y
2
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python python-zmq zlib1g-dev wget curl bsdmainutils automake
3
sudo apt-get install gcc-aarch64-linux-gnu
4
sudo apt install g++-aarch64-linux-gnu
Copied!

Build zelcashd

1
git clone https://github.com/zelcash/zelcash.git
2
cd zelcash
3
git checkout master
4
HOST=aarch64-linux-gnu ./zcutil/build.sh
Copied!
This will build zelcashd, zelcash-cli, and zelcash-tx
Move the above files to your ARM device under ~/zelcash/src/

Fetch params

1
mkdir ~/zelcash/zcutil && cd ~/zelcash/zcutil
2
wget https://raw.githubusercontent.com/zelcash/zelcash/master/zcutil/fetch-params.sh
3
chmod +x fetch-params.sh
4
./fetch-params.sh
Copied!

Run zelcashd

1
~/zelcash/src/zelcashd
Copied!
Last modified 2yr ago