Skip to content

Instantly share code, notes, and snippets.

@neu5ron
Last active January 8, 2017 20:06
Show Gist options
  • Save neu5ron/8dc58ae893ca9c17ccf3c7e40204d547 to your computer and use it in GitHub Desktop.
Save neu5ron/8dc58ae893ca9c17ccf3c7e40204d547 to your computer and use it in GitHub Desktop.
sudo apt-get -y install build-essential checkinstall automake libtool pkg-config;
wget -O libsodium.tar.gz https://download.libsodium.org/libsodium/releases/LATEST.tar.gz
mkdir libsodium && tar -zxvf libsodium.tar.gz -C libsodium --strip-components=1;
cd libsodium;
chmod +x configure && sh ./configure;
make;
sudo make install;
sudo ldconfig;
cd ../;
wget -O dnscrypt.tar.gz https://download.dnscrypt.org/dnscrypt-proxy/LATEST.tar.gz;
mkdir dnscrypt-proxy && tar -zxvf dnscrypt.tar.gz -C dnscrypt-proxy --strip-components=1;
cd dnscrypt-proxy/;
chmod +x autogen.sh && sh ./autogen.sh;
chmod +x configure && sh ./configure;
make;
sudo make install;
cd ../;
sudo rm -rf dnscrypt* && sudo rm -rf libsodium*;
sudo sed -i 's:exit 0:sleep 2s; exec /usr/local/sbin/dnscrypt-proxy --daemonize --pidfile=/run/dnscrypt-proxy.pid --edns-payload-size=4096 --tcp-only -R cisco\n\n#End script\nexit 0:' /etc/rc.local;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment