Last active
September 15, 2018 16:58
-
-
Save redraw/3ff8e5a614c105827b8e891fa6189c55 to your computer and use it in GitHub Desktop.
cjdns debian-based distributions installer - https://bit.ly/cjdns-debian-install
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 | |
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)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks awesome! we are ready!