Skip to content

Instantly share code, notes, and snippets.

@redraw
Last active September 15, 2018 16:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save redraw/3ff8e5a614c105827b8e891fa6189c55 to your computer and use it in GitHub Desktop.
Save redraw/3ff8e5a614c105827b8e891fa6189c55 to your computer and use it in GitHub Desktop.
cjdns debian-based distributions installer - https://bit.ly/cjdns-debian-install
#!/bin/bash
function log { echo -e "\e[1;34m> ${1}\e[0m"; }
[[ -d ~/cjdns ]] && log 'already installed!' && exit 0
log 'installing inside ~/cjdns'
git clone https://github.com/cjdelisle/cjdns.git ~/cjdns
cd ~/cjdns/
log 'compiling...'
./do
(umask 077 && ./cjdroute --genconf > cjdroute.conf)
sudo cp cjdroute /usr/bin
sudo cp cjdroute.conf /etc/
log 'installing systemd service'
sudo wget https://raw.githubusercontent.com/cjdelisle/cjdns/master/contrib/systemd/cjdns.service -P /etc/systemd/system/
sudo wget https://raw.githubusercontent.com/cjdelisle/cjdns/master/contrib/systemd/cjdns-resume.service -P /etc/systemd/system/
sudo systemctl enable cjdns
sudo systemctl start cjdns
log 'done!'
log '1. add a node in /etc/cjdroute.conf (inside "connectTo")'
log '2. restart cjdns (sudo systemctl restart cjdns)'
@edvm
Copy link

edvm commented Aug 27, 2018

Looks awesome! we are ready!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment