forked from axiom-team/astrXbian
wep
This commit is contained in:
parent
30ee0565e8
commit
066804f31f
22
README.md
22
README.md
|
@ -3,7 +3,7 @@
|
|||
**Découvrez l'[Internet des gens](https://astroport.com)**
|
||||
|
||||
astrXbian est une première façon de programmer Astroport en le connectant avec KODI.
|
||||
Utilisé de cette façon, il constitue un **Vidéo Club "pair à pair" entre amis**
|
||||
Utilisé de cette façon, il constitue un **Vidéo Club "pair à pair" entre amis**
|
||||
|
||||
Il permet de mettre en partage vos copies privées dans votre essaim au travers du média-center KODI.
|
||||
Vos relations Gchange s'appliquent comme relations (A-B(-C)) (ami (d'amis)) de votre essaim IPFS et de toutes données à échanger selon le nombre d'étoiles envoyées.
|
||||
|
@ -17,7 +17,7 @@ Il contrôle son réseau IPFS en fonction des "étoiles" transmisent par Gchange
|
|||
ASTROPORT, automate cellulaire sécurisé, prend en compte vos relations pour ouvrir des canaux de partage selon 5 niveaux de confiance.
|
||||
Ces "stargate" permettent de créer des espaces numériques public ou privés tout en contrôlant l'étendue du partage.
|
||||
|
||||
---
|
||||
---
|
||||
|
||||
## INSTALLATION (Debian/Ubuntu/Mint ou Xbian)
|
||||
|
||||
|
@ -55,7 +55,7 @@ Cela tombe bien, parce que tout utilisateur averti de son ordinateur se doit de
|
|||
Il s'agit des logiciels ipfs et de diverses couches cryptographiques compatible avec toute application du système hote pour en partager les données avec les amis de son essaim
|
||||
cette distribution permet de facilement relier nos ordinateurs en cloud sans datacenter.
|
||||
|
||||
**Ouvrez un terminal puis copiez/collez cette ligne de commande**:
|
||||
**Ouvrez un terminal puis copiez/collez cette ligne de commande**:
|
||||
|
||||
```bash <(wget -qO- https://git.p2p.legal/axiom-team/astrXbian/raw/branch/master/install.sh)```
|
||||
|
||||
|
@ -94,7 +94,7 @@ Ensemble transformons le monde numérique pour qu'il devienne LIBRE P2P et LEGAL
|
|||
|
||||
## Installation Image pour Rpi4
|
||||
|
||||
Nous avons préparé une image système pré-installée
|
||||
Nous avons préparé une image système pré-installée
|
||||
[TELECHARGER IMAGE POUR RPI](https://qo-op.com/astrXbian_2021_03_10.img)
|
||||
|
||||
- Copier l'image sur une carte micro-SD. Utiliser un RaspberryPi4 (2 ou 4Go) est recommandé!
|
||||
|
@ -106,14 +106,14 @@ NB: Les films placés dans ~/astroport/film/$TMDBID/ sont automatiquement transf
|
|||
|
||||
-- Automate Astroport/KODI en demonstration pour Xbian.org --
|
||||
|
||||
## PRINCIPE DE FONCTIONNEMENT
|
||||
## PRINCIPE DE FONCTIONNEMENT ([index des PAD astroport](https://pad.p2p.legal/s/astroport-index))
|
||||
|
||||
> Astroport/KODI vous permet de partager les vidéos que vous aimez avec les gens que vous aimez.
|
||||
|
||||
Le répertoire ~/astroport sert de sas de transfert de vos fichiers dans IPFS.
|
||||
Le répertoire ~/astroport sert de sas de transfert de vos fichiers dans IPFS.
|
||||
Votre essaim de pairs connectés se dessine selon les "étoiles" échangées sur https://gchange.fr
|
||||
|
||||
Chaque noeud astXbian possède une identité (paire de clef ed25519) qui correspond à son identité sur https://gchange.fr et un portefeuille sur https://cesium.app
|
||||
Chaque noeud astXbian possède une identité (paire de clef ed25519) qui correspond à son identité sur https://gchange.fr et un portefeuille sur https://cesium.app
|
||||
|
||||
Lorsqu'une identité "like/étoile" un autre compte sur Gchange, elle lui expédie le message "ipfstryme" ```~/.zen/ipfs/.${IPFSNODEID}/tryme.addr``` qui contient les adresses IP/IPFS connues (amis d'ami).
|
||||
|
||||
|
@ -145,7 +145,7 @@ L'essaim se restructure toutes les minutes (code: ```cron_MINUTE.sh```) et activ
|
|||
|
||||
Chaque station fabrique 5 clefs qui sont envoyées à tous ses amis en fonction des étoiles attribuées.
|
||||
Ces "stargate" partagés sur le même espace IPNS sont signés par chaque participant qui le modifie construisant une blockchain (sauvegarde).
|
||||
En cas de conflit (quand le swarm est trop grand ou désynchronisé), une procédure envoi des messages aux 2 signatures et invite à résoudre de façon manuelle le problème.
|
||||
En cas de conflit (quand le swarm est trop grand ou désynchronisé), une procédure envoi des messages aux 2 signatures et invite à résoudre de façon manuelle le problème.
|
||||
|
||||
# Magic commands
|
||||
|
||||
|
@ -175,7 +175,7 @@ ipfs ls /ipns/k51qzi5uqu5dk1nt1pfbtgfis4bep8pcip78w30xykhgba7y7wk0xyu8nwci5m
|
|||
MYCODE=$(cat ~/.zen/ipfs_swarm/.$IPFSNODEID/.mycode);
|
||||
for CODE in $(ls ~/.zen/ipfs_swarm/.12D*/.mycode);
|
||||
do
|
||||
echo
|
||||
echo
|
||||
ipfsnodeid=$(echo $CODE | cut -d '.' -f 3 | cut -d '/' -f 1 );
|
||||
code=$(cat $CODE);
|
||||
IPNSCODE=$(ipfs cat /ipns/$ipfsnodeid/.$ipfsnodeid/.mycode)
|
||||
|
@ -197,7 +197,7 @@ for ipfsnodeid in $(ipfs swarm peers | grep -o '[^/]*$'); do ipfs cat /ipns/$ipf
|
|||
# ANNEXES
|
||||
|
||||
## PRESENTATIONS VIDEO
|
||||
|
||||
|
||||
### [Fred présente Astroport à la Ressourcerie](https://tube.p2p.legal/videos/watch/7ff4a8c9-7fb7-44ef-a1ee-bdf8ecc74cfe)
|
||||
|
||||
### [Première visite de Astroport/KODI](https://tube.p2p.legal/videos/watch/d74631e9-b1bd-43f4-9db7-5effca1ef46a)
|
||||
|
@ -254,7 +254,7 @@ https://forum.monnaie-libre.fr/t/offres-emplois/16903?u=qoop
|
|||
- 1 DU par compte ouvert sur https://oasis.astroport.com
|
||||
- 2 DU par article autour du DIY Raspberry Pi sur https://copylaradio.com (+ 1 DU pour l'ouverture du compte)
|
||||
|
||||
A la clef un concours des meilleurs articles par activation de la Zen Economie sur Astroport.
|
||||
A la clef un concours des meilleurs articles par activation de la Zen Economie sur Astroport.
|
||||
|
||||
Pour rejoindre l'Astrocrew installez AstrXbian TestNET en cour s de développement et devenez programmateur de cette automate cellulaire (BASH + multilanguage).
|
||||
Le nouveau JEu du LOVE peut commencer.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
* https://git.p2p.legal/axiom-team/astrXbian
|
||||
* https://oasis.astroport.com
|
||||
* https://colibris-wiki.org/astroport
|
||||
* https://colibris-wiki.org/astroport
|
||||
|
||||
# Liens annexes
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
|||
|
||||
# jaklis : commandes de messaging / like
|
||||
```
|
||||
## GET ALERT MESSAGES
|
||||
## GET ALERT MESSAGES
|
||||
~/.zen/astrXbian/zen/jaklis/jaklis.py -k ~/.zen/secret.dunikey -n "https://data.gchange.fr" read -n300 -j | jq -r --arg friendKEY "$G1PUB" '.[] | select(.pubkey == $friendKEY)' | jq 'select(.title == "ALERT")' | jq -r '.id'
|
||||
|
||||
## SEND MONITORING MESSAGE TO onelove
|
||||
|
@ -32,3 +32,15 @@
|
|||
## LINKING ME PEOPLE
|
||||
~/.zen/astrXbian/zen/jaklis/jaklis.py -k ~/.zen/secret.dunikey -n "https://data.gchange.fr" stars | jq -r '.likes[].issuer'
|
||||
```
|
||||
|
||||
|
||||
# EXEMPLES DE COMMANDES BALISES
|
||||
```
|
||||
|
||||
## CHECK SWARM STATIONS TIMESTAMPS
|
||||
for g1id in $(ls ~/.zen/ipfs/.$IPFSNODEID/FRIENDS); do echo $g1id; [[ "$g1id" == "index.html" ]] && continue; ipfsnodeid=$(~/.zen/astrXbian/zen/tools/g1_to_ipfs.py $g1id); ts=$(ipfs --timeout=10s cat /ipns/$ipfsnodeid/.$ipfsnodeid/.timestamp); echo $(date -ud @$ts); done
|
||||
for ts in $(cat ~/.zen/ipfs_swarm/.*/.timestamp); do echo $(date -ud @$ts); done
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
|
|
@ -12,6 +12,33 @@ if [ "$EUID" -eq 0 ]
|
|||
else echo -e "OK $USER, let's go!";
|
||||
fi
|
||||
|
||||
echo "Hello,
|
||||
|
||||
This script (you could read and modify as it is open source software) is about to transform your computer into an astroport station.
|
||||
|
||||
This process involve different upgrades to be made on your system.
|
||||
1. install IPFS, the interplanetary file system (https://ipfs.io)
|
||||
2. install python cryptographic libraries to run natools, your key wizard companion
|
||||
3. download 'astroport' code release you have choosen.
|
||||
|
||||
~/.zen directory and datastructure will emerge
|
||||
~/.zen/ipfs & ~/.zen/ipfs_swarm contains all meshed media index from you and your friends.
|
||||
|
||||
ASTROPORT is activated by cron every minute it maintains the connection with your friends.
|
||||
It is the vessel that gives you avvess to your p2p AVATAR.
|
||||
You carry and share your data around your friends through a confidence network
|
||||
established through 1 to 5 'hearts' exchanged, opening 5 stargates where any can push/pull data.
|
||||
|
||||
TODO
|
||||
Just indicate which is the directory assigned to each star.
|
||||
Then any of your friends from such star level can replicate (modify) those data with you.
|
||||
|
||||
Your station is publishing its index every time it changes and every 6 hours for all MEDIAKEY from PIN station.
|
||||
Following that principle add new directory into ~/.zen/ipfs and index any dataset, it will be published on your IPFS semaphore.
|
||||
|
||||
Now you need to enter your password to obtain sudo access.
|
||||
Please.
|
||||
"
|
||||
# Ask user password on start
|
||||
sudo true
|
||||
|
||||
|
@ -32,9 +59,9 @@ fi
|
|||
|
||||
[[ -d ~/.ipfs ]] && echo "IPFS install exist! Please remove or backup before executing this script EXIT" && exit 1
|
||||
|
||||
echo -e "IPFS + Astroport Light installation..."
|
||||
echo -e "Check and install python curl, git and tools."
|
||||
|
||||
[[ $(which pip3) ]] && sudo pip3 install duniterpy || (echo "python3 pip3 is missing on your device. EXIT" && exit 1)
|
||||
[[ $(which pip3) ]] && python3 -m pip install -U pip && python3 -m pip install -U wheel cryptography Ed25519 base58 google protobuf duniterpy==0.62.0 termcolor python-dotenv gql==3.0.0a5 requests pybase64 || (echo "python3 pip3 is missing on your device. EXIT" && exit 1)
|
||||
[[ ! $(which curl) ]] && sudo apt-get install curl -y
|
||||
[[ ! $(which git) ]] && sudo apt-get install git -y
|
||||
|
||||
|
@ -42,10 +69,13 @@ echo -e "IPFS + Astroport Light installation..."
|
|||
|
||||
# CHECK node IP isLAN?
|
||||
myIP=$(hostname -I | awk '{print $1}')
|
||||
echo "Your IP is $myIP"
|
||||
isLAN=$(echo $myIP | grep -E "/(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^::1$)|(^[fF][cCdD])/")
|
||||
|
||||
[[ $isLAN ]] && echo "You are located in a LAN" || echo "You have a public IP address"
|
||||
MACHINE_TYPE=`uname -m`
|
||||
echo "You are running $MACHINE_TYPE CPU"
|
||||
|
||||
echo "Downloading ipfs binaries"
|
||||
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
|
||||
curl -s https://dist.ipfs.io/ipfs-update/v1.6.0/ipfs-update_v1.6.0_linux-amd64.tar.gz -o $MY_PATH/ipfs-update.tar.gz
|
||||
elif [ ${MACHINE_TYPE:0:3} == 'arm' ]; then
|
||||
|
@ -69,6 +99,7 @@ if [ -f $MY_PATH/ipfs-update.tar.gz ]; then
|
|||
|
||||
else
|
||||
## TERRAPI4 aarch64 install ipfs_aarch64_v0.9.1
|
||||
echo "INSTALL ipfs 0.9.1 >>>>>>>>>>>>>>>>>>>>>>>>>> arm64"
|
||||
sudo tar -xvzf /tmp/ipfs_aarch64_v0.9.1.tar.gz -C /usr/src/ || err "Untar ipfs_aarch64"
|
||||
rm /tmp/ipfs_aarch64_v0.9.1.tar.gz
|
||||
cd /usr/src/go-ipfs/
|
||||
|
@ -83,7 +114,7 @@ fi
|
|||
|
||||
## Special Xbian init.d config
|
||||
## DEBIAN SYSTEMCTL
|
||||
echo "CREATE SYSTEMD ipfs SERVICE >>>>>>>>>>>>>>>>>>"
|
||||
echo "SYSTEMD ipfs SERVICE >>>>>>>>>>>>>>>> ON"
|
||||
cat > /tmp/ipfs.service <<EOF
|
||||
[Unit]
|
||||
Description=IPFS daemon
|
||||
|
@ -111,7 +142,7 @@ EOF
|
|||
|
||||
|
||||
###########################################
|
||||
# ACTIVATE IPFS OPTIONS: #swarm0 INIT
|
||||
echo "# ACTIVATE IPFS OPTIONS: #swarm0 INIT"
|
||||
###########################################
|
||||
### IMPORTANT !!!!!!! IMPORTANT !!!!!!
|
||||
###########################################
|
||||
|
@ -124,8 +155,8 @@ ipfs config Datastore.StorageMax $diskSize
|
|||
## Activate Rapid "ipfs p2p"
|
||||
ipfs config --json Experimental.Libp2pStreamMounting true
|
||||
ipfs config --json Experimental.P2pHttpProxy true
|
||||
ipfs config --json Swarm.ConnMgr.LowWater 0
|
||||
ipfs config --json Swarm.ConnMgr.HighWater 0
|
||||
ipfs config --json Swarm.ConnMgr.LowWater 50
|
||||
ipfs config --json Swarm.ConnMgr.HighWater 100
|
||||
|
||||
## Install gateway on 8181 port
|
||||
ipfs config Addresses.Gateway "/ip4/127.0.0.1/tcp/8181"
|
||||
|
@ -147,6 +178,7 @@ mkdir -p ~/.zen/ipfs/.${IPFSNODEID}/G1SSB
|
|||
XZUID="$(hostname)-$RANDOM$RANDOM"
|
||||
echo "SETTING _xbian.zuid PROFILE NAME = $XZUID"
|
||||
echo "$XZUID" > ~/.zen/ipfs/.${IPFSNODEID}/_xbian.zuid
|
||||
echo 'balise /ipns/$IPFSNODEID/.$IPFSNODEID/_xbian.zuid'
|
||||
|
||||
########################################################################
|
||||
########################################################################
|
||||
|
@ -165,6 +197,7 @@ done
|
|||
|
||||
codesign=$(curl -s https://tube.copylaradio.com/ipns/$OASIS/.$OASIS/.mycode)
|
||||
|
||||
## ADD NETWORK EXPLORATION FROM LIKES
|
||||
########################################################################
|
||||
echo "RESTARTING ipfs"
|
||||
########################################################################
|
||||
|
@ -175,7 +208,7 @@ sleep 10
|
|||
echo ".... ACTUAL SWARM PEERS ..."
|
||||
ipfs swarm peers
|
||||
|
||||
echo "IPFS OK
|
||||
echo "IPFS DONE
|
||||
====================
|
||||
Station Astroport INSTALL
|
||||
Activation ~/.zen/astrXbian/zen/cron_VRFY.sh
|
||||
|
@ -209,12 +242,11 @@ echo "## INSTALL TiddlyWiki /ipns/${IPFSNODEID}/.${IPFSNODEID}/index.html"
|
|||
[[ ! -f ~/.zen/ipfs/.${IPFSNODEID}/index.html ]] && mkdir -p ~/.zen/ipfs/.${IPFSNODEID} && cp ~/.zen/astrXbian/.install/templates/tiddlywiki/index.html ~/.zen/ipfs/.${IPFSNODEID}/index.html
|
||||
|
||||
|
||||
echo "Tout semble OK?!
|
||||
echo "Congratulation ! You are part of the astroport interplanetary fleet.
|
||||
|
||||
NE PAS OUBLIER!!
|
||||
Ajoutez le compagnon IFPS à votre navigateur.
|
||||
Documentation : https://docs.ipfs.io/install/ipfs-companion/
|
||||
Traduction FR : https://translate.google.com/translate?sl=auto&tl=fr&u=https://docs.ipfs.io/install/ipfs-companion/
|
||||
New. Activate your station offline storage.
|
||||
Install ipfs companion : https://docs.ipfs.io/install/ipfs-companion/
|
||||
FR : https://translate.google.com/translate?sl=auto&tl=fr&u=https://docs.ipfs.io/install/ipfs-companion/
|
||||
"
|
||||
|
||||
## OPEN https://translate.google.com/translate?sl=auto&tl=fr&u=https://docs.ipfs.io/install/ipfs-companion/
|
||||
|
|
Loading…
Reference in New Issue