diff --git a/.install/update_bashrc.sh b/.install/update_bashrc.sh index c8d903d..0e3cb08 100755 --- a/.install/update_bashrc.sh +++ b/.install/update_bashrc.sh @@ -28,7 +28,6 @@ if [[ $YOU != "" && $IPFSNODEID != "" && $G1PUB != "" ]]; then fi else # CREATE - echo "export PATH=$PATH:$HOME/.local/bin" >> ~/.bashrc echo "### ASTROPORT IDENTITY ###" >> ~/.bashrc echo "export YOU=$newYOU" >> ~/.bashrc echo "export G1PUB=$newG1PUB" >> ~/.bashrc diff --git a/install.sh b/install.sh index 62f8541..312573c 100755 --- a/install.sh +++ b/install.sh @@ -13,16 +13,16 @@ then # Check requirements 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 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 [[ ! $(which kodi) && "$USER" != "xbian" ]] && sudo apt-get install kodi -y [[ "$USER" != "xbian" ]] && sudo apt-get install x11-utils zenity handbrake* -y ## 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 setuptools wheel python3 -m pip install -U cryptography Ed25519 base58 google protobuf duniterpy silkaj - ######################################################################## echo "Clonage git astrXbian depuis https://git.p2p.legal" mkdir -p ~/.zen @@ -47,6 +47,7 @@ echo "Sécurisation DEFCON SUDOERS FAIL2BAN" ## XBIAN fail2ban ERROR correction ## #[....] 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" ]] && echo "xbian ALL=(ALL) NOPASSWD:ALL" | (sudo su -c 'EDITOR="tee" visudo -f /etc/sudoers.d/astroport') ### MODIFIYING /etc/sudoers ### # DEFCON LEVEL < 5 @@ -64,6 +65,10 @@ then cd /etc/rc0.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 + + # Disable xbian-config auto launch + echo 0 > ~/.xbian-config-start + fi ########################################################################