Created
June 22, 2017 16:14
-
-
Save radix42/95d6b1f8e80fb358ed34cd1b97cac248 to your computer and use it in GitHub Desktop.
bash script to install and run HUSH on Debian or Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd ~ && \ | |
sudo apt-get update && \ | |
sudo apt-get --yes --force-yes install \ | |
build-essential pkg-config libc6-dev m4 g++-multilib \ | |
autoconf libtool ncurses-dev unzip git python \ | |
zlib1g-dev wget bsdmainutils automake supervisor iptables-persistent && \ | |
sudo iptables -A INPUT -p tcp --dport 8888 -j ACCEPT && \ | |
sudo netfilter-persistent save && \ | |
mkdir -p ~/.hush && \ | |
echo "rpcuser=username" >> ~/.hush/hush.conf && \ | |
echo "rpcpassword=`head -c 32 /dev/urandom | base64`" >>~/.hush/hush.conf && \ | |
git clone https://github.com/MyHush/hush.git && \ | |
cd hush && \ | |
./zcutil/fetch-params.sh && \ | |
./zcutil/build.sh -j$(nproc) && \ | |
./src/hushd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment