Example Prod Setup ( Ubuntu )

apt-get update && apt-get upgrade
apt-get install git python3-dev

follow https://zcash.readthedocs.io/en/latest/rtd_pages/install_debian_bin_packages.html for a detailed guide.

apt-get install apt-transport-https wget gnupg2
echo "deb [arch=amd64] https://apt.z.cash/ stretch main" | sudo tee /etc/apt/sources.list.d/zcash.list
apt-get update
wget -qO - https://apt.z.cash/zcash.asc | gpg --import
gpg --export 3FE63B67F85EA808DE9B880E6DEF3BAF272766C0 | sudo apt-key add -
sudo apt-get update && sudo apt-get install zcash
ZCASHD_USER=zcashd
ZCASHD_UID=2001
useradd --home-dir /srv/$ZCASHD_USER --shell /bin/bash --create-home --uid $ZCASHD_UID $ZCASHD_USER
## as zcashd user
zcash-fetch-params

TOR

sudo apt install tor

Erlang & Elixir

wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && sudo dpkg -i erlang-solutions_2.0_all.deb
apt-get update
apt install esl-erlang
apt-get install elixir

Nginx

Node

Certbot ( for HTTPS )

Example config for zcashd

Example systemd file for managing zcashd

zcashd.service

Create zcash-explorer user

as zcash-explorer user

feel free to create a systemd entry for managing the explorer

Example nginx config ( just he location part ) - if this is not configured correctly, real time features won't work.

examples commands / config given above gives you a bare-bones setup.

Enabling HTTPS / TOR ( Onion ) is not in the scope of this documentation.

Last updated

Was this helpful?