Skip to content

Instantly share code, notes, and snippets.

@radix42
Created June 22, 2017 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radix42/95d6b1f8e80fb358ed34cd1b97cac248 to your computer and use it in GitHub Desktop.
Save radix42/95d6b1f8e80fb358ed34cd1b97cac248 to your computer and use it in GitHub Desktop.
bash script to install and run HUSH on Debian or Ubuntu
#!/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