Skip to main content

Base

Debian base

su -s && \
apt update && apt upgrade -y && apt dist-upgrade -y && apt autoremove -y && apt purge && apt autoclean && apt install -y \ 
vim htop sudo curl software-properties-common dirmngr ca-certificates apt-transport-https qemu-guest-agent git parted \ 
&& sudo usermod -a -G sudo nom utilisatewur

Ajouter utilisateur en sudo

vim /etc/sudoers
mon_user ALL=(ALL:ALL) ALL
systemctl reboot

Fdisk : commande introuvable

Si la commande fdisk ne fonctionne pas exécuter cette command comme ci-dessous:

user@myhost:~$ PATH="/sbin:$PATH"
user@myhost:~$ command -v fdisk
/sbin/fdisk

DirectAdmin

Avant d'installer DirectAdmin effectuer d'abord cette procédure Home avec Stockage

Installation des packages pour directadmin

Packages DirectAdmin

sudo -s && \ 
apt-get update && \ 
apt-get install -y gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules libperl-dev libperl4-corelibs-perl libwww-perl libaio1 libaio-dev \
zlib1g zlib1g-dev libcap-dev cron bzip2 zip automake autoconf libtool cmake pkg-config python libdb-dev libsasl2-dev \
libncurses5 libncurses5-dev libsystemd-dev bind9 dnsutils quota patch logrotate rsyslog libc6-dev libexpat1-dev \
libcrypt-openssl-rsa-perl libnuma-dev libnuma1

Installation DirectAdmin Server

Install Directadmin Server

sudo -s && bash <(curl -fsSL https://download.directadmin.com/setup.sh) 'Ma Licencebash <(curl -fsSL https://download.directadmin.com/setup.sh) 'Ma Licence`'