ajout install_habitants.sh et maj README.md
This commit is contained in:
parent
81621fcd8f
commit
cfb1ba9fcf
@ -142,6 +142,7 @@ S'il y a un moyen d'installer pour tout le monde.
|
||||
|
||||
Utilisateurs
|
||||
|
||||
flatpak, libre office - Thunderbird (outlook)
|
||||
freetube, parabole, warehouse (gestion flatpak)
|
||||
zoom, whatsapp, teams, client element,
|
||||
libre office - Thunderbird (outlook) ok
|
||||
freetube, parabole, flatpak, warehouse (gestion flatpak) ok
|
||||
zoom, whatsapp ok
|
||||
teams, client element ok
|
||||
41
install_habitants.sh
Executable file
41
install_habitants.sh
Executable file
@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
|
||||
DNS_SERVER="1.1.1.1"
|
||||
USER_NAME="bellinuxien"
|
||||
|
||||
echo "Ajout du server DNS $DNS_SERVER"
|
||||
echo "nameserver $DNS_SERVER" > /etc/resolv.conf
|
||||
|
||||
echo "Montage du système de fichiers devpts "
|
||||
mount devpts /dev/pts -t devpts
|
||||
|
||||
if id "$USER_NAME" &>/dev/null; then
|
||||
echo "L'utilisateur $USER_NAME existe déjà."
|
||||
else
|
||||
# Création de l'utilisateur
|
||||
echo "Création de l'utilisateur : $USER_NAME"
|
||||
adduser $USER_NAME
|
||||
|
||||
# Ajout de l'utilisateur au groupe sudo
|
||||
echo "Ajout de l'utilisateur $USER_NAME au groupe sudo"
|
||||
usermod -aG sudo $USER_NAME
|
||||
fi
|
||||
|
||||
echo "Changement de session pour l'utilisateur $USER_NAME"
|
||||
su - $USER_NAME
|
||||
|
||||
echo "Installation des paquets"
|
||||
sudo apt install flatpak -y
|
||||
|
||||
echo "Pour avoir accès aux paquets"
|
||||
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||
|
||||
echo "Install paquets flatpak"
|
||||
flatpak install flathub org.libreoffice.LibreOffice org.mozilla.Thunderbird com.github.IsmaelMartinez.teams_for_linux io.github.flattool.Warehouse io.freetubeapp.FreeTube im.riot.Riot us.zoom.Zoom io.github.mimbrero.WhatsAppDesktop
|
||||
|
||||
echo "Nettoyage"
|
||||
sudo apt-get clean
|
||||
history -c
|
||||
exit
|
||||
|
||||
echo "Execution du script terminer"
|
||||
Loading…
x
Reference in New Issue
Block a user