From 21297c4c8d191515cc32d7d66b930baaee9b6e67 Mon Sep 17 00:00:00 2001 From: qo-op Date: Sat, 12 Dec 2020 16:18:46 +0100 Subject: [PATCH] corrections --- ISOconfig.sh | 11 +++++++---- install.sh | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ISOconfig.sh b/ISOconfig.sh index dcf3b31..3528060 100755 --- a/ISOconfig.sh +++ b/ISOconfig.sh @@ -105,8 +105,9 @@ mkdir -p ~/.zen/ipfs/.${IPFSNODEID}/G1SSB # Give $XZUID to your (gchange friends) to add in Vstream Astroport and access your sharings # IPNS link to "pastebin list" http://localhost:8181/ipns/$IPNSKEY/xbian/$XZUID ######################################################################## -XZUID=$(~/.zen/astrXbian/zen/tools/diceware.sh 1 | xargs)-$(~/.zen/astrXbian/zen/tools/diceware.sh 1 | xargs)$(hostname -I | cut -d ' ' -f 1 | cut -d "." -f 4 ) +XZUID=$(~/.zen/astrXbian/zen/tools/diceware.sh 1 | xargs)$(hostname -I | cut -d ' ' -f 1 | cut -d "." -f 4 )$(~/.zen/astrXbian/zen/tools/diceware.sh 1 | xargs) echo "CREATE ~/.zen/ipfs/xbian/$XZUID" +mkdir -p ~/.zen/ipfs/xbian touch ~/.zen/ipfs/xbian/$XZUID # https://github.com/Kodi-vStream/venom-xbmc-addons/wiki/Voir-et-partager-sa-biblioth%C3%A8que-priv%C3%A9e#d%C3%A9clarer-des-films echo "$XZUID" > ~/.zen/ipfs/.${IPFSNODEID}/_xbian.zuid @@ -172,17 +173,19 @@ echo 'SEND ipfstryme to oasis' # Add your bootstrap Pub here ######################################################################## echo 'INSTALL Astroport cron_MINUTE' ######################################################################## -~/.zen/astrXbian/zen/tools/cron_VRFY.sh +~/.zen/astrXbian/zen/cron_VRFY.sh # Run only once: comment /etc/rc.local (su - xbian -c "~/.zen/astrXbian/ISOconfig.sh") # sudo sed -i s/su/\#su/g /etc/rc.local # BETTER NOT: Send new 'ipfstryme' message on each boot is done instead echo "CHANGE hostname" -sudo sed -i s/astrxbian/$XZUID/g /etc/hostname -sudo sed -i s/astrxbian/$XZUID/g /etc/hosts +astrxbian=$(hostname) +sudo sed -i s/$astrxbian/$XZUID/g /etc/hostname +sudo sed -i s/$astrxbian/$XZUID/g /etc/hosts echo "CHANGE DNS" # Avoid provider restrictions +sudo mv /etc/resolv.conf /etc/resolv.conf.old sudo cat > /etc/resolv.conf <> ~/.bashrc . ~/.bash_aliases # Get arguments