corrections
This commit is contained in:
parent
3ef7320051
commit
9ee494795d
50
ISOconfig.sh
50
ISOconfig.sh
|
@ -20,7 +20,7 @@ if [[ -f ~/.zen/ipfs.sync ]]; then
|
||||||
echo "CONFIG ALREADY DONE"
|
echo "CONFIG ALREADY DONE"
|
||||||
source ~/.zen/ipfs.sync
|
source ~/.zen/ipfs.sync
|
||||||
# NEW BOOT! SEND ipfstryme message to my friends...
|
# NEW BOOT! SEND ipfstryme message to my friends...
|
||||||
cd ~/.zen/astroport/zen/jaklis
|
cd ~/.zen/astrXbian/zen/jaklis
|
||||||
# GET LIST of issuer(s) who likes me
|
# GET LIST of issuer(s) who likes me
|
||||||
for liking_me in $(./jaklis.py like | jq -r '.likes[].issuer');
|
for liking_me in $(./jaklis.py like | jq -r '.likes[].issuer');
|
||||||
do
|
do
|
||||||
|
@ -40,9 +40,9 @@ ping -q -w 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` > /dev/null && echo ok
|
||||||
########################################################################
|
########################################################################
|
||||||
echo "CREATING Gchange credentials"
|
echo "CREATING Gchange credentials"
|
||||||
########################################################################
|
########################################################################
|
||||||
salt="$(~/.zen/astroport/zen/tools/diceware.sh 3 | xargs)"
|
salt="$(~/.zen/astrXbian/zen/tools/diceware.sh 3 | xargs)"
|
||||||
[[ $salt == "" ]] && echo "ERROR" && exit 1
|
[[ $salt == "" ]] && echo "ERROR" && exit 1
|
||||||
pepper="$(~/.zen/astroport/zen/tools/diceware.sh 3 | xargs)"
|
pepper="$(~/.zen/astrXbian/zen/tools/diceware.sh 3 | xargs)"
|
||||||
|
|
||||||
g1_salt="$salt"
|
g1_salt="$salt"
|
||||||
g1_pepper="$pepper"
|
g1_pepper="$pepper"
|
||||||
|
@ -55,7 +55,7 @@ echo "$g1_pepper" >> /tmp/secret.june
|
||||||
########################################################################
|
########################################################################
|
||||||
echo "CREATING /tmp/secret.dunikey"
|
echo "CREATING /tmp/secret.dunikey"
|
||||||
########################################################################
|
########################################################################
|
||||||
python3 ~/.zen/astroport/zen/tools/key_create_dunikey.py "$g1_salt" "$g1_pepper"
|
python3 ~/.zen/astrXbian/zen/tools/key_create_dunikey.py "$g1_salt" "$g1_pepper"
|
||||||
|
|
||||||
g1pub=$(cat /tmp/secret.dunikey | grep "pub" | cut -d ' ' -f 2)
|
g1pub=$(cat /tmp/secret.dunikey | grep "pub" | cut -d ' ' -f 2)
|
||||||
g1sec=$(cat /tmp/secret.dunikey | grep "sec" | cut -d ' ' -f 2)
|
g1sec=$(cat /tmp/secret.dunikey | grep "sec" | cut -d ' ' -f 2)
|
||||||
|
@ -64,7 +64,7 @@ g1sec=$(cat /tmp/secret.dunikey | grep "sec" | cut -d ' ' -f 2)
|
||||||
########################################################################
|
########################################################################
|
||||||
echo "CREATING /tmp/config.ipfs"
|
echo "CREATING /tmp/config.ipfs"
|
||||||
########################################################################
|
########################################################################
|
||||||
ipfs_ID=$(python3 ~/.zen/astroport/zen/tools/create_ipfsnodeid_from_tmp_secret.dunikey.py)
|
ipfs_ID=$(python3 ~/.zen/astrXbian/zen/tools/create_ipfsnodeid_from_tmp_secret.dunikey.py)
|
||||||
echo $ipfs_ID > /tmp/secret.ipfs && source /tmp/secret.ipfs
|
echo $ipfs_ID > /tmp/secret.ipfs && source /tmp/secret.ipfs
|
||||||
[[ $PrivKEY == "" ]] && echo "ERROR" && exit 1
|
[[ $PrivKEY == "" ]] && echo "ERROR" && exit 1
|
||||||
jq -r --arg PeerID "$PeerID" '.Identity.PeerID=$PeerID' ~/.ipfs/config > /tmp/config.tmp
|
jq -r --arg PeerID "$PeerID" '.Identity.PeerID=$PeerID' ~/.ipfs/config > /tmp/config.tmp
|
||||||
|
@ -103,26 +103,29 @@ rm -Rf ~/.zen/ipfs
|
||||||
mkdir -p ~/.zen/ipfs/.${IPFSNODEID}/G1SSB
|
mkdir -p ~/.zen/ipfs/.${IPFSNODEID}/G1SSB
|
||||||
########################################################################
|
########################################################################
|
||||||
# Give $XZUID to your (gchange friends) to add in Vstream Astroport and access your sharings
|
# Give $XZUID to your (gchange friends) to add in Vstream Astroport and access your sharings
|
||||||
# IPNS link to "pastebin list" http://localhost:8080/ipns/$IPNSKEY/xbian/$XZUID
|
# IPNS link to "pastebin list" http://localhost:8181/ipns/$IPNSKEY/xbian/$XZUID
|
||||||
########################################################################
|
########################################################################
|
||||||
XZUID=$(~/.zen/astroport/zen/tools/diceware.sh 1 | xargs)-$(~/.zen/astroport/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"
|
echo "CREATE ~/.zen/ipfs/xbian/$XZUID"
|
||||||
|
mkdir -p ~/.zen/ipfs/xbian
|
||||||
touch ~/.zen/ipfs/xbian/$XZUID
|
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
|
# 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
|
echo "$XZUID" > ~/.zen/ipfs/.${IPFSNODEID}/_xbian.zuid
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
########################################################################
|
########################################################################
|
||||||
echo "CREATE gchange+ profile"
|
echo "CREATE + profile"
|
||||||
########################################################################
|
########################################################################
|
||||||
cd ~/.zen/astroport/zen/jaklis
|
cd ~/.zen/astrXbian/zen/jaklis
|
||||||
./jaklis.py set --name "$XZUID" --avatar "$HOME/.zen/astroport/logo.png"
|
./jaklis.py -n https://g1.data.le-sou.org set --name "$XZUID" --avatar "$HOME/.zen/astrXbian/logo.png" #CESIUM+
|
||||||
|
./jaklis.py -n https://data.gchange.fr set --name "$XZUID" --avatar "$HOME/.zen/astrXbian/logo.png" #GCHANGE+
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
########################################################################
|
########################################################################
|
||||||
echo "BECOME FRIEND with oasis (1st bootstrap)"
|
echo "BECOME FRIEND with oasis (1st bootstrap)"
|
||||||
########################################################################
|
########################################################################
|
||||||
./jaklis.py like -p 2jQUH4HfHxdTesjCjvMCx1VJgA5AnpuvrWRq1swfRdsS -s 5
|
./jaklis.py -n https://g1.data.le-sou.org like -p 2jQUH4HfHxdTesjCjvMCx1VJgA5AnpuvrWRq1swfRdsS -s 5
|
||||||
|
./jaklis.py -n https://data.gchange.fr like -p 2jQUH4HfHxdTesjCjvMCx1VJgA5AnpuvrWRq1swfRdsS -s 5
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
echo "RESTART ipfs"
|
echo "RESTART ipfs"
|
||||||
|
@ -136,10 +139,10 @@ ipfs swarm peers
|
||||||
########################################################################
|
########################################################################
|
||||||
echo 'EXTEND ~/.bashrc'
|
echo 'EXTEND ~/.bashrc'
|
||||||
########################################################################
|
########################################################################
|
||||||
~/.zen/astroport/.install/update_bashrc.sh
|
~/.zen/astrXbian/.install/update_bashrc.sh
|
||||||
|
|
||||||
echo "Configure .kodi/addons/plugin.video.vstream/resources/sites/astroport.py"
|
echo "Configure .kodi/addons/plugin.video.vstream/resources/sites/astroport.py"
|
||||||
cp -f ~/.zen/astroport/.install/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py \
|
cp -f ~/.zen/astrXbian/.install/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py \
|
||||||
~/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py
|
~/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py
|
||||||
|
|
||||||
# CREATE xbian IPNSKEY used to publish ~/.zen/ipfs_swarm/xbian (contains all XZUID pastebin files)
|
# CREATE xbian IPNSKEY used to publish ~/.zen/ipfs_swarm/xbian (contains all XZUID pastebin files)
|
||||||
|
@ -150,12 +153,8 @@ sed -i s/_PROFIL_/$XZUID/g ~/.kodi/addons/plugin.video.vstream/resources/sites/a
|
||||||
sed -i s/_LOGIN_/$salt/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
|
sed -i s/_MDP_/$pepper/g ~/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py
|
||||||
|
|
||||||
~/.zen/astroport/zen/gchange_IPFS_swarm.sh
|
~/.zen/astrXbian/zen/cesium_IPFS_swarm.sh
|
||||||
~/.zen/astroport/zen/ipfs_SWARM_refresh.sh
|
~/.zen/astrXbian/zen/ipfs_SWARM_refresh.sh
|
||||||
|
|
||||||
# Optionnal PUBLISH actual (later done by cron_MINUTE.sh)
|
|
||||||
IXBIAN=$(ipfs add -qr ~/.zen/ipfs_swarm/xbian | tail -n 1)
|
|
||||||
JXBIAN=$(ipfs name publish -k xbian $I)
|
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
echo 'SEND "ipfstryme" message'
|
echo 'SEND "ipfstryme" message'
|
||||||
|
@ -168,22 +167,25 @@ do
|
||||||
done
|
done
|
||||||
|
|
||||||
echo 'SEND ipfstryme to oasis' # Add your bootstrap Pub here
|
echo 'SEND ipfstryme to oasis' # Add your bootstrap Pub here
|
||||||
./jaklis.py send -d 2jQUH4HfHxdTesjCjvMCx1VJgA5AnpuvrWRq1swfRdsS -t "ipfstryme" -f ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr
|
./jaklis.py -n https://g1.data.le-sou.org send -d 2jQUH4HfHxdTesjCjvMCx1VJgA5AnpuvrWRq1swfRdsS -t "ipfstryme" -f ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr
|
||||||
|
./jaklis.py -n https://data.gchange.fr send -d 2jQUH4HfHxdTesjCjvMCx1VJgA5AnpuvrWRq1swfRdsS -t "ipfstryme" -f ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
echo 'INSTALL Astroport cron_MINUTE'
|
echo 'INSTALL Astroport cron_MINUTE'
|
||||||
########################################################################
|
########################################################################
|
||||||
~/.zen/astroport/zen/tools/cron_VRFY.sh
|
~/.zen/astrXbian/zen/cron_VRFY.sh
|
||||||
|
|
||||||
# Run only once: comment /etc/rc.local (su - xbian -c "~/.zen/astroport/ISOconfig.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
|
# sudo sed -i s/su/\#su/g /etc/rc.local
|
||||||
# BETTER NOT: Send new 'ipfstryme' message on each boot is done instead
|
# BETTER NOT: Send new 'ipfstryme' message on each boot is done instead
|
||||||
|
|
||||||
echo "CHANGE hostname"
|
echo "CHANGE hostname"
|
||||||
sudo sed -i s/astrxbian/$XZUID/g /etc/hostname
|
astrxbian=$(hostname)
|
||||||
sudo sed -i s/astrxbian/$XZUID/g /etc/hosts
|
sudo sed -i s/$astrxbian/$XZUID/g /etc/hostname
|
||||||
|
sudo sed -i s/$astrxbian/$XZUID/g /etc/hosts
|
||||||
|
|
||||||
echo "CHANGE DNS" # Avoid provider restrictions
|
echo "CHANGE DNS" # Avoid provider restrictions
|
||||||
|
sudo mv /etc/resolv.conf /etc/resolv.conf.old
|
||||||
sudo cat > /etc/resolv.conf <<EOF
|
sudo cat > /etc/resolv.conf <<EOF
|
||||||
domain home
|
domain home
|
||||||
search home
|
search home
|
||||||
|
|
Loading…
Reference in New Issue