extended install

This commit is contained in:
qo-op 2020-03-30 03:02:29 +02:00
parent 6741563501
commit fb3d19fb8d
1 changed files with 16 additions and 11 deletions

View File

@ -37,10 +37,10 @@ if [[ ! $(which sbot) ]]; then
npm install sodium-native ssb-backlinks
npm install -g ssb-server
nodename=$(cat /etc/hostname).local
nodename=$(cat /etc/hostname).local
echo "SSB Node Hostname (default $nodename)?"
read EXTERNAL
[[ $EXTERNAL == "" ]] && EXTERNAL=$nodename
[[ $EXTERNAL == "" ]] && EXTERNAL=$nodename
mkdir -p ~/.ssb
cat > ~/.ssb/config <<EOF
@ -153,16 +153,16 @@ python3 ./key_create_dunikey.py "$salt" "$pepper"
mv ./.secret.dunikey ~/.ssb/secret.dunikey
# CREATE SSB secret
pub=$(cat ~/.ssb/secret.dunikey | grep "pub" | cut -d ' ' -f 2)
priv=$(cat ~/.ssb/secret.dunikey | grep "sec" | cut -d ' ' -f 2)
ssbpub=$(echo $pub | base58 -d | base64)
ssbpriv=$(echo $priv | base58 -d | base64)
g1pub=$(cat ~/.ssb/secret.dunikey | grep "pub" | cut -d ' ' -f 2)
g1priv=$(cat ~/.ssb/secret.dunikey | grep "sec" | cut -d ' ' -f 2)
ssbpub=$(echo $g1pub | base58 -d | base64)
ssbpriv=$(echo $g1priv | base58 -d | base64)
cat > ~/.ssb/secret <<EOF
# This secret is related to your G1Wallet - https://cesium.app
# silkaj balance $pub
# ID (salt): $salt / Pass: $pepper
# THIS KEY IS YOURS! REMIND IT AND KEEP IT SAFE AS A REAL WALLET
# chmod 400 ~/.zen/secret
# This secret was generated from ~/.ssb/secret.dunikey
# G1 Wallet https://cesium.app with Mnemonic Credentials
# user: $salt
# password: $pepper
# THIS KEY IS YOURS! KEEP IT SAFE AS A REAL WALLET
{
"curve": "ed25519",
@ -174,11 +174,16 @@ cat > ~/.ssb/secret <<EOF
# WARNING! It's vital that you DO NOT edit OR share your secret name
# instead, share your public name
# your SSB public name: @$ssbpub.ed25519
# your G1 wallet public key: $g1pub
EOF
fi
# TODO: Create RAM disk
# mkdir -p ~/.ssb/zen/tmp && sudo mount -t tmpfs -osize=64m tmpfs ~/.ssb/zen/tmp
# Add it to /etc/fstab
echo -e "Installation complete"