ssb init ipfs detail
This commit is contained in:
parent
6a2b5d31ef
commit
57dd0c3673
|
@ -90,7 +90,7 @@ scuttlebutt() {
|
|||
}
|
||||
EOF
|
||||
|
||||
cat > ~/.zen/run-ssb_$nodename.sh <<EOF
|
||||
cat > ~/.zen/run-ssb_server.sh <<EOF
|
||||
#!/bin/bash
|
||||
echo _$ > ~/.zen/ssb.pid.bash
|
||||
while true; do
|
||||
|
@ -99,8 +99,8 @@ while true; do
|
|||
done
|
||||
EOF
|
||||
# REPLACE _ with $
|
||||
sed -i s/_/\$/g ~/.zen/run-ssb_$nodename.sh
|
||||
chmod 755 ~/.zen/run-ssb_$nodename.sh
|
||||
sed -i s/_/\$/g ~/.zen/run-ssb_server.sh
|
||||
chmod 755 ~/.zen/run-ssb_server.sh
|
||||
ssb-server start &
|
||||
|
||||
|
||||
|
@ -136,7 +136,7 @@ ssb-server start &
|
|||
}
|
||||
EOF
|
||||
|
||||
cat > ~/.zen/run-ssb_$nodename.sh <<EOF
|
||||
cat > ~/.zen/run-ssb_server.sh <<EOF
|
||||
#!/bin/bash
|
||||
echo _$ > ~/.zen/ssb.pid.bash
|
||||
while true; do
|
||||
|
@ -145,8 +145,8 @@ while true; do
|
|||
done
|
||||
EOF
|
||||
# REPLACE _ with $
|
||||
sed -i s/_/\$/g ~/.zen/run-ssb_$nodename.sh
|
||||
chmod 755 ~/.zen/run-ssb_$nodename.sh
|
||||
sed -i s/_/\$/g ~/.zen/run-ssb_server.sh
|
||||
chmod 755 ~/.zen/run-ssb_server.sh
|
||||
ssb-server start --host $nodename &
|
||||
|
||||
|
||||
|
@ -167,7 +167,7 @@ __)|_| \ \/ |_| \ || || |_ ... SCUTTLEBUTT ... OK?
|
|||
|
||||
'
|
||||
echo "DOES SCUTTELBUTT IS RUNNING FINE?"
|
||||
echo "Then add $HOME/.zen/run-ssb_$nodename.sh & TO YOUR '/etc/rc.local' !!! "
|
||||
echo "Then add $HOME/.zen/run-ssb_server.sh & TO YOUR '/etc/rc.local' !!! "
|
||||
}
|
||||
|
||||
$@
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
# IPFS FILESYSTEM STRUCTURE
|
||||
|
||||
```
|
||||
# ssb_INIT.sh
|
||||
~/.zen/ipfs/.$ipfsnodeid/G1SSB/_ssb.whoami
|
||||
~/.zen/ipfs/.$ipfsnodeid/G1SSB/_g1.pubkey
|
||||
~/.zen/ipfs/.$ipfsnodeid/G1SSB/_g1.qrcode.png
|
||||
|
||||
# zen_MAKE.sh
|
||||
~/.zen/ipfs/.$ipfsnodeid/TAG/${J}
|
||||
~/.zen/ipfs/.$ipfsnodeid/TAG/${J}/_tag.uid
|
||||
~/.zen/ipfs/.$ipfsnodeid/TAG/${J}/_tag.passenger.filename
|
||||
~/.zen/ipfs/.$ipfsnodeid/TAG/${J}/_tag.passenger.metadata.json
|
||||
|
||||
# ssb_SURVEY_contact.sh
|
||||
~/.zen/ipfs/.${ipfsnodeid}/CONTACT/${g1author}
|
||||
~/.zen/ipfs/.${ipfsnodeid}/CONTACT/${g1author}/ipfs_swarm.key.crypt
|
||||
~/.zen/ipfs/.${ipfsnodeid}/Addresses
|
||||
~/.zen/ipfs/.${ipfsnodeid}/AgentVersion
|
||||
~/.zen/ipfs/.${ipfsnodeid}/repo.stat
|
||||
|
||||
|
||||
~/.zen/ipfs/.${ipfsnodeid}/CHAN/sha256(id@channel)
|
||||
|
||||
```
|
||||
|
||||
|
||||
# IPFS CHANNELS
|
||||
|
||||
```
|
||||
~/.zen/ipfs/sha256(id@channel)/_uid
|
||||
|
||||
|
||||
```
|
||||
|
|
@ -30,6 +30,12 @@ echo '
|
|||
# [ASTROPORT](https://astroport.com)
|
||||
########################################################################
|
||||
'
|
||||
# TODO: Make choice during install
|
||||
# Do you already have an SSB account?
|
||||
# Do you already have a G1 account?
|
||||
# Do you want a passphrase?
|
||||
|
||||
|
||||
########################################################################
|
||||
# ENVIRONEMENT DETECTION + IPFS ~/.zen/ipfs/.$ipfsnodeid/G1SSB/_info
|
||||
########################################################################
|
||||
|
@ -115,3 +121,5 @@ echo $INVITE
|
|||
|
||||
# This INVITE is to be sent an "Astroport Station" willing to Join our IPFS Swarm.
|
||||
# sbot_SURVEY.sh is taking care of checking SSB Feed for commands...
|
||||
|
||||
# TODO: CREATE
|
||||
|
|
Loading…
Reference in New Issue