using cesium+/gchange+ instead of scuttlebutt
This commit is contained in:
parent
7d91c5ce31
commit
48970b176b
|
@ -181,8 +181,8 @@ echo 'INSTALL Astroport cron_MINUTE'
|
||||||
# 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/xbian/$XZUID/g /etc/hostname
|
sudo sed -i s/astrxbian/$XZUID/g /etc/hostname
|
||||||
sudo sed -i s/xbian/$XZUID/g /etc/hosts
|
sudo sed -i s/astrxbian/$XZUID/g /etc/hosts
|
||||||
|
|
||||||
echo "CHANGE DNS" # Avoid provider restrictions
|
echo "CHANGE DNS" # Avoid provider restrictions
|
||||||
sudo cat > /etc/resolv.conf <<EOF
|
sudo cat > /etc/resolv.conf <<EOF
|
||||||
|
|
11
install.sh
11
install.sh
|
@ -1,9 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
{
|
{
|
||||||
# Check requierments
|
# Check requirements
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install curl net-tools -y
|
sudo apt install git curl net-tools -y
|
||||||
|
|
||||||
gitpath="https://git.p2p.legal/axiom-team/astroport/raw/master"
|
gitpath="https://git.p2p.legal/axiom-team/astroport/raw/master"
|
||||||
|
|
||||||
|
@ -25,10 +25,11 @@ curl -s $gitpath/.install/ipfs_alone.sh | bash || exit 1
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
curl -s $gitpath/.install/sys_checkOS.sh noexec | bash || exit 1
|
curl -s $gitpath/.install/sys_checkOS.sh noexec | bash || exit 1
|
||||||
|
|
||||||
# SSB install
|
# SSB install (now using cesium+/gchange+)
|
||||||
echo -e "${c_green}2. Ḡ1/ScuttleButt anoptical layer$c_"
|
# echo -e "${c_green}2. Ḡ1/ScuttleButt anoptical layer$c_"
|
||||||
# ONCE YOU READ and AGREE. Run TrustFull QUICK Install !!
|
# ONCE YOU READ and AGREE. Run TrustFull QUICK Install !!
|
||||||
curl -s $gitpath/zen/tools/make_G1SSB_secret.sh | bash || exit 1
|
# curl -s $gitpath/zen/tools/make_G1SSB_secret.sh | bash || exit 1
|
||||||
|
|
||||||
|
|
||||||
# LOVEland install
|
# LOVEland install
|
||||||
curl -s $gitpath/.install/loveland.sh | bash || exit 1
|
curl -s $gitpath/.install/loveland.sh | bash || exit 1
|
||||||
|
|
|
@ -96,6 +96,7 @@ echo "$diskperf" > ~/.zen/ipfs/.${IPFSNODEID}/disk.perf
|
||||||
echo $(df ~/.ipfs/ | tail -n 1 | awk '{print $4}') > ~/.zen/ipfs/.${IPFSNODEID}/disk.bytes
|
echo $(df ~/.ipfs/ | tail -n 1 | awk '{print $4}') > ~/.zen/ipfs/.${IPFSNODEID}/disk.bytes
|
||||||
|
|
||||||
|
|
||||||
|
## PUBLISH ~/.zen/ipfs on self key IPNS
|
||||||
IWALLETS=$(ipfs add -rHq ~/.zen/ipfs | tail -n 1)
|
IWALLETS=$(ipfs add -rHq ~/.zen/ipfs | tail -n 1)
|
||||||
NODEIPNS=$(ipfs name publish --allow-offline --quieter /ipfs/$IWALLETS)
|
NODEIPNS=$(ipfs name publish --allow-offline --quieter /ipfs/$IWALLETS)
|
||||||
|
|
||||||
|
|
|
@ -22,14 +22,6 @@ ME="${0##*/}"
|
||||||
|
|
||||||
## TODO : Beware of liking_me FLOOD & Invite $liking_me people to my #Swarm0
|
## TODO : Beware of liking_me FLOOD & Invite $liking_me people to my #Swarm0
|
||||||
|
|
||||||
########################################################################
|
|
||||||
## CONNECT GLOBAL "ipfs.io" ## DANGEROUS DATA LEAK only for short time...
|
|
||||||
########################################################################
|
|
||||||
# ADD ipfs.io public bootstrap into your swarm peers
|
|
||||||
# RUN: cat ~/.zen/astroport/ipfs.swarm.ipfs.io | ipfs swarm connect
|
|
||||||
# SOON ipfs swarm peers will GROW!!! YOU ARE VSIBLE !!!
|
|
||||||
# RUN: sudo systemctl restart ipfs # GOES BACK TO SWARM0
|
|
||||||
########################################################################
|
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# ENVIRONEMENT DETECTION + IPFS ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_info
|
# ENVIRONEMENT DETECTION + IPFS ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_info
|
||||||
|
@ -43,6 +35,7 @@ isIPFSRunning=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|gr
|
||||||
# Force Strict #swarm0 !!?
|
# Force Strict #swarm0 !!?
|
||||||
# ipfs bootstrap rm --all
|
# ipfs bootstrap rm --all
|
||||||
echo "" > ~/.zen/A_allow_ip.txt
|
echo "" > ~/.zen/A_allow_ip.txt
|
||||||
|
|
||||||
echo "" > ~/.zen/A_liking_me_NO_ipfstryme.txt # contains "friends" with no "ipfstryme" incoming message
|
echo "" > ~/.zen/A_liking_me_NO_ipfstryme.txt # contains "friends" with no "ipfstryme" incoming message
|
||||||
liking_me_count=0
|
liking_me_count=0
|
||||||
friend_of_mine_count=0
|
friend_of_mine_count=0
|
||||||
|
@ -73,6 +66,9 @@ do
|
||||||
ipfsadd=$((ipfsadd+1))
|
ipfsadd=$((ipfsadd+1))
|
||||||
done;
|
done;
|
||||||
|
|
||||||
|
#g1id=$(~/.zen/astroport/zen/tools/ipfs_to_g1.py "$ipfsnodeid")
|
||||||
|
#echo "G1 ID : $g1id"
|
||||||
|
|
||||||
if [[ $friend_of_mine != null ]]; then
|
if [[ $friend_of_mine != null ]]; then
|
||||||
if [[ $ipfsadd == 0 ]]; then
|
if [[ $ipfsadd == 0 ]]; then
|
||||||
# Friend of mine with no ipfstryme message (did not install astroport)
|
# Friend of mine with no ipfstryme message (did not install astroport)
|
||||||
|
@ -80,8 +76,9 @@ do
|
||||||
echo "$liking_me" >> ~/.zen/A_liking_me_NO_ipfstryme.txt
|
echo "$liking_me" >> ~/.zen/A_liking_me_NO_ipfstryme.txt
|
||||||
|
|
||||||
else
|
else
|
||||||
|
# REMOVING DUPLICATES OLD ipfstryme MESSAGES
|
||||||
nbmessage=0
|
nbmessage=0
|
||||||
for messageid in $(./jaklis.py read -n50 -j | jq -r --arg friendKEY "$liking_me" '.[] | select(.pubkey == $friendKEY)' | jq -r '.id')
|
for messageid in $(./jaklis.py read -n50 -j | jq -r --arg friendKEY "$liking_me" '.[] | select(.pubkey == $friendKEY)' | jq 'select(.title == "ipfstryme")' | jq -r '.id')
|
||||||
do
|
do
|
||||||
nbmessage=$((nbmessage+1))
|
nbmessage=$((nbmessage+1))
|
||||||
[ $nbmessage -gt 1 ] && echo "Delete OLD 'ipfstryme' messages from $liking_me" && ./jaklis.py delete -i $messageid
|
[ $nbmessage -gt 1 ] && echo "Delete OLD 'ipfstryme' messages from $liking_me" && ./jaklis.py delete -i $messageid
|
||||||
|
@ -106,9 +103,9 @@ My actual #SWARM0"
|
||||||
ipfs swarm peers
|
ipfs swarm peers
|
||||||
echo "__________________________________________"
|
echo "__________________________________________"
|
||||||
echo
|
echo
|
||||||
## Send message to
|
## Could send message to friends with 'ipfstryme' message
|
||||||
for line in $(cat ~/.zen/A_liking_me_NO_ipfstryme.txt | uniq); do
|
for line in $(cat ~/.zen/A_liking_me_NO_ipfstryme.txt | uniq); do
|
||||||
echo "Liking ME, but no ipfstryme received..."
|
echo "Liking each other, but no ipfstryme received..."
|
||||||
echo "cd ~/.zen/astroport/zen/jaklis"
|
echo "cd ~/.zen/astroport/zen/jaklis"
|
||||||
echo "./jaklis.py send -d $line -t 'Astroport' -m 'Rejoins mon #Swarm0 https://copylaradio.com'"
|
echo "./jaklis.py send -d $line -t 'Astroport' -m 'Rejoins mon #Swarm0 https://copylaradio.com'"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue