1
0
Fork 0

silkaj install & contact & getnode

This commit is contained in:
qo-op 2020-03-26 04:43:41 +01:00
parent e0398bb2f0
commit 0f56b2b643
3 changed files with 9 additions and 6 deletions

View File

@ -13,16 +13,18 @@ unset err
# Basics
sudo apt update
echo -e "${c_yellow}Mise à jours des prérequis...$c_"
sudo apt install curl jq zip unzip htop tree ntpdate gnupg ssmtp mpack imagemagick qrencode bc -y
sudo apt install curl jq zip unzip htop tree ntpdate gnupg mpack imagemagick qrencode build-essential base58 bc -y
# Silkaj + Duniterpy
silkaj() {
echo -e "${c_yellow}Installation de Silkaj...$c_"
libsodium=$(sudo apt search libsodium 2>/dev/null | grep -v -E "header|debug symbols" | grep "Network communication" -B1 | head -n1 | awk -F '/' '{ print $1 }')
libsodium=$(sudo apt-cache search libsodium 2>/dev/null | grep -v -E "header|debug symbols" | grep "Network communication" -B1 | head -n1 | awk -F '-' '{ print $1 }')
[[ $libsodium =~ " " ]] && libsodium=$(echo $libsodium | awk '{ print $2 }')
sudo apt install python3-pip $libsodium -y || err+="Install python3 and $libsodium"
sudo apt install libsodium-dev libssl-dev libffi-dev python3-pip python3-wheel $libsodium -y || err+="Install python3 and $libsodium"
pip3 install duniterpy || err+="Install duniterpy"
pip3 install silkaj --user || err+="Install Silkaj"
source .profile ## PATH="$HOME/.local/bin:$PATH"
}

View File

@ -107,12 +107,12 @@ http://localhost:8080/ipns/
type="$(file -b --mime-type "$file")"
size="$(wc -c < "$file")"
echo "
echo '
______ _ _ _ ____ __ _ _ _ _ _____
/\ (_ ||_)/ \|_)/ \|_)|__(_\ //\ |_)|\/||/|_\_/ |_)/ \(_ |
/--\__) || \\_/| \_/| \| __)\/\//--\| \| ||\|_ | | \_/__) |
SSB
'
echo "SSB
#astroport-swarmkey
[$name]($id)
TO.SSB_${author}

View File

@ -51,6 +51,7 @@ checkonenode()
}
# Temp dir where results are stored
rm -Rf /tmp/zen/gnodewatch
DIR=/tmp/zen/gnodewatch
export DIR
mkdir -p $DIR/chains