forked from axiom-team/astrXbian
install upgrade
This commit is contained in:
parent
6714c631f8
commit
354d32f4cc
|
@ -28,7 +28,6 @@ if [[ $YOU != "" && $IPFSNODEID != "" && $G1PUB != "" ]]; then
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# CREATE
|
# CREATE
|
||||||
echo "export PATH=$PATH:$HOME/.local/bin" >> ~/.bashrc
|
|
||||||
echo "### ASTROPORT IDENTITY ###" >> ~/.bashrc
|
echo "### ASTROPORT IDENTITY ###" >> ~/.bashrc
|
||||||
echo "export YOU=$newYOU" >> ~/.bashrc
|
echo "export YOU=$newYOU" >> ~/.bashrc
|
||||||
echo "export G1PUB=$newG1PUB" >> ~/.bashrc
|
echo "export G1PUB=$newG1PUB" >> ~/.bashrc
|
||||||
|
|
|
@ -13,16 +13,16 @@ then
|
||||||
# Check requirements
|
# Check requirements
|
||||||
echo "AstrXbian installateur pour XBIAN (https://xbian.org) et ditributions DEBIAN et dérivées (https://www.linuxmint.com/)"
|
echo "AstrXbian installateur pour XBIAN (https://xbian.org) et ditributions DEBIAN et dérivées (https://www.linuxmint.com/)"
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install git fail2ban inotify-tools curl net-tools libsodium* python3-dev python3-pip python3-setuptools python3-wheel mpack libssl-dev libffi-dev -y
|
sudo apt-get install git fail2ban inotify-tools curl net-tools libsodium* python3-dev python3-pip python3-setuptools python3-wheel python3-dotenv mpack libssl-dev libffi-dev -y
|
||||||
sudo apt-get install build-essential qrencode jq bc gawk ffmpeg sqlite dnsutils vlc mp3info musl-dev openssl* cargo -y
|
sudo apt-get install build-essential qrencode jq bc gawk ffmpeg sqlite dnsutils vlc mp3info musl-dev openssl* cargo -y
|
||||||
[[ ! $(which kodi) && "$USER" != "xbian" ]] && sudo apt-get install kodi -y
|
[[ ! $(which kodi) && "$USER" != "xbian" ]] && sudo apt-get install kodi -y
|
||||||
[[ "$USER" != "xbian" ]] && sudo apt-get install x11-utils zenity handbrake* -y
|
[[ "$USER" != "xbian" ]] && sudo apt-get install x11-utils zenity handbrake* -y
|
||||||
## INSTALL PYTHON CRYPTO LAYER
|
## INSTALL PYTHON CRYPTO LAYER
|
||||||
|
echo "export PATH=$PATH:$HOME/.local/bin" >> ~/.bashrc && source ~/.bashrc
|
||||||
python3 -m pip install -U pip
|
python3 -m pip install -U pip
|
||||||
python3 -m pip install -U setuptools wheel
|
python3 -m pip install -U setuptools wheel
|
||||||
python3 -m pip install -U cryptography Ed25519 base58 google protobuf duniterpy silkaj
|
python3 -m pip install -U cryptography Ed25519 base58 google protobuf duniterpy silkaj
|
||||||
|
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
echo "Clonage git astrXbian depuis https://git.p2p.legal"
|
echo "Clonage git astrXbian depuis https://git.p2p.legal"
|
||||||
mkdir -p ~/.zen
|
mkdir -p ~/.zen
|
||||||
|
@ -47,6 +47,7 @@ echo "Sécurisation DEFCON SUDOERS FAIL2BAN"
|
||||||
## XBIAN fail2ban ERROR correction ##
|
## XBIAN fail2ban ERROR correction ##
|
||||||
#[....] Starting authentication failure monitor: fail2ban No file(s) found for glob /var/log/auth.log
|
#[....] Starting authentication failure monitor: fail2ban No file(s) found for glob /var/log/auth.log
|
||||||
[[ "$USER" == "xbian" ]] && sudo sed -i "s/auth.log/faillog/g" /etc/fail2ban/paths-common.conf
|
[[ "$USER" == "xbian" ]] && sudo sed -i "s/auth.log/faillog/g" /etc/fail2ban/paths-common.conf
|
||||||
|
[[ "$USER" == "xbian" ]] && echo "xbian ALL=(ALL) NOPASSWD:ALL" | (sudo su -c 'EDITOR="tee" visudo -f /etc/sudoers.d/astroport')
|
||||||
|
|
||||||
### MODIFIYING /etc/sudoers ###
|
### MODIFIYING /etc/sudoers ###
|
||||||
# DEFCON LEVEL < 5
|
# DEFCON LEVEL < 5
|
||||||
|
@ -64,6 +65,10 @@ then
|
||||||
cd /etc/rc0.d && sudo ln -s ../init.d/ipfs K01ipfs
|
cd /etc/rc0.d && sudo ln -s ../init.d/ipfs K01ipfs
|
||||||
cd /etc/rc1.d && sudo ln -s ../init.d/ipfs K01ipfs
|
cd /etc/rc1.d && sudo ln -s ../init.d/ipfs K01ipfs
|
||||||
cd /etc/rc6.d && sudo ln -s ../init.d/ipfs K01ipfs
|
cd /etc/rc6.d && sudo ln -s ../init.d/ipfs K01ipfs
|
||||||
|
|
||||||
|
# Disable xbian-config auto launch
|
||||||
|
echo 0 > ~/.xbian-config-start
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
Loading…
Reference in New Issue