Skip to content

Instantly share code, notes, and snippets.

@edvm
Forked from redraw/cjdns.sh
Created August 27, 2018 19:12
Show Gist options
  • Save edvm/56eea0d2a8f65a9cbcb18cd1a3825c6a to your computer and use it in GitHub Desktop.
Save edvm/56eea0d2a8f65a9cbcb18cd1a3825c6a to your computer and use it in GitHub Desktop.
cjdns installer
#!/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