forked from axiom-team/astrXbian
///
This commit is contained in:
parent
4b9bce3d47
commit
acca2b2fb2
14
README.md
14
README.md
|
@ -170,6 +170,20 @@ Les publications IPNS de tous les amis "ipfs swarm peers" alimentent ~/.zen/ipfs
|
||||||
|
|
||||||
L'essaim se restructure avec ```cron_MINUTE.sh``` pour se synchroniser et diffuser les données de façon intelligente.
|
L'essaim se restructure avec ```cron_MINUTE.sh``` pour se synchroniser et diffuser les données de façon intelligente.
|
||||||
|
|
||||||
|
# Magic commands
|
||||||
|
|
||||||
|
```
|
||||||
|
# Obtenir la liste de tous ses amis (gchange+)
|
||||||
|
cat ~/.zen/ipfs_swarm/.12*/G1SSB/_g1.gchange_title
|
||||||
|
|
||||||
|
# Obtenir les PIN IPFS de votre essaim
|
||||||
|
for astrofile in $(ls ~/.zen/ipfs_swarm/.*/PIN/*/* |sort | uniq); do echo $astrofile; done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
# ANNEXES
|
# ANNEXES
|
||||||
BROCHURE https://www.copylaradio.com/en_US/blog/blog-1/post/astrxbian-20
|
BROCHURE https://www.copylaradio.com/en_US/blog/blog-1/post/astrxbian-20
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
# Author: Fred (support@qo-op.com)
|
# Author:
|
||||||
# Version: 2020.12.25
|
# Version: 0.1
|
||||||
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
|
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
|
||||||
########################################################################
|
########################################################################
|
||||||
MY_PATH="`dirname \"$0\"`" # relative
|
MY_PATH="`dirname \"$0\"`" # relative
|
||||||
|
|
|
@ -71,11 +71,11 @@ if [[ $KEY ]]; then
|
||||||
touch ~/.zen/KEY/TMDB_$TMDB/${G1PUB}/.zen
|
touch ~/.zen/KEY/TMDB_$TMDB/${G1PUB}/.zen
|
||||||
mv ~/astroport/${CAT}/${TMDB}/ajouter_video.txt ~/.zen/KEY/TMDB_$TMDB/${G1PUB}/
|
mv ~/astroport/${CAT}/${TMDB}/ajouter_video.txt ~/.zen/KEY/TMDB_$TMDB/${G1PUB}/
|
||||||
# echo "<meta http-equiv=\"Refresh\" content=\"0;URL=http://localhost:8181/ipns/$KEY/TMDB_$TMDB/${G1PUB}/\">" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/TMDB_$TMDB/ipns.html
|
# echo "<meta http-equiv=\"Refresh\" content=\"0;URL=http://localhost:8181/ipns/$KEY/TMDB_$TMDB/${G1PUB}/\">" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/TMDB_$TMDB/ipns.html
|
||||||
# $MY_PATH/jaklis/lib/natools.py encrypt -k $G1PUB -i ~/.ipfs/keystore/$KEYFILE -o ~/.zen/ipfs/.${IPFSNODEID}/KEY/TMDB_$TMDB/.ipns.key.encrypt.natools
|
# TRY NATOOLS FOR SECURE SHARING # $MY_PATH/jaklis/lib/natools.py encrypt -k $G1PUB -i ~/.ipfs/keystore/$KEYFILE -o ~/.zen/ipfs/.${IPFSNODEID}/KEY/TMDB_$TMDB/.ipns.key.encrypt.natools
|
||||||
fi
|
fi
|
||||||
# IPNS index.html Redirect to ipfs streaming link (could be contract or anything !!)
|
# IPNS index.html Redirect to ipfs streaming link (could be contract or anything !!)
|
||||||
echo "<meta http-equiv=\"Refresh\" content=\"0;URL=http://localhost:8181/ipfs/$IPFSREPFILEID/$URLENCODE_FILE_NAME\">" > ~/.zen/KEY/TMDB_$TMDB/${G1PUB}/index.html
|
echo "<meta http-equiv=\"Refresh\" content=\"0;URL=http://localhost:8181/ipfs/$IPFSREPFILEID/$URLENCODE_FILE_NAME\">" > ~/.zen/KEY/TMDB_$TMDB/${G1PUB}/index.html
|
||||||
NEWIPFS=$(ipfs add -rHq ~/.zen/KEY/TMDB_$TMDB | tail -n 1 )
|
NEWIPFS=$(ipfs add -rHq ~/.zen/KEY/TMDB_$TMDB/ | tail -n 1 )
|
||||||
ipfs name publish --key="TMDB_$TMDB" $NEWIPFS
|
ipfs name publish --key="TMDB_$TMDB" $NEWIPFS
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue