astrXbian/install.sh

44 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
{
# Check requirements
sudo apt update
sudo apt install git fail2ban 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
gitpath="https://git.p2p.legal/axiom-team/astrXbian/raw/master"
echo "Add colors ..."
curl -s $gitpath/.install/export_colors.sh | bash || exit 1
[[ -n $(grep ".bash_aliases" ~/.bashrc) ]] && echo ". ~/.bash_aliases" >> ~/.bashrc
. ~/.bash_aliases
# Get arguments
args="$@"
# IPFS install
echo -e "${c_green}AstrXbian installer
###
1. IPFS Swarm Layer$c_"
# Full automatic (you trust this git depot)
curl -s $gitpath/.install/ipfs_alone.sh | bash || exit 1
mkdir ~/.zen
cd ~/.zen
git clone https://git.p2p.legal/axiom-team/astrXbian.git
cd ~/.zen/astrXbian/zen/jaklis
./setup.sh
cd ~/.zen/astrXbian/
./ISOconfig.sh
## TODO add ipfs service with xbian-config
echo -e "${c_green}Installation complete$c_"
exec bash
}