Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -----------------------------------------------------------------------------------------------------------------------------
- # Processus d'installation de Debian 11:
- # - Aucune Interface User
- # - Openssh
- # -----------------------------------------------------------------------------------------------------------------------------
- #
- ###############################################################################################################################
- # Depot Linux #
- ###############
- source /etc/os-release;
- echo "deb http://deb.debian.org/debian/ $VERSION_CODENAME main contrib non-free
- deb-src http://deb.debian.org/debian/ $VERSION_CODENAME main
- deb http://security.debian.org/debian-security $VERSION_CODENAME-security main
- deb-src http://security.debian.org/debian-security $VERSION_CODENAME-security main
- deb http://deb.debian.org/debian/ $VERSION_CODENAME-updates main
- deb-src http://deb.debian.org/debian/ $VERSION_CODENAME-updates main" > /etc/apt/sources.list;
- #
- ###############################################################################################################################
- # Mettre à jour le système #
- ############################
- apt update;
- DEBIAN_FRONTEND=noninteractive apt upgrade -y;
- #
- ###############################################################################################################################
- # Verrouillage Majuscule #
- ##########################
- # Insérer à la ligne 5
- sed -i '5i include "mswindows-capslock"' /usr/share/X11/xkb/symbols/fr
- #
- # Génération du fichier
- echo "// Replicate a \"feature\" of MS Windows on AZERTY keyboards
- // where Caps Lock also acts as a Shift Lock on number keys.
- // Include keys <AE01> to <AE10> in the FOUR_LEVEL_ALPHABETIC key type.
- partial alphanumeric_keys
- xkb_symbols \"basic\" {
- key <AE01> { type= \"FOUR_LEVEL_ALPHABETIC\", [ ampersand, 1, bar, exclamdown ] };
- key <AE02> { type= \"FOUR_LEVEL_ALPHABETIC\", [ eacute, 2, at, oneeighth ] };
- key <AE03> { type= \"FOUR_LEVEL_ALPHABETIC\", [ quotedbl, 3, numbersign, sterling ] };
- key <AE04> { type= \"FOUR_LEVEL_ALPHABETIC\", [apostrophe, 4, onequarter, dollar ] };
- key <AE05> { type= \"FOUR_LEVEL_ALPHABETIC\", [ parenleft, 5, onehalf, threeeighths ] };
- key <AE06> { type= \"FOUR_LEVEL_ALPHABETIC\", [ section, 6, asciicircum, fiveeighths ] };
- key <AE07> { type= \"FOUR_LEVEL_ALPHABETIC\", [ egrave, 7, braceleft, seveneighths ] };
- key <AE08> { type= \"FOUR_LEVEL_ALPHABETIC\", [ exclam, 8, bracketleft, trademark ] };
- key <AE09> { type= \"FOUR_LEVEL_ALPHABETIC\", [ ccedilla, 9, braceleft, plusminus ] };
- key <AE10> { type= \"FOUR_LEVEL_ALPHABETIC\", [ agrave, 0, braceright, degree ] };
- };" > /usr/share/X11/xkb/symbols/mswindows-capslock;
- #
- ###############################################################################################################################
- # Configuration du Système #
- ############################
- apt install -y locales locales-all;
- dpkg-reconfigure keyboard-configuration;
- dpkg-reconfigure tzdata;
- dpkg-reconfigure locales;
- #
- ###############################################################################################################################
- # Xorg #
- ########
- apt install -y xserver-xorg;
- apt install -y xinit;
- #
- ###############################################################################################################################
- # Gestionnaire de connexion #
- #############################
- apt install -y lightdm;
- #
- ###############################################################################################################################
- # XFCE4 - MINIMUM #
- ###################
- clear;
- apt install -y libxfce4ui-utils;
- apt install -y xfce4-appfinder;
- apt install -y xfce4-panel;
- apt install -y xfce4-session;
- apt install -y xfce4-settings;
- apt install -y xfce4-terminal;
- apt install -y xfconf;
- apt install -y xfdesktop4;
- apt install -y xfwm4;
- apt install -y thunar;
- #
- ###############################################################################################################################
- # Suppléments #
- ###############
- apt install -y menulibre;
- apt install -y mugshot;
- apt install -y numlockx;
- #
- apt install -y xfce4-appmenu-plugin;
- apt install -y xfce4-dev-tools;
- apt install -y xfce4-pulseaudio-plugin;
- apt install -y xfce4-screenshooter;
- apt install -y xfce4-terminal;
- apt install -y xfce4-whiskermenu-plugin;
- #
- ###############################################################################################################################
- # Docklike #
- ############
- # Dependances
- apt install -y git;
- apt install -y build-essential;
- apt install -y libwnck-3-0 libwnck-3-dev;
- apt install -y libxfce4ui-2-dev;
- apt install -y libxfce4panel-2.0-4;
- apt install -y libxfce4panel-2.0-dev;
- #
- # Sources
- cd;
- rm -r /tmp/xfce4-docklike 2>/dev/null;
- git clone https://gitlab.xfce.org/panel-plugins/xfce4-docklike-plugin.git /tmp/xfce4-docklike;
- cd /tmp/xfce4-docklike;
- #
- # Correctif de langue Française
- sed -i '22 s/Épingler/Désépingler/' /tmp/xfce4-docklike/po/fr.po;
- sed -i '177 s/Épingler/Désépingler/' /tmp/xfce4-docklike/po/fr.po;
- sed -i '26 s/Désépingler/Épingler/' /tmp/xfce4-docklike/po/fr.po;
- sed -i '190 s/Désépingler/Épingler/' /tmp/xfce4-docklike/po/fr.po;
- #
- # Génération de la configuration
- ./autogen.sh --prefix=/usr;
- #
- # Compilation
- make -j$(nproc);
- #
- # Installation de DockLike TaskManager
- make install;
- #
- ###############################################################################################################################
- # Gestionnaire du Réseau #
- ##########################
- apt install -y network-manager;
- apt install -y network-manager-dev;
- apt install -y network-manager-gnome;
- apt install -y network-manager-config-connectivity-debian;
- #
- # Resolver est remis à zéro, donc je remet mon DNS
- echo "nameserver 192.168.0.1" > /etc/resolv.conf;
- #
- # Module
- apt install -y network-manager-openconnect;
- apt install -y network-manager-openconnect-gnome;
- apt install -y network-manager-openvpn;
- apt install -y network-manager-openvpn-gnome;
- apt install -y network-manager-pptp;
- apt install -y network-manager-pptp-gnome;
- apt install -y network-manager-ssh;
- apt install -y network-manager-ssh-gnome;
- apt install -y network-manager-sstp;
- apt install -y network-manager-sstp-gnome;
- #
- ###############################################################################################################################
- # PulseAudio #
- ##############
- # Paquet
- apt install -y pulseaudio;
- #
- # Fix Gresillement (materiel)
- sed -i -e "s/load\-module module\-udev\-detect/load\-module module\-udev\-detect tsched\=0/g" /etc/pulse/default.pa;
- #
- # Mise à jour des modules
- update-initramfs -u;
- #
- # Applet
- apt install -y pavucontrol;
- #
- ###############################################################################################################################
- # Pilotes #
- ###########
- #
- # CPU AMD
- apt install amd64-microcode;
- #
- # GPU AMD RX 6700
- apt install firmware-amd-graphics;
- #
- # Intel HD Audio
- apt install firmware-intel-sound;
- #
- ###############################################################################################################################
- # Utilitaires #
- ###############
- apt install -y apt-file;
- apt install -y apt-transport-https;
- apt install -y bash-completion;
- apt install -y ca-certificates;
- apt install -y cifs-utils;
- apt install -y curl;
- apt install -y lsb-release;
- apt install -y man;
- apt install -y neofetch;
- apt install -y net-tools
- apt install -y ntfs-3g;
- apt install -y openssh-server;
- apt install -y smbclient;
- apt install -y software-properties-common;
- apt install -y unzip;
- apt install -y wget;
- #
- ###############################################################################################################################
- # Complements #
- ###############
- #
- # Outil pour compilation
- apt install -y build-essential;
- apt install -y linux-headers-$(uname -r);
- #
- # Decouverte reseau
- apt install -y avahi-discover;
- apt install -y avahi-daemon;
- apt install -y avahi-utils;
- apt install -y avahi-ui-utils;
- #
- #
- ###############################################################################################################################
- # Logiciels #
- #############
- #
- # Terminal
- apt install -y gnome-terminal;
- #
- # Anydesk
- VERSION=anydesk_6.3.0-1_amd64.deb
- wget https://download.anydesk.com/linux/${VERSION} -O /tmp/anydesk.deb; dpkg -i /tmp/anydesk.deb; apt install -y -f;
- #
- # Coffre-Fort
- apt install -y seahorse;
- #
- # Client Torrent
- apt install -y qbittorrent;
- #
- # Editeur de texte
- apt install -y gedit;
- #
- # Editeur / Visualisateur d'image
- apt install -y krita krita-l10n;
- apt install -y ristretto;
- #
- # Gestion Disque
- apt install -y gnome-disk-utility;
- apt install -y gparted;
- #
- # Gestions des partages
- apt install -y gnome-system-tools;
- #
- # Gestion d'archives
- apt install -y file-roller;
- #
- # Gnome
- apt install -y gnome-calculator;
- apt install -y gnome-calendar;
- #
- # Lecteur Video
- apt install -y mplayer;
- apt install -y smplayer;
- #
- # Lecteur Musique
- apt install -y rhythmbox;
- apt install -y rhythmbox-plugins;
- #
- # Magasin de logiciels
- apt install -y gnome-software;
- apt install -y synaptic;
- #
- # Navigateur
- curl -fSsL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /usr/share/keyrings/microsoft-edge.gpg > /dev/null;
- echo 'deb [signed-by=/usr/share/keyrings/microsoft-edge.gpg] https://packages.microsoft.com/repos/edge stable main' | tee /etc/apt/sources.list.d/microsoft-edge.list; apt update; apt install -y microsoft-edge-stable;
- #
- # Sauvegarde / Restauration
- apt install -y timeshift;
- #
- # Suite bureautique
- apt install -y libreoffice libreoffice-l10n-fr;
- #
- ###############################################################################################################################
- # Personnalisation #
- ####################
- # Base
- apt install -y gtk2-engines;
- apt install -y gtk2-engines-murrine;
- #
- # Curseur de souris
- apt install -y breeze-cursor-theme;
- apt install -y chameleon-cursor-theme;
- apt install -y dmz-cursor-theme;
- apt install -y xcursor-themes;
- #
- # Fond D'écran
- rm -r /tmp/wallpaper 2>/dev/null;
- git clone https://github.com/dracula/wallpaper.git /tmp/wallpaper; mkdir -p /home/$(id -n -u 1000)/Images/Dracula; mv /tmp/wallpaper/* /home/$(id -n -u 1000)/Images/Dracula; chown -R $(id -n -u 1000):$(id -n -g 1000) /home/$(id -n -u 1000)/Images;
- #
- # Icônes
- apt install -y papirus-icon-theme;
- wget https://github.com/dracula/gtk/files/5214870/Dracula.zip -O /tmp/Dracula_icon.zip; unzip /tmp/Dracula_icon.zip -d /usr/share/icons;
- #
- # Thèmes
- wget https://github.com/dracula/gtk/archive/master.zip -O /tmp/Dracula_theme.zip; unzip /tmp/Dracula_theme.zip -d /usr/share/themes; mv /usr/share/themes/gtk-master /usr/share/themes/Dracula;
- #
- # Thèmes - XFCE Terminal
- git clone https://github.com/dracula/xfce4-terminal /tmp/xfce-terminal; cd /tmp/xfce-terminal; mv *.theme /usr/share/xfce4/terminal/colorschemes;
- #
- ###############################################################################################################################
- # Monter partages - USER SCRIPT #
- #################################
- echo "SERVEUR=XXXX.YYYYY
- UTILISATEUR=MONUSER
- PASS=MONPASSW
- PARTAGE1=Download
- PARTAGE2=Media_1
- PARTAGE3=Media_2
- PARTAGE4=Music
- PARTAGE5=Users
- PARTAGE6=Windows
- (echo \"\$UTILISATEUR\"; echo "WORKGROUP"; echo \"\$PASS\" ) | gio mount smb://\$SERVEUR/\$PARTAGE1;
- (echo \"\$UTILISATEUR\"; echo "WORKGROUP"; echo \"\$PASS\" ) | gio mount smb://\$SERVEUR/\$PARTAGE2;
- (echo \"\$UTILISATEUR\"; echo "WORKGROUP"; echo \"\$PASS\" ) | gio mount smb://\$SERVEUR/\$PARTAGE3;
- (echo \"\$UTILISATEUR\"; echo "WORKGROUP"; echo \"\$PASS\" ) | gio mount smb://\$SERVEUR/\$PARTAGE4;
- (echo \"\$UTILISATEUR\"; echo "WORKGROUP"; echo \"\$PASS\" ) | gio mount smb://\$SERVEUR/\$PARTAGE5;
- (echo \"\$UTILISATEUR\"; echo "WORKGROUP"; echo \"\$PASS\" ) | gio mount smb://\$SERVEUR/\$PARTAGE6;" > $HOME/.gvfs.sh;
- chmod 770 $HOME/.gvfs.sh;
- #
- ###############################################################################################################################
- # Session #
- ###########
- # L'utilisateur XXXX démarre le script $HOME/.gvfs.sh; et permet l'accès au partage !
- # Il a tout les droits sur le partage (RWX)
Add Comment
Please, Sign In to add comment