forked from axiom-team/astrXbian
install better
This commit is contained in:
parent
dc0b959c34
commit
f36f676fbd
23
install.sh
23
install.sh
|
@ -13,15 +13,32 @@ then
|
||||||
# Check requirements
|
# Check requirements
|
||||||
echo "AstrXbian installateur pour XBIAN (https://xbian.org) distributions DEBIAN et dérivées (https://www.linuxmint.com/)"
|
echo "AstrXbian installateur pour XBIAN (https://xbian.org) distributions 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 python3-dotenv 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 v4l-utils vlc mp3info musl-dev openssl* cargo detox httrack html2text ssmtp sudo -y
|
for i in git fail2ban inotify-tools curl net-tools libsodium* python3-dev python3-pip python3-setuptools python3-wheel python3-dotenv mpack libssl-dev libffi-dev; do
|
||||||
|
if [ $(dpkg-query -W -f='${Status}' $i 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
|
||||||
|
sudo apt install -y $i
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
#sudo apt-get install build-essential qrencode jq bc gawk ffmpeg sqlite dnsutils v4l-utils vlc mp3info musl-dev openssl* cargo detox httrack html2text ssmtp sudo -y
|
||||||
|
for i in build-essential qrencode jq bc gawk ffmpeg sqlite dnsutils v4l-utils vlc mp3info musl-dev openssl* cargo detox httrack html2text ssmtp sudo; do
|
||||||
|
if [ $(dpkg-query -W -f='${Status}' $i 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
|
||||||
|
sudo apt install -y $i
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
[[ ! $(which kodi) && "$USER" != "xbian" ]] && sudo apt-get install kodi -y
|
[[ ! $(which kodi) && "$USER" != "xbian" ]] && sudo apt-get install kodi -y
|
||||||
sudo apt-get install python3-opencv -y ## INSTALLATION IA par reconnaissance d'images
|
sudo apt-get install python3-opencv -y ## INSTALLATION IA par reconnaissance d'images
|
||||||
[[ "$USER" != "xbian" ]] && sudo apt-get install x11-utils xclip zenity handbrake* -y
|
[[ "$USER" != "xbian" ]] && sudo apt-get install x11-utils xclip zenity handbrake* -y
|
||||||
if [[ ! $(which apache2) ]]; then
|
if [[ ! $(which apache2) ]]; then
|
||||||
########################################################################
|
########################################################################
|
||||||
## INSTALL nginx + php + mariadb + ...
|
## INSTALL nginx + php + mariadb + ...
|
||||||
sudo apt-get install mariadb-server nginx python3-certbot-nginx certbot ssl-cert php-imap php-cli php-curl php-sqlite3 php-gd php-json php-xml php-mbstring php-gettext php-mysql php-fpm -y
|
# sudo apt-get install mariadb-server nginx python3-certbot-nginx certbot ssl-cert php-imap php-cli php-curl php-sqlite3 php-gd php-json php-xml php-mbstring php-gettext php-mysql php-fpm -y
|
||||||
|
for i in mariadb-server nginx python3-certbot-nginx certbot ssl-cert php-imap php-cli php-curl php-sqlite3 php-gd php-json php-xml php-mbstring php-gettext php-mysql php-fpm; do
|
||||||
|
if [ $(dpkg-query -W -f='${Status}' $i 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
|
||||||
|
sudo apt install -y $i
|
||||||
|
fi
|
||||||
|
done
|
||||||
#######################################################################
|
#######################################################################
|
||||||
## CREATE symlinks for ~/.zen/www/swarm & me
|
## CREATE symlinks for ~/.zen/www/swarm & me
|
||||||
mkdir -p ~/.zen/astrXbian/www/boris
|
mkdir -p ~/.zen/astrXbian/www/boris
|
||||||
|
|
Loading…
Reference in New Issue