Debian 11

De Reliable Brain

Cette dernière version de Debian doit cependant être complétée pour être exploitable avec certaines applications

Nettoyage

Créer un service au démarrage

Plusieurs solutions

Reconfigurer Debian

Composants indispensables

En mode root

apt install ca-certificates apt-transport-https software-properties-common wget curl lsb-release

Java 1.8

sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt autoremove -y
reboot
mkdir /root/java
cd /root/java
wget http://snapshot.debian.org/archive/debian-security/20220210T090326Z/pool/updates/main/o/openjdk-8/openjdk-8-jdk_8u322-b06-1~deb9u1_amd64.deb
wget http://snapshot.debian.org/archive/debian-security/20220210T090326Z/pool/updates/main/o/openjdk-8/openjdk-8-jdk-headless_8u322-b06-1~deb9u1_amd64.deb
wget http://snapshot.debian.org/archive/debian-security/20220210T090326Z/pool/updates/main/o/openjdk-8/openjdk-8-jre_8u322-b06-1~deb9u1_amd64.deb
wget http://snapshot.debian.org/archive/debian-security/20220210T090326Z/pool/updates/main/o/openjdk-8/openjdk-8-jre-headless_8u322-b06-1~deb9u1_amd64.deb
dpkg -i *.deb
apt install -f

PHP 8.2

apt update
apt install lsb-release apt-transport-https ca-certificates software-properties-common
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg 
sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
apt update

PHP 8.1

curl -sSL https://packages.sury.org/php/README.txt | sudo bash -x
apt-get update
apt-get install php8.1 libapache2-mod-php8.1

Quelques extensions souvent indispensables :

apt install php8.1-common php8.1-curl php8.1-bcmath php8.1-intl php8.1-mbstring php8.1-xmlrpc php8.1-mcrypt php8.1-mysql php8.1-gd php8.1-xml php8.1-cli php8.1-zip

Pour optimiser Apache2

apt install php8.1-fpm libapache2-mod-fcgid
a2enmod proxy_fcgi setenvif 
a2enconf php8.1-fpm
systemctl restart apache2
systemctl status php8.1-fpm

MariaDB

Sécurisation

mysql_secure_installation

Installation de Docker

Il suffit de taper cette commande :

bash <(wget -qO- https://get.docker.com)