astrXbian/install.sh

37 lines
914 B
Bash
Raw Normal View History

2020-12-12 01:26:39 +01:00
#!/bin/bash
{
# Check requirements
sudo apt update
2020-12-12 02:11:42 +01:00
sudo apt install git curl net-tools libsodium23 libsodium-dev python3-pip python3-setuptools python3-wheel mpack libssl-dev libffi-dev build-essential qrencode jq bc gawk -y
pip3 install cryptography Ed25519 base58 google protobuf
pip3 install silkaj --user
2020-12-12 01:26:39 +01:00
2020-12-13 20:16:30 +01:00
gitpath="https://git.p2p.legal/axiom-team/astrXbian/raw/master"
2020-12-12 01:26:39 +01:00
echo "Add colors ..."
curl -s $gitpath/.install/export_colors.sh | bash || exit 1
2020-12-12 16:18:46 +01:00
[[ -n $(grep ".bash_aliases" ~/.bashrc) ]] && echo ". ~/.bash_aliases" >> ~/.bashrc
2020-12-12 01:26:39 +01:00
. ~/.bash_aliases
# Get arguments
args="$@"
# IPFS install
2020-12-13 20:16:30 +01:00
echo -e "${c_green}AstrXbian installer
2020-12-12 01:26:39 +01:00
###
1. IPFS Swarm Layer$c_"
# Full automatic (you trust this git depot)
curl -s $gitpath/.install/ipfs_alone.sh | bash || exit 1
2020-12-13 20:21:00 +01:00
mkdir ~/.zen
cd ~/.zen
git clone https://git.p2p.legal/axiom-team/astrXbian.git
2020-12-12 01:26:39 +01:00
echo -e "${c_green}Installation complete$c_"
exec bash
}