2020-12-12 01:26:39 +01:00
|
|
|
#!/bin/bash
|
|
|
|
{
|
|
|
|
# Check requirements
|
2021-01-29 00:51:08 +01:00
|
|
|
echo "AstrXbian installer, for https://xbian.org"
|
|
|
|
## ONLY FOR xbian
|
|
|
|
[[ "$USER" != "xbian" ]] && exit 1
|
2020-12-18 02:55:21 +01:00
|
|
|
sudo apt-get update
|
2021-01-29 00:51:08 +01:00
|
|
|
sudo apt-get install git fail2ban inotify-tools curl net-tools libsodium23 libsodium-dev python3-dev python3-pip python3-setuptools python3-wheel mpack libssl-dev libffi-dev -y
|
|
|
|
sudo apt-get install build-essential qrencode jq bc gawk ffmpeg sqlite dnsutils -y
|
2020-12-12 02:11:42 +01:00
|
|
|
pip3 install cryptography Ed25519 base58 google protobuf
|
2020-12-12 01:26:39 +01:00
|
|
|
|
2020-12-13 20:47:09 +01:00
|
|
|
# git clone astrXbian
|
2020-12-14 00:32:04 +01:00
|
|
|
mkdir -p ~/.zen
|
2020-12-13 20:47:09 +01:00
|
|
|
cd ~/.zen
|
|
|
|
git clone https://git.p2p.legal/axiom-team/astrXbian.git
|
2020-12-14 00:13:39 +01:00
|
|
|
########################################################################
|
|
|
|
echo "Install .kodi default config"
|
|
|
|
cp -Rf ~/.zen/astrXbian/.install/.kodi ~/
|
|
|
|
########################################################################
|
|
|
|
echo "Install IPFS Swarm Layer"
|
2020-12-13 20:47:09 +01:00
|
|
|
~/.zen/astrXbian/.install/ipfs_alone.sh || exit 1
|
2020-12-14 00:13:39 +01:00
|
|
|
########################################################################
|
2020-12-17 12:52:34 +01:00
|
|
|
echo "Setup jaklis CG+ communication tool"
|
2020-12-13 20:23:50 +01:00
|
|
|
cd ~/.zen/astrXbian/zen/jaklis
|
|
|
|
./setup.sh
|
2020-12-14 00:13:39 +01:00
|
|
|
########################################################################
|
|
|
|
echo "Setup AstrXbian"
|
|
|
|
~/.zen/astrXbian/ISOconfig.sh
|
2020-12-13 20:23:50 +01:00
|
|
|
|
|
|
|
|
2020-12-17 12:52:34 +01:00
|
|
|
## fail2ban ERROR correction ##
|
2020-12-13 20:42:15 +01:00
|
|
|
#[....] 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-15 12:38:46 +01:00
|
|
|
echo "enable ipfs initV service autostart"
|
2020-12-14 00:13:39 +01:00
|
|
|
cd /etc/rc2.d && sudo ln -s ../init.d/ipfs S02ipfs
|
2020-12-15 12:38:46 +01:00
|
|
|
cd /etc/rc3.d && sudo ln -s ../init.d/ipfs S02ipfs
|
|
|
|
cd /etc/rc4.d && sudo ln -s ../init.d/ipfs S02ipfs
|
|
|
|
cd /etc/rc5.d && sudo ln -s ../init.d/ipfs S02ipfs
|
|
|
|
|
|
|
|
cd /etc/rc0.d && sudo ln -s ../init.d/ipfs K01ipfs
|
|
|
|
cd /etc/rc1.d && sudo ln -s ../init.d/ipfs K01ipfs
|
2020-12-14 00:13:39 +01:00
|
|
|
cd /etc/rc6.d && sudo ln -s ../init.d/ipfs K01ipfs
|
|
|
|
|
|
|
|
sudo ipfs restart
|
|
|
|
sudo fail2ban restart
|
2020-12-12 01:26:39 +01:00
|
|
|
|
2020-12-14 00:13:39 +01:00
|
|
|
echo "Installation complete !!"
|
2020-12-12 01:26:39 +01:00
|
|
|
}
|
2020-12-13 20:42:15 +01:00
|
|
|
|
|
|
|
|