From 1384d53e0457bf3b8901375e8ff140d9ac508cbc Mon Sep 17 00:00:00 2001 From: qo-op Date: Fri, 19 Mar 2021 01:50:09 +0100 Subject: [PATCH] CREATE STARTGATE LEVEL KEYS --- ISOconfig.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ISOconfig.sh b/ISOconfig.sh index 29b5ae8..ce448f0 100755 --- a/ISOconfig.sh +++ b/ISOconfig.sh @@ -164,10 +164,29 @@ echo "UPGRADING ~/.kodi" cp -Rf ~/.zen/astrXbian/.install/.kodi ~/ echo "Configure .kodi/addons/plugin.video.vstream/resources/sites/astroport.py" + +## CREATE STARTGATE LEVEL KEYS +# _ open _ +# ___| |_ __ _ _ __ __ _ __ _| |_ ___ +#/ __| __/ _` | '__/ _` |/ _` | __/ _ \ +#\__ \ || (_| | | | (_| | (_| | || __/ +#|___/\__\__,_|_| \__, |\__,_|\__\___| +# |___/ +# IPNS KEYS used to publish with star friends (creates your 5 swarm subnets) +mkdir -p ~/.zen/key/1 ~/.zen/key/2 ~/.zen/key/3 ~/.zen/key/4 ~/.zen/key/5 +stargate_1=$(ipfs key gen star_1) && key_1=$(ls -t ~/.ipfs/keystore/ | head -n 1) && cp ~/.ipfs/keystore/$key_1 ~/.zen/key/1/ && echo "$stargate_1" > ~/.zen/key/1/stargate +stargate_2=$(ipfs key gen star_2) && key_2=$(ls -t ~/.ipfs/keystore/ | head -n 1) && cp ~/.ipfs/keystore/$key_2 ~/.zen/key/2/ && echo "$stargate_2" > ~/.zen/key/2/stargate +stargate_3=$(ipfs key gen star_3) && key_3=$(ls -t ~/.ipfs/keystore/ | head -n 1) && cp ~/.ipfs/keystore/$key_3 ~/.zen/key/3/ && echo "$stargate_3" > ~/.zen/key/3/stargate +stargate_4=$(ipfs key gen star_4) && key_4=$(ls -t ~/.ipfs/keystore/ | head -n 1) && cp ~/.ipfs/keystore/$key_4 ~/.zen/key/4/ && echo "$stargate_4" > ~/.zen/key/4/stargate +stargate_5=$(ipfs key gen star_5) && key_5=$(ls -t ~/.ipfs/keystore/ | head -n 1) && cp ~/.ipfs/keystore/$key_5 ~/.zen/key/5/ && echo "$stargate_5" > ~/.zen/key/5/stargate +# SIGNED THEY WILL BE SEND AND RENEWED EVERY WEEK or DAY or MINUTE ... (depends on DEFCON security level) + # CREATE xbian IPNSKEY used to publish ~/.zen/ipfs_swarm/xbian (contains all XZUID pastebin files) IPNSKEY=$(ipfs key list -l | grep xbian | cut -d ' ' -f 1) [[ ! $IPNSKEY ]] && IPNSKEY=$(ipfs key gen xbian) sed -i "s/_IPNSKEY_/$IPNSKEY/g" ~/.bashrc + +## MODIFY astroport.py to match station IDENTITY sed -i "s/_PROFIL_/$XZUID/g" ~/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py sed -i "s/_LOGIN_/$salt/g" ~/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py sed -i "s/_MDP_/$pepper/g" ~/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py