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