astrXbian/install.sh

40 lines
1.0 KiB
Bash
Raw Normal View History

2020-12-12 01:26:39 +01:00
#!/bin/bash
{
# Check requirements
sudo apt update
2020-12-13 20:42:15 +01:00
sudo apt install git fail2ban curl net-tools libsodium23 libsodium-dev python3-dev python3-pip python3-setuptools python3-wheel mpack libssl-dev libffi-dev build-essential qrencode jq bc gawk -y
2020-12-12 02:11:42 +01:00
pip3 install cryptography Ed25519 base58 google protobuf
2020-12-13 20:23:50 +01:00
# pip3 install silkaj --user
2020-12-12 01:26:39 +01:00
2020-12-13 20:47:09 +01:00
# git clone astrXbian
mkdir ~/.zen
cd ~/.zen
git clone https://git.p2p.legal/axiom-team/astrXbian.git
2020-12-12 01:26:39 +01:00
# IPFS install
2020-12-13 20:49:28 +01:00
echo "AstrXbian installer"
2020-12-12 01:26:39 +01:00
###
2020-12-13 20:49:28 +01:00
echo "IPFS Swarm Layer"
2020-12-12 01:26:39 +01:00
# Full automatic (you trust this git depot)
2020-12-13 20:47:09 +01:00
~/.zen/astrXbian/.install/ipfs_alone.sh || exit 1
2020-12-12 01:26:39 +01:00
2020-12-13 20:23:50 +01:00
cd ~/.zen/astrXbian/zen/jaklis
./setup.sh
cd ~/.zen/astrXbian/
./ISOconfig.sh
2020-12-13 20:42:15 +01:00
## ERRORS TODO ##
#[....] Starting authentication failure monitor: fail2ban No file(s) found for glob /var/log/auth.log
# Failed during configuration: Have not found any log file for sshd jail
# failed!
2020-12-13 20:48:31 +01:00
sudo sed -i "s/auth.log/faillog/g" /etc/fail2ban/paths-common.conf
2020-12-13 20:42:15 +01:00
##
2020-12-13 20:23:50 +01:00
## TODO add ipfs service with xbian-config
2020-12-12 01:26:39 +01:00
2020-12-13 20:49:28 +01:00
echo "Installation complete !! Please enable ipfs service autostart"
2020-12-12 01:26:39 +01:00
}
2020-12-13 20:42:15 +01:00