aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.com>2021-03-15 01:12:43 +0200
committerkaotisk <kaotisk@arching-kaos.com>2021-03-15 01:12:43 +0200
commit6820a25d9c46c1bd8ffec5cf1a09c2be56f397f9 (patch)
treef0c93ae99cf4aaea8a7830433b9f6a005c5114a3
parent5a133a40840e8e332258f47b3d0068fae12954c8 (diff)
downloadpython-cjdns-peering-tools-6820a25d9c46c1bd8ffec5cf1a09c2be56f397f9.tar.gz
python-cjdns-peering-tools-6820a25d9c46c1bd8ffec5cf1a09c2be56f397f9.tar.bz2
python-cjdns-peering-tools-6820a25d9c46c1bd8ffec5cf1a09c2be56f397f9.zip
Ready to run for first time [no backup]
-rwxr-xr-xgen.sh8
-rw-r--r--peers.json14
2 files changed, 21 insertions, 1 deletions
diff --git a/gen.sh b/gen.sh
index 89140df..cbf6bcf 100755
--- a/gen.sh
+++ b/gen.sh
@@ -8,5 +8,11 @@
#cjdroute --genconf | sed -n '/^\/\*.*\*\//!p' | sed -n '/ \/\/.*/!p' | sed 's|/\*|\n&|g;s|*/|&\n|g' | sed '/\/\*/,/*\//d' > cjdroute.conf
# Futuristic way B-)
-# cjdroute --genconf | cjdroute --cleanconf > cjdroute.conf
+sudo dnf install cjdns-tools -y
+sudo systemctl start cjdns
+sudo systemctl stop cjdns
+cjdroute --genconf | cjdroute --cleanconf > cjdroute.conf
python appendPeers.py
+sudo cat cjdroute.conf > /etc/cjdroute.conf
+sudo systemctl enable cjdns
+sudo systemctl start cjdns
diff --git a/peers.json b/peers.json
new file mode 100644
index 0000000..cf9c0d0
--- /dev/null
+++ b/peers.json
@@ -0,0 +1,14 @@
+{
+ "95.216.159.63:12786": {
+ "login": "default-login",
+ "password": "l0fgl9qkujmw6rh22w6knbwcc7x4t64",
+ "publicKey": "ppxv6z0dunqsnv9n4qnw9vjzg1yr2w82hxhk6mx82vlkcc7vmhg0.k",
+ "peerName": "akr-hels"
+ },
+ "37.139.23.136:37426": {
+ "login": "default-login",
+ "password":"y48r9hc8knyv8c8nllwkdrlbu78gyk8",
+ "publicKey":"c234cc44q0w1yfs1rf86vltdu1l700xy1dl8q86ymxc1g7fqddz0.k",
+ "peerName":"akr-hams"
+ }
+}