From d3555942849da7325c2b8dac2831d60a84e5938a Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 11 May 2020 01:55:43 +0200 Subject: [PATCH] OASIS --- zen/tools/make_G1SSB_secret.sh | 45 ++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 13 deletions(-) diff --git a/zen/tools/make_G1SSB_secret.sh b/zen/tools/make_G1SSB_secret.sh index 04b5e6a..3b2b42a 100755 --- a/zen/tools/make_G1SSB_secret.sh +++ b/zen/tools/make_G1SSB_secret.sh @@ -65,7 +65,6 @@ echo ' /_/ /_/\____/\__,_/\___/ __/ /____/ /___/ - ' if [[ ! $(which node) ]]; then curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash @@ -74,6 +73,32 @@ if [[ ! $(which node) ]]; then nvm install --lts fi +echo " + ____ ___ _____ _________ + / __ \/ | / ___// _/ ___/ + / / / / /| | \__ \ / / \__ \ +/ /_/ / ___ |___/ // / ___/ / +\____/_/ |_/____/___//____/ + +" +nodename=$(cat /etc/hostname) +extension=$(echo $nodename | cut -d '.' -f 2) +if [[ $extension == $nodename ]]; then + PUB="false" + nodename=$nodename.local +else + PUB="true" +fi +if [[ ! $(which oasis) ]]; then + echo "INSTALL...." + npm install -g sodium-native ssb-backlinks ssb-ws ssb-links ssb-query ssb-secret-blob ssb-private + npm -g install fraction/oasis#semver: +else + echo "Stopping OASIS" + kill -9 $(ps auxf --sort=+utime | grep -w oasis | grep -v -E 'color=auto|grep' | tail -n 1 | awk '{print $2}') +fi + + # INSTALL Silkaj, CLI for Duniter echo '************************************************************** @@ -269,14 +294,7 @@ echo ' NEW IDENTITY ACTIVATED in ~/.ssb/secret -You can use Patchwork ScuttleButt Client. -https://ahdinosaur.github.io/patchwork-downloader/ - -You can try others and report them to us ;P -Maybe help making install script for them ;) - ' -sleep 5 echo ' _________ @@ -287,7 +305,7 @@ echo ' IDENTITY CREATED in ~/.ssb/secret.dunikey -Install https://cesium.app and use it +Install https://cesium.app to use it !! ' @@ -295,10 +313,8 @@ cat ~/.zen/secret.astroport.key echo ' -Enter "yes" to init Astroport Station... -and join your #Swarm0 ScuttleButt IPFS Metaverse - -ACTIVATE METAVERSE #SWARM0 INIT SEQUENCE ? +Now you are going to join #Swarm0 IPFS Metaverse +ACTIVATE METAVERSE #SWARM0 INIT SEQUENCE... ALPHA - ALPHA - ALPHA - ALPHA ' @@ -327,7 +343,10 @@ rm -f .zen/secret.astroport.key Submit issues: https://git.p2p.legal/axiom-team/astroport/issues Send ideas to support@qo-op.com + +starting OASIS. http://$nodename:3000 " +oasis --allow-host $nodename --host $nodename & exit 0 }