-
-
Save edvm/56eea0d2a8f65a9cbcb18cd1a3825c6a to your computer and use it in GitHub Desktop.
cjdns installer
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 | |
echo "installing..." | |
git clone https://github.com/cjdelisle/cjdns.git cjdns | |
cd cjdns/ | |
./do | |
(umask 077 && ./cjdroute --genconf > cjdroute.conf) | |
sudo cp cjdroute /usr/bin | |
sudo cp cjdroute.conf /etc/ | |
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/ | |
echo "enable cjdns.service" | |
sudo systemctl enable cjdns | |
echo "starting..." | |
sudo systemctl start cjdns | |
echo "done! check status: systemctl status cjdns" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment