Skip to content

Instantly share code, notes, and snippets.

@ralphtheninja
Last active December 11, 2017 20:49
Show Gist options
  • Save ralphtheninja/8c3ecea9c07c6cde5d22c88ab6a901be to your computer and use it in GitHub Desktop.
Save ralphtheninja/8c3ecea9c07c6cde5d22c88ab6a901be to your computer and use it in GitHub Desktop.
sudo apt-get install apt-transport-https -y
wget -qO - https://apt.z.cash/zcash.asc | sudo apt-key add -
echo "deb https://apt.z.cash/ jessie main" | sudo tee /etc/apt/sources.list.d/zcash.list
sudo apt-get update && sudo apt-get install zcash -y
zcash-fetch-params
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
echo 'gen=1' >> ~/.zcash/zcash.conf
echo "genproclimit=$(nproc)" >> ~/.zcash/zcash.conf
echo 'equihashsolver=tromp' >> ~/.zcash/zcash.conf
zcashd -daemon
tail -f ~/.zcash/debug.log
apt-get update
apt-get install htop emacs24-nox -y
adduser zcash
usermod -aG sudo zcash
emacs /etc/ssh/sshd_config
mkdir -p /home/zcash/.ssh
cp /root/.ssh/authorized_keys /home/zcash/.ssh
chown zcash:zcash /home/zcash/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment