GCHANGE+ or CESIUM+
This commit is contained in:
parent
d63c56632d
commit
7d91c5ce31
|
@ -14,7 +14,7 @@ import random
|
|||
|
||||
SITE_IDENTIFIER = 'astroport'
|
||||
SITE_NAME = 'ASTROPORT _PROFIL_ (_LOGIN_) (_MDP_)'
|
||||
SITE_DESC = 'Astroport permet de partager le contenu du répertoire ~/astroport avec ses amis https://gchange.fr'
|
||||
SITE_DESC = 'Partage ~/astroport/films (animes, series) avec ses amis https://cesium.app via IPFS'
|
||||
|
||||
URL_MAIN = 'http://localhost:8080/ipns/_IPNSKEY_/xbian/'
|
||||
|
||||
|
|
19
ISOconfig.sh
19
ISOconfig.sh
|
@ -147,6 +147,9 @@ cp -f ~/.zen/astroport/.install/.kodi/addons/plugin.video.vstream/resources/site
|
|||
ipfs key rm xbian
|
||||
IPNSKEY=$(ipfs key gen xbian)
|
||||
sed -i s/_IPNSKEY_/$IPNSKEY/g ~/.kodi/addons/plugin.video.vstream/resources/sites/astroport.py
|
||||
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
|
||||
|
||||
~/.zen/astroport/zen/gchange_IPFS_swarm.sh
|
||||
~/.zen/astroport/zen/ipfs_SWARM_refresh.sh
|
||||
|
@ -177,6 +180,22 @@ echo 'INSTALL Astroport cron_MINUTE'
|
|||
# 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/xbian/$XZUID/g /etc/hostname
|
||||
sudo sed -i s/xbian/$XZUID/g /etc/hosts
|
||||
|
||||
echo "CHANGE DNS" # Avoid provider restrictions
|
||||
sudo cat > /etc/resolv.conf <<EOF
|
||||
domain home
|
||||
search home
|
||||
nameserver 80.67.169.12 80.67.169.40 94.247.43.254 2001:67c:13e4:1::37
|
||||
# FFDN.org opennic.org = ns8.he.de + ns5.ru
|
||||
EOF
|
||||
sudo chattr +i /etc/resolv.conf
|
||||
|
||||
|
||||
# OTHER LANGUAGE KEYBOARD dpkg-reconfigure keyboard-configuration
|
||||
|
||||
########################################################################
|
||||
echo 'REBOOT NOW...'
|
||||
########################################################################
|
||||
|
|
|
@ -40,12 +40,12 @@ cat ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr
|
|||
|
||||
|
||||
################################
|
||||
# ADD Cesium+ informations
|
||||
CESIUMPLUS="https://g1.data.le-sou.org"
|
||||
# ADD GCHANGE+ informations
|
||||
GCHANGE="https://data.gchange.fr"
|
||||
|
||||
# PREPARE title
|
||||
# Made from Gchange+ profile tittle and city OR user@hostname
|
||||
title=$(curl -s ${CESIUMPLUS}/user/profile/${G1PUB} | jq -r '._source.title')
|
||||
title=$(curl -s ${GCHANGE}/user/profile/${G1PUB} | jq -r '._source.title')
|
||||
[[ -f ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_uidna ]] && uidna=$(cat ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_uidna)
|
||||
|
||||
# Put in .$IPFSNODEID INDEX: _g1.uidna & _g1.cesium_name (used by Minetest flavour and others)
|
||||
|
@ -55,17 +55,17 @@ title=$(curl -s ${CESIUMPLUS}/user/profile/${G1PUB} | jq -r '._source.title')
|
|||
[[ $uidna ]] && [[ "$title" == "null" ]] && title="Station $uidna"
|
||||
[[ "$title" == "null" ]] && title="Station $USER@$(cat /etc/hostname)"
|
||||
|
||||
city=$(curl -s ${CESIUMPLUS}/user/profile/${G1PUB} | jq -r '._source.city')
|
||||
city=$(curl -s ${GCHANGE}/user/profile/${G1PUB} | jq -r '._source.city')
|
||||
[[ "$city" != "null" ]] && title="$title in $city"
|
||||
|
||||
|
||||
# ADD "cesium_geoPoint.lat" AND "cesium_geoPoint.lon" messages in SSB feed
|
||||
# This way any SSB account is connected to its Cesium+ Geolocalisation.
|
||||
geopointlat=$(curl -s ${CESIUMPLUS}/user/profile/${G1PUB} | jq '._source.geoPoint.lat')
|
||||
geopointlon=$(curl -s ${CESIUMPLUS}/user/profile/${G1PUB} | jq '._source.geoPoint.lon')
|
||||
geopointlat=$(curl -s ${GCHANGE}/user/profile/${G1PUB} | jq '._source.geoPoint.lat')
|
||||
geopointlon=$(curl -s ${GCHANGE}/user/profile/${G1PUB} | jq '._source.geoPoint.lon')
|
||||
|
||||
# REFRESH Cesium+ Avatar image
|
||||
curl -s ${CESIUMPLUS}/user/profile/${G1PUB} | jq -r '._source.avatar._content' | base64 -d > "/tmp/_gchange.avatar.png"
|
||||
curl -s ${GCHANGE}/user/profile/${G1PUB} | jq -r '._source.avatar._content' | base64 -d > "/tmp/_gchange.avatar.png"
|
||||
|
||||
# Get nodename
|
||||
[[ -f /home/$YOU/.zen/ipfs/.$IPFSNODEID/G1SSB/_nodename ]] && nodename=$(cat /home/$YOU/.zen/ipfs/.$IPFSNODEID/G1SSB/_nodename)
|
||||
|
@ -100,7 +100,7 @@ IWALLETS=$(ipfs add -rHq ~/.zen/ipfs | tail -n 1)
|
|||
NODEIPNS=$(ipfs name publish --allow-offline --quieter /ipfs/$IWALLETS)
|
||||
|
||||
###
|
||||
# GET ALL MY CESIUMPLUS FRIENDS AND SEND THEM my IPFS Address
|
||||
# GET ALL MY GCHANGE FRIENDS AND SEND THEM my IPFS Address
|
||||
|
||||
cd ~/.zen/astroport/zen/jaklis
|
||||
# GET LIST of issuer(s) who likes me
|
||||
|
|
Loading…
Reference in New Issue