diff options
author | kaotisk <kaotisk@arching-kaos.com> | 2021-03-19 02:49:51 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.com> | 2021-03-19 02:49:51 +0200 |
commit | d06d63dfcf7531acbdcdc05959a667990dc89bc7 (patch) | |
tree | d51b6ae12bbbbfbd53df7f73ecd8e4f06527cff9 | |
parent | 012b49d84ed19772be87db51fa6c7283a07027e4 (diff) | |
download | python-cjdns-peering-tools-d06d63dfcf7531acbdcdc05959a667990dc89bc7.tar.gz python-cjdns-peering-tools-d06d63dfcf7531acbdcdc05959a667990dc89bc7.tar.bz2 python-cjdns-peering-tools-d06d63dfcf7531acbdcdc05959a667990dc89bc7.zip |
Added information about the new script peer_info_generate.sh, clean up the way anyone can reach this repo.
-rw-r--r-- | README.md | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -5,11 +5,40 @@ A small collection of tools for generating and importing peering information thr ## Usage On your terminal, go! +### Clone the repository + +Either from: +- github +``` +git clone https://github.com/kaotisk-hund/python-cjdns-peering-tools.git +``` +- arching-kaos.net ``` git clone https://git.arching-kaos.net/kaotisk/python-cjdns-peering-tools.git +``` +- cjdns +``` +git clone http://git.kaotisk-hund.com/kaotisk/python-cjdns-peering-tools.git +``` +and then cd to it: +``` cd python-cjdns-peering-tools +``` + +### Install peers from `peers.json` file: + +The following script is going to either generate or clean off comments your configuration file, +execute the python script `appendPeers.py`, which will add `peers.json` to your file and install +to default place (/etc/cjdroute.conf). It also restart cjdns for the configuration to be applied. +``` sudo ./gen.sh ``` +### Configure new user for peering + +``` +sudo ./peer_info_generate.sh +``` + ## Files ### `appendPeers.py` @@ -21,6 +50,10 @@ Different ways to generate a `cjdroute.conf` with no comments so we can work wit ### `peer_info_generate.py` Script that creates a user and a password in `authorizedPasswords` and generates `peer_info_generated.json` file. +### `peer_info_generate.sh` +Script that makes a backup of the running ( default /etc/cjdroute.conf ) configuration, executes `peer_info_generate.py`, +pushes the new credentials to your configuration and restart cjdns. + ### `peer_info_generated.json` This is a generated file by `peer_info_generate.py` which contains the peering information for someone to connect to your node. |