├── ENVYCONTROL-GUI
├── README.envycontrol.md
├── gpu-profile-selector-gnome.sh
└── install-optimus-gpu-switcher-kde.sh
├── LICENSE
├── README.md
├── SECUREBOOT
├── data
│ ├── secureboot.sh
│ └── src
│ │ ├── dkms.patched
│ │ └── zz-signing
└── install-sb.sh
├── TESTING
├── SECUREBOOT
│ ├── data
│ │ ├── secureboot.sh
│ │ └── src
│ │ │ ├── dkms.patched
│ │ │ └── zz-signing
│ └── install-sb.sh
├── cases
├── postinstall-testing
└── src
│ ├── amd-vulkan.sh
│ ├── envycontrol.sh
│ ├── grub
│ ├── install-sid.sh
│ ├── keyring
│ └── rocm-keyring.gpg
│ ├── nvidia-cuda.sh
│ ├── rocm.sh
│ └── steam.sh
├── data
├── add-ppa-debian.sh
├── amd-vulkan.sh
├── deb-get.sh
├── discord.sh
├── install-sid.sh
├── keyring
│ └── rocm-keyring.gpg
├── lutris-latest.sh
├── mesa-kisak-fresh.sh
├── neofrog
├── nvidia-rollback.sh
├── nvidia-stable.sh
├── pacstall.sh
├── rocm.sh
├── steam.sh
└── wine-staging.sh
├── extra
├── backports.sh
├── envycontrol.sh
├── nvidia-cuda.sh
├── nvidia-experimental.sh
├── nvidia-testing-on-stable.sh
└── update-firmware.sh
├── lang
└── README.en.md
├── postinstall-debian-gui
├── postinstall-debian-tui
└── source
├── amd_logo.png
├── debian_logo.png
├── discord.png
├── error.sh
├── gui_functions.sh
├── joystick.png
├── logo.png
├── lutris.png
├── menu-gui.sh
├── nvidia_logo.png
├── package-delete.png
├── package_debian.png
├── scripts-tui.sh
├── secureboot.png
├── software_debian.png
├── steam.png
└── wine.png
/ENVYCONTROL-GUI/README.envycontrol.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Optimus made easy
8 |
9 |
10 |
11 | # 👁🗨 EnvyControl
12 |
13 | EnvyControl is a CLI tool that provides an easy way to switch between GPU modes on Nvidia Optimus systems (i.e laptops with hybrid Intel + Nvidia or AMD + Nvidia graphics configurations) under Linux.
14 |
15 | ### 📖 License
16 |
17 | EnvyControl is free and open-source software released under the [MIT](https://github.com/bayasdev/envycontrol/blob/main/LICENSE) license.
18 |
19 | ### ⚠️ Disclaimer
20 |
21 | **This software is provided 'as-is' without any express or implied warranty.**
22 |
23 | Keep in mind any custom X.org configuration may get deleted or overwritten when switching modes.
24 |
25 | ## ✨ Features
26 |
27 | - 🐍 Written in Python 3+ for portability and compatibility
28 | - 🐧 Works across all major Linux distros ([tested distros](https://github.com/bayasdev/envycontrol/wiki/Frequently-Asked-Questions#tested-distros))
29 | - 🖥️ Supports GDM, SDDM and LightDM display managers ([manual setup instructions](https://github.com/bayasdev/envycontrol/wiki/Frequently-Asked-Questions#what-to-do-if-my-display-manager-is-not-supported) also available)
30 | - 🔋 Save battery with integrated graphics mode
31 | - 💻 PCI-Express Runtime D3 (RTD3) Power Management support for Turing and later
32 | - 🎮 Coolbits support for GPU overclocking
33 | - 🔥 Fix screen tearing with ForceCompositionPipeline
34 |
35 | ## 📖 Graphics modes
36 |
37 | ### Integrated
38 |
39 | - The integrated Intel or AMD iGPU is used exclusively
40 | - Nvidia dGPU is turned off to reduce power consumption
41 | - External screens cannot be used if the video ports are wired to the dGPU
42 |
43 | ### Hybrid
44 |
45 | - Enables PRIME render offloading
46 | - RTD3 allows the dGPU to be dynamically turned off when not in use
47 | - Available choices for the `--rtd3` flag (based on the [official documentation](http://us.download.nvidia.com/XFree86/Linux-x86_64/530.30.02/README/dynamicpowermanagement.html))
48 | - `0` disabled
49 | - `1` coarse-grained
50 | - `2` fine-grained (default value if you don't provide one)
51 | - `3` fine-grained for Ampere and later
52 | - Only works in Turing and later
53 | - Performance on external screens might be reduced
54 |
55 | ### Nvidia
56 |
57 | - The Nvidia dGPU is used exclusively
58 | - Higher graphical performance and higher power consumption
59 | - Recommended when working with external screens
60 | - If facing screen tearing enable ForceCompositionPipeline with the `--force-comp` flag
61 | - Allows overlocking (not recommended) with the `--coolbits` flag
62 | - The default value is `28` bits however it can be manually adjusted according to this [guide](https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks#Overclocking_and_cooling)
63 | - Wayland sessions default to hybrid mode
64 |
65 | ## ⚡️ Usage
66 |
67 | ```
68 | usage: envycontrol.py [-h] [-v] [-q] [-s MODE] [--dm DISPLAY_MANAGER] [--force-comp] [--coolbits [VALUE]] [--rtd3 [VALUE]] [--reset-sddm] [--reset] [--verbose]
69 |
70 | options:
71 | -h, --help show this help message and exit
72 | -v, --version Output the current version
73 | -q, --query Query the current graphics mode
74 | -s MODE, --switch MODE
75 | Switch the graphics mode. Available choices: integrated, hybrid, nvidia
76 | --dm DISPLAY_MANAGER Manually specify your Display Manager for Nvidia mode. Available choices: gdm, gdm3, sddm, lightdm
77 | --force-comp Enable ForceCompositionPipeline on Nvidia mode
78 | --coolbits [VALUE] Enable Coolbits on Nvidia mode. Default if specified: 28
79 | --rtd3 [VALUE] Setup PCI-Express Runtime D3 (RTD3) Power Management on Hybrid mode. Available choices: 0, 1, 2, 3. Default if specified: 2
80 | --use-nvidia-current Use nvidia-current instead of nvidia for kernel modules
81 | --reset-sddm Restore default Xsetup file
82 | --reset Revert changes made by EnvyControl
83 | --verbose Enable verbose mode
84 | ```
85 |
86 | ### Some examples
87 |
88 | Set graphics mode to integrated:
89 |
90 | ```
91 | sudo envycontrol -s integrated
92 | ```
93 |
94 | Set graphics mode to hybrid and enable fine-grained power control:
95 |
96 | ```
97 | sudo envycontrol -s hybrid --rtd3
98 | ```
99 |
100 | Set graphics mode to nvidia, enable ForceCompositionPipeline and Coolbits with a value of 24:
101 |
102 | ```
103 | sudo envycontrol -s nvidia --force-comp --coolbits 24
104 | ```
105 |
106 | Set current graphics mode to nvidia and specify to setup LightDM display manager
107 |
108 | ```
109 | sudo envycontrol -s nvidia --dm lightdm
110 | ```
111 |
112 | Query the current graphics mode:
113 |
114 | ```
115 | envycontrol --query
116 | ```
117 |
118 | Revert all changes made by EnvyControl:
119 |
120 | ```
121 | sudo envycontrol --reset
122 | ```
123 |
124 | ## ⬇️ Getting EnvyControl
125 |
126 | ### Arch Linux ([AUR](https://aur.archlinux.org/packages/envycontrol))
127 |
128 | 1. `yay -S envycontrol`
129 | 2. Run `sudo envycontrol -s ` to switch graphics modes
130 |
131 | ### Fedora
132 |
133 | Use the [COPR](https://copr.fedorainfracloud.org/coprs/sunwire/envycontrol/) maintained by [@sunwire](https://github.com/sunwire)
134 |
135 | 1. Enable the repository with `sudo dnf copr enable sunwire/envycontrol`
136 | 2. `sudo dnf install python3-envycontrol`
137 | 3. Run `sudo envycontrol -s ` to switch graphics modes
138 |
139 | ### Ubuntu / Debian
140 |
141 | Since [PEP668 adoption](https://www.linuxuprising.com/2023/03/next-debianubuntu-releases-will-likely.html) is no longer possible to install pip packages outside a virtual environment, instead use the provided deb package:
142 |
143 | 1. Go to the [latest release page](https://github.com/bayasdev/envycontrol/releases/latest)
144 | 2. Download the attached `python3-envycontrol_version.deb` package
145 | 3. Install it with `sudo apt -y install ./python3-envycontrol_version.deb`
146 | 4. Run `sudo envycontrol -s ` to switch graphics modes
147 |
148 | ### From source
149 |
150 | 1. Clone this repository with `git clone https://github.com/bayasdev/envycontrol.git` or download the latest tarball from the releases page
151 | 2. Run the script from the root of the repository like this `python ./envycontrol.py -s `
152 |
153 | 💡 Replace `python` with `python3` on Ubuntu/Debian
154 |
155 | ### Install globally as a pip package
156 |
157 | - From the root of the cloned repository run `sudo pip install .`
158 | - Now you can run `sudo envycontrol -s ` from any directory to switch graphics modes.
159 |
160 | ## 👕 GUIs
161 |
162 | ### Gnome Extension
163 |
164 | The [GPU profile selector](https://github.com/LorenzoMorelli/GPU_profile_selector) extension provides a simple way to switch between graphics modes in a few clicks, you can get it from [here](https://extensions.gnome.org/extension/5009/gpu-profile-selector/).
165 |
166 | **Make sure to have EnvyControl installed globally!**
167 |
168 | 
169 |
170 | ### KDE Widget
171 |
172 | [Optimus GPU Switcher](https://github.com/enielrodriguez/optimus-gpu-switcher) allows you to change the GPU mode easily, plus its icon is dynamic and serves as an indicator of the current mode.
173 |
174 | 
175 |
176 | ## 💡 Tips
177 |
178 | ### `nvidia` kernel module is named `nvidia-current` on Debian
179 |
180 | If you're running into this situation you can use the `--use-nvidia-current` flag to make EnvyControl use the correct module name.
181 |
182 | ### Wayland session is missing on Gnome 43+
183 |
184 | GDM now requires `NVreg_PreserveVideoMemoryAllocations` kernel parameter which breaks sleep in nvidia and hybrid mode, as well as rtd3 in hybrid mode, so EnvyControl disables it, if you need a Wayland session follow the instructions below
185 |
186 | ```
187 | sudo systemctl enable nvidia-{suspend,resume,hibernate}
188 | sudo ln -s /dev/null /etc/udev/rules.d/61-gdm.rules
189 | ```
190 |
191 | ### The `/usr/share/sddm/scripts/Xsetup` file is missing on my system
192 |
193 | If this ever happens please run `sudo envycontrol --reset-sddm`.
194 |
195 | ## ❓ Frequently Asked Questions (FAQ)
196 |
197 | [Read here](https://github.com/bayasdev/envycontrol/wiki/Frequently-Asked-Questions)
198 |
199 | ## 🐞 I have a problem
200 |
201 | Open an issue and **don't forget to complete all the requested fields!**
202 |
203 | ## ☕️ Buy me a coffee
204 |
205 | [PayPal](https://www.paypal.com/paypalme/bayasdev)
206 |
--------------------------------------------------------------------------------
/ENVYCONTROL-GUI/gpu-profile-selector-gnome.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | git clone https://github.com/LorenzoMorelli/GPU_profile_selector.git ~/.local/share/gnome-shell/extensions/GPU_profile_selector@lorenzo9904.gmail.com
3 |
--------------------------------------------------------------------------------
/ENVYCONTROL-GUI/install-optimus-gpu-switcher-kde.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | git clone https://github.com/enielrodriguez/optimus-gpu-switcher.git
3 | plasmapkg2 -i optimus-gpu-switcher
4 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | LICENCE PUBLIQUE RIEN À BRANLER
2 | Version 1, mars 2009
3 |
4 | Copyright (C) 2009 Sam Hocevar
5 | 14 rue de Plaisance, 75014 Paris, France
6 |
7 | La copie et la distribution de copies exactes de cette licence sont
8 | autorisées, et toute modification est permise à condition de changer
9 | le nom de la licence.
10 |
11 | CONDITIONS DE COPIE, DISTRIBUTON ET MODIFICATION
12 | DE LA LICENCE PUBLIQUE RIEN À BRANLER
13 |
14 | 0. Faites ce que vous voulez, j’en ai RIEN À BRANLER.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # POSTINSTALL-DEBIAN - Configurer Facilement Debian !
2 |
3 | [**English version**](https://github.com/Cardiacman13/postinstall-debian/blob/main/lang/README.en.md)
4 |
5 |
6 | Cet outil a été conçu pour être plus facilement utilisable avec les ISOs Lives de Debian et l'installateur graphique.
7 | Les ISOs lives sont disponibles ici :
8 |
9 | https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/
10 |
11 | Télécharger les images Live Debian Testing :
12 |
13 | https://cdimage.debian.org/cdimage/weekly-live-builds/amd64/iso-hybrid/
14 |
15 | Le mot de passe ROOT/SUDO des ISOs live est : **live**
16 |
17 | **L'interface GUI a été pensée pour fonctionner avec GNOME et KDE et Debian 12/Stable. Une compatibilié est en cours pour prendre en charge CINNAMON,
18 | et à terme, un support complet pour Linux Mint Debian Edition.**
19 |
20 |
21 | ***Vidéos sur postinstall-debian :***
22 |
23 | [**Un programme de post install debian en graphique ! by Davius**](https://www.youtube.com/watch?v=6h65fzd0yBE)
24 |
25 | [**Installation Debian + Script post-installation feat Davius**](https://youtu.be/jQMO9XDORp0?si=EZZWUi24OyEwvwQ8)
26 |
27 |
28 | ## AVANT DE COMMENCER :
29 |
30 | **Il est nécessaire d'avoir configuré SUDO pour utiliser la version GUI.**
31 |
32 | SI VOUS AVEZ INSTALLÉ DEBIAN DEPUIS UNE **ISO LIVE**, SUDO EST DÉjÀ CONFIGURÉ !
33 |
34 | - Ouvrez un terminal, puis copier coller cette commande :
35 |
36 | su - -c "usermod -aG sudo $(who | grep tty | cut -d " " -f 1)"
37 |
38 | - Entrez le mot de passe **ROOT (Super Utilisateur)** pour valider la commande, puis **redémarrez la machine**.
39 |
40 | **Utiliser la console de dépannage avec Debian**
41 |
42 | Si vous avez installé Debian avec sudo sans compte root, il faudra l'activer après l'installation pour avoir accès à
43 | la console de dépannage (menu avancé de grub) ou bien en cas d'une erreur sur un fichier de configuration empèchant
44 | le démarrage du système. Pour activer le compte ROOT (Superutilisateur) :
45 |
46 | sudo passwd root
47 |
48 | Saisissez un nouveau mot de passe. Puis vérifiez que tout est OK en vous connectant :
49 |
50 | su -
51 |
52 | Pour quitter l'invite de commande root, tapez 'exit'.
53 |
54 |
55 | ## INSTALLATION :
56 |
57 |
58 | **UTILISATION AVEC INTERFACE GRAPHIQUE (MODE SIMPLIFIÉ/Débutants - Debian 12/STABLE Uniquement) :**
59 |
60 |
61 | **L'utilisation de la GUI est volairement bloquée sur Testing/Sid.**
62 | **Si vous utilisez ces version, c'est que vous avez déjà les bases. Vous devrez alors utiliser la TUI**
63 |
64 |
65 | L'interface graphique est optimisée pour GNOME et KDE uniquement.
66 |
67 | - Rendez-vous dans la section **"Releases"** puis télécharger le logiciel (**postinstall-debian-{VERSION}.zip**)
68 |
69 | - Décompressez le zip, puis double cliquez sur **"postinstall-debian-gui.run"**
70 |
71 |
72 | **NOTE IMPORTANTE !!**
73 |
74 | ***- Ce logiciel dépend de YAD. Son installation s'effectue automatiquement de façon transparente.***
75 |
76 | ***- Bash-completions et curl sont installés automatiquements pour combler les différences entre l'installation live et en ligne.***
77 |
78 | ***- Si Gnome est détecté, l'installation et configuration de flatpak sera effectuée.***
79 | ***Pour KDE, l'installation se fait en 3 clics dans Discover/Configuration.***
80 |
81 | ***- L'activation du Multilib, Contrib et Non-free est effectuée au lancement de la GUI pour améliorer l'expérience utilisateur.***
82 |
83 | ***- La valeure vm_map.max.count est automatiquement montée pour assurer la meilleure compatibilitée pour les jeux vidéos.***
84 |
85 | ***- KDE est livré avec PulseAudio et Wayland, contrairement à Gnome. Le script remplacera automatiquement PulseAudio par Pipewire.***
86 |
87 | ***SI VOUS NE LE SOUHAITEZ PAS, UTILISEZ LA TUI !!***
88 |
89 | ----------------------------------------------------------------------------------------------------------------------------------------------------------------
90 |
91 |
92 |
93 | **POUR CEUX SOUHAITANT UTILISER L'INTERFACE TUI (MODE EXPERT) :**
94 |
95 | Vous devez exécuter l'application depuis un terminal en root ou en utilisateur :
96 |
97 | - Pour exécuter l'application :
98 |
99 | bash postinstall-debian-tui
100 |
101 | - Alternativement, vous pouvez aussi lancer en sudo ou en root (su -) :
102 |
103 | sudo bash postinstall-debian-tui
104 |
105 |
106 | ## INSTALLATION AVEC SECUREBOOT ACTIF (À EFFECTUER AVANT TOUTE AUTRE INSTALLATION DE KERNEL OU DRIVER) :
107 |
108 | **Pour GNOME/KDE :**
109 |
110 | - Vous pouvez utiliser **POSTINSTALL-DEBIAN-GUI**.
111 |
112 |
113 | ***Une compatibilité existe si vous avez Zenity d'installé sur votre système.***
114 |
115 | **Pour les autres DE :**
116 |
117 | - Utilisez **POSTINSTALL-DEBIAN-TUI**.
118 |
119 | **Instruction et aide pour Secureboot :**
120 |
121 | - Suivez les indications à l'écran. Renseignez votre nom lorsque demandé, puis renseignez le mot de passe à usage unique.
122 |
123 | **ATTENTION A QWERTY/AZERTY !** Vous pouvez utiliser uniquement la lettre "t" ou "r" ou bien le mot "root". Ce mot de passe ne servant qu'une seule fois.
124 |
125 | - Redémarrez la machine. Vous aurez un écran bleu. Appuyez sur une touche dans les 10 secondes puis
126 | choissez ENROLL MOK, puis CONTINUE, puis YES (Suivez les instructions en Anglais hélas) le mot de passe à usage unique vous sera demandé (celui que vous avez choisi un peu plus tôt).
127 |
128 | - Il n'y a pas d'avertissement de réussite mais la première option aura disparu, choisissez REBOOT.
129 |
130 | ## Debian Testing/Sid
131 |
132 | Si vous utilisez ces versions, il est recommandé d'utiliser le script **Postinstall-Testing AIO** depuis l'interface TUI.
133 | Toutefois pour les plus experts, les autres options restent disponible malgrès le risque d'incompatibilités.
134 |
135 | Le script est toujours en Bêta et de nouvelles options vont continuer à arriver.
136 | Si vous avez besoin des derniers firmwares AMD/Linux, choisissez les options 4 puis 6 de l'interface TUI.
137 |
138 | **N'utilisez pas DEBIAN TESTING/SID sans avoir acquis les bases de Debian**
139 |
140 | ## Kernels Customs :
141 |
142 | Il existe 2 principaux fournisseurs de Kernels Gaming :
143 |
144 | - [**TKG**](https://github.com/Frogging-Family/linux-tkg)
145 | - [**Liquorix**](https://liquorix.net/)
146 |
147 | Si vous avez une carte graphique NVIDIA, il se peut que des incompatibilités se produisent et que le pilote Nvidia ne soit pas encore rendu compatible avec ces kernels très récents et mis à jour en continu.
148 | COMPATIBLE UNIQUEMENT AVEC LE DRIVER FOURNIT PAR NVIDIA !
149 |
150 | **Je vous recommande plutôt l'utilisation du kernel TKG avec Nvidia, à installer vous mêmes, afin de vous assurer que tout se passe bien à l'installation. Il ne se metra pas à jour tout seul et permet de choisir la branche LTS ou Current voir une branche intermédiaire. Cela offre plus de contrôle et permet d'éviter la casse.**
151 |
152 | Si vous possédez une carte AMD, le Liquorix est plus simple à mettre en place (Une ligne à copier coller dans le terminal, nécessite d'avoir installé curl)
153 |
154 | ## SECUREBOOT + Kernels Customs :
155 |
156 | ***Seul le kernel TKG est entièrement supportés avec secureboot activé après avoir configuré celui-ci avec l'outil fourni par cet utilitaire. L'outil ne prend plus en charge Liquorix ni Xanmod !***
157 |
158 | ## Kernels Backports Debian Stable :
159 |
160 | Pour utiliser les backports, vous pouvez les configurer en 1 clic dans la section Utilitaires.
161 |
162 | Pour mettre à niveau votre kernel en 1 commande :
163 |
164 | sudo apt install -t stable-backports linux-image-amd64 linux-headers-amd64
165 |
166 | Une fois terminé, redémarrez la machine.
167 |
168 | ## Astuces/Dépannage :
169 |
170 | - Pour les pocesseurs de carte graphique non supportés, Utilisez l'installation expert puis avant de finir l'installation, sélectionnez :
171 | - Démarrer un sheel
172 | - faites :
173 |
174 | chroot /target bash
175 | cd /root
176 | apt install git wget
177 | git clone -b dev https://github.com/xdavius/postinstall-debian.git
178 | cd postinstall-debian
179 | bash postinstall-debian-tui
180 |
181 | - Puis installez les linux-firmwares-git (option 4 puis 6)
182 | - Installez un kernel récent au besoin (exemple liquorix, sans secureboot)
183 |
184 | apt install curl
185 | curl -s 'https://liquorix.net/install-liquorix.sh' | sudo bash
186 |
187 | ## Contenu des scripts :
188 |
189 | ## SecureBoot :
190 |
191 |
192 | - install-sb : Installe la configuration pour utiliser Secureboot de façon transparente. **ATTENTION** le paquet DKMS se fait patcher !
193 |
194 |
195 | ## Nvidia :
196 |
197 | - nvidia-stable : Installe le driver Nvidia officiel Debian Stable **RECOMMANDÉ/KERNEL LTS UNIQUEMENT**. (Actuellement : Branche 525)
198 |
199 | - nvidia-cuda : Installe le driver Nvidia Curent Stable en provenance des dépots de NVIDIA. (Actuellement : Branche 545)
200 | **NVIDIA CONSEILLE UN KERNEL LTS ou BACKPORTÉ, PEUT FONCTIONNER AVEC KERNEL CURRENT (Liquorix/TKG), MAIS PEUT AUSSI CASSER !**
201 |
202 | - nvidia-rollback : Désinstalle vos drivers Nvidia et fait le ménage !
203 |
204 | ## AMD / Intel :
205 |
206 | - mesa-kisak-fresh : Installe le dernier Mesa Stable pour AMD/INTEL. **RECOMMANDÉ**
207 |
208 | - amd-vulkan : Installe Vulkan pour les GPU AMD/INTEL. **RECOMMANDÉ**
209 |
210 | ## ROCM :
211 | [**Page officielle ROCM**](https://www.amd.com/fr/graphics/servers-solutions-rocm)
212 |
213 | - rocm : Installe le dépot AMD et installe ROCM Opencl et HIP.
214 |
215 | ## Jeux :
216 |
217 | - steam : Installe le Steam-Installer pour procéder à l'installation de steam et des dépendances.
218 |
219 | - lutris-latest : Installe la dernière version de lutris et le dépôt officiel.
220 |
221 | - wine-staging : Installe la dernière version de wine ainsi que toutes les dépendances nécessaire, et le dépôt officiel.
222 |
223 | - Discord : Installe le dépôt automatique de Javinator9889 pour avoir discord toujours à jour.
224 | [**Github javinator9889**](https://github.com/Javinator9889/Discord-PPA)
225 |
226 | ## Gestionaires de paquets
227 |
228 | - deb-get : Installer deb-get pour installer facilement des logiciels .deb externes aux dépots Debian (heroic, discord, lutris (github version),
229 | et d'autres), pour Debian Stable uniquement.
230 | [**Github deb-get**](https://github.com/wimpysworld/deb-get).
231 |
232 | - pacstall : Une alternative à deb-get, permet d'accèder à de nombreux logiciels supplémentaires et de les maintenir à jour.
233 | [**Github pacstall**](https://github.com/pacstall/pacstall) / [**Liste des paquets pacstall**](https://pacstall.dev/packages?page=0&size=25&sortBy=default&sort=asc&filter=&filterBy=name).
234 |
235 | ## Firmwares :
236 |
237 | - update-firmware : Met à jour les firmwares Linux à leurs dernières versions GIT (Support du matériel très récent comme les dernières cartes Wifi ou les
238 | derniers GPU)
239 |
240 | ## Backports ou Sid :
241 |
242 | - backports : Permet d'activer le dépôt stable-backports. Celui-ci est activé en mode Rolling. Lorsque une nouvelle version de Debian sortira,
243 | il ne sera pas nécessaire de le reconfigurer.
244 | Il est recommandé de passer votre sources.list en branche Stable pour en profiter de façon optimale.
245 |
246 | - install-sid : [DEPRECATED] Configure Sid avec un Pin 10, cette moddification utile sur Debian **Stable** et **Testing** permet en cas de dépendances cassées de permettre à votre Debian d'aller chercher uniquement les paquets
247 | nécéssaires dans Sid. [**Explication de pinning par Debian Facile**](https://debian-facile.org/doc:systeme:apt:pinning).
248 |
249 | ## Laptops
250 |
251 | - envycontrol : Permet de controler un laptop Optimus et de chosir le mode dédié/hybride. Fonctionne pour laptops nvidia/intel et amd/amd.
252 | Le dossier ENVYCONTROL-GUI contient des scripts d'installations d'extensions graphiques pour GNOME et KDE
253 | [**Documantation Complète ICI**](https://github.com/Xdavius/envycontrol/blob/main/README.md)
254 |
255 | ## REMERCIEMENTS :
256 |
257 | Merci à Bazogueur Tobal, Cptcavern, Pandatomikk, Christophe, Cfrancky77, Piaf-jaune pour le logo de l'application, et toute la Team GLF pour leur participation et tests sur ce projet !
258 |
259 | **Merci à tous les développeurs sur GitHub qui partagent leur travail sans lesquels ce projet n'aurait jamais abouti !**
260 |
--------------------------------------------------------------------------------
/SECUREBOOT/data/secureboot.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "Setup: must be run logged as root (su - / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | echo "
12 | Configuration de Secureboot
13 | " ; sleep 1
14 |
15 | function create_key() {
16 |
17 | echo "
18 | Création de la clé MOK
19 | " ; sleep 1
20 |
21 | apt install -y sbsigntool dkms
22 |
23 | mkdir -p /var/lib/shim-signed/mok/
24 | cd /var/lib/shim-signed/mok/
25 |
26 | echo "
27 | "
28 | read -p "Saisissez votre nom pour la signature : " sign_name
29 |
30 | if [[ $sign_name == "" ]]
31 | then sign_name="NoName"
32 | fi
33 | echo "
34 | "
35 | # -addext "extendedKeyUsage=codeSigning,1.3.6.1.4.1.2312.16.1.3,1.3.6.1.4.1.2312.16.1.2,1.3.6.1.4.1.2312.16.1.1,1.3.6.1.4.1.2312.16.1,1.3.6.1.4.1.2312.16"
36 | openssl req -new -x509 -nodes -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -days 36500 -subj "/CN=$sign_name/"
37 | openssl x509 -inform der -in MOK.der -out MOK.pem
38 | }
39 |
40 | function import_mok() {
41 | echo "
42 | IMPORTATION DE LA CLE
43 |
44 | -----------------------------------------------------------------------------
45 |
46 | CREATION DU MOT DE PASSE UNIQUE POUR ENROLL.
47 | ATTENTION AVEC AZERTY/QWERTY !!!
48 | Pour ne pas faire d'erreur, vous pouvez utiliser - root - comme mot de passe.
49 |
50 | -----------------------------------------------------------------------------
51 |
52 |
53 | " ; sleep 5
54 |
55 | mokutil --import /var/lib/shim-signed/mok/MOK.der
56 |
57 | }
58 |
59 | function sign_helper() {
60 |
61 | echo "
62 | Configuration du Sign Helper
63 | " ; sleep 1
64 |
65 | sign1='mok_signing_key="/var/lib/shim-signed/mok/MOK.priv"'
66 | sign2='mok_certificate="/var/lib/shim-signed/mok/MOK.der"'
67 | sign3='sign_tool="/etc/dkms/sign_helper.sh"'
68 | sign4='sign_file="/opt/signtool/sign-file"'
69 | sign5='autoinstall_all_kernels="true"'
70 | sign6='modprobe_on_install="true"'
71 |
72 | echo $sign1 > /etc/dkms/framework.conf
73 | echo $sign2 >> /etc/dkms/framework.conf
74 | echo $sign3 >> /etc/dkms/framework.conf
75 | #echo $sign4 >> /etc/dkms/framework.conf
76 | echo $sign5 >> /etc/dkms/framework.conf
77 | echo $sign6 >> /etc/dkms/framework.conf
78 |
79 | sign_helper='"$1" sha256 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der "$2"'
80 | echo $sign_helper > /etc/dkms/sign_helper.sh
81 | chmod +x /etc/dkms/sign_helper.sh
82 | }
83 |
84 |
85 | function sign_kernel() {
86 | echo "
87 | Signature du kernel actuel en cours
88 | "
89 |
90 | VERSION="$(uname -r)"
91 | SHORT_VERSION="$(uname -r | cut -d . -f 1-2)"
92 | MODULES_DIR=/lib/modules/$VERSION
93 | KBUILD_DIR=/usr/lib/linux-kbuild-$SHORT_VERSION
94 |
95 | sbsign --key /var/lib/shim-signed/mok/MOK.priv --cert /var/lib/shim-signed/mok/MOK.pem "/boot/vmlinuz-$VERSION" --output "/boot/vmlinuz-$VERSION.tmp"
96 | mv /boot/vmlinuz-$VERSION.tmp /boot/vmlinuz-$VERSION
97 | }
98 |
99 | function sign_modules() {
100 | echo "Signature des modules existants
101 | "; sleep 1
102 | VERSION="$(uname -r)"
103 | SHORT_VERSION="$(uname -r | cut -d . -f 1-2)"
104 | MODULES_DIR=/lib/modules/$VERSION
105 | KBUILD_DIR=/usr/lib/linux-kbuild-$SHORT_VERSION
106 |
107 | find /usr/lib/modules/ -name \*.ko | while read i; \
108 | do sudo --preserve-env=KBUILD_SIGN_PIN \
109 | $KBUILD_DIR/scripts/sign-file sha256 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der "$i"\
110 | || break; done
111 | }
112 |
113 | function install_kernel_autosign() {
114 |
115 | echo "
116 | Configuration de la signature automatique
117 | "; sleep 1
118 |
119 | cd $working_dir
120 | find_zz=$(find . -name zz-signing)
121 | echo "Installation de $find_zz"
122 |
123 | cp $find_zz /etc/kernel/postinst.d/zz-signing
124 | chown root:root /etc/kernel/postinst.d/zz-signing
125 | chmod u+rx /etc/kernel/postinst.d/zz-signing
126 |
127 | # Uncomment to use with ubuntu mainline
128 | #cp sbin/zz-mainline-signing /etc/kernel/postinst.d
129 | #chown root:root /etc/kernel/postinst.d/zz-mainline-signing
130 | #chmod u+rx /etc/kernel/postinst.d/zz-mainline-signing
131 |
132 | sleep 2
133 | }
134 |
135 | function patch_dkms() {
136 | echo "
137 | Patch de dkms pour les kernels Customs, blocage des mises à jour du paquet
138 | " ; sleep 1
139 |
140 | cd $working_dir
141 | find_dkms=$(find . -name dkms.patched)
142 | echo "Installation de $find_dkms"
143 |
144 | cp $find_dkms /usr/sbin/dkms
145 | chmod +x /usr/sbin/dkms
146 | apt-mark hold dkms
147 |
148 | }
149 | working_dir=$(pwd)
150 | create_key
151 | sign_helper
152 | import_mok
153 | sign_kernel
154 | sign_modules
155 | install_kernel_autosign
156 | #patch_dkms
157 |
--------------------------------------------------------------------------------
/SECUREBOOT/data/src/zz-signing:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Author: @maxried https://gist.github.com/maxried/796d1f3101b3a03ca153fa09d3af8a11
3 |
4 | set -e
5 |
6 | KERNEL_IMAGE=$2
7 | MOK_CERT_NAME="MOK"
8 | MOK_DIRECTORY="/var/lib/shim-signed/mok"
9 |
10 | if [ $# -ne 2 ] ; then
11 | echo "Wrong count of command line arguments. This is not meant to be called directly." >&2
12 | exit 1
13 | fi
14 |
15 | if [ ! -x "$(command -v sbsign)" ] ; then
16 | echo "sbsign not executable. Bailing." >&2
17 | exit 1
18 | fi
19 |
20 |
21 | if [ ! -r "$MOK_DIRECTORY/$MOK_CERT_NAME.der" ] ; then
22 | echo "$MOK_DIRECTORY/$MOK_CERT_NAME.der is not readable." >&2
23 | exit 1
24 | fi
25 |
26 | if [ ! -r "$MOK_DIRECTORY/$MOK_CERT_NAME.priv" ] ; then
27 | echo "$MOK_DIRECTORY/$MOK_CERT_NAME.priv is not readable." >&2
28 | exit 1
29 | fi
30 |
31 | if [ ! -w "$KERNEL_IMAGE" ] ; then
32 | echo "Kernel image $KERNEL_IMAGE is not writable." >&2
33 | exit 1
34 | fi
35 |
36 | if [ ! -r "$MOK_DIRECTORY/$MOK_CERT_NAME.pem" ] ; then
37 | echo "$MOK_CERT_NAME.pem missing. Generating from $MOK_CERT_NAME.der."
38 | if [ ! -x "$(command -v openssl)" ] ; then
39 | echo "openssl could not be found. Bailing." >&2
40 | exit 1
41 | fi
42 | openssl x509 -in "$MOK_DIRECTORY/$MOK_CERT_NAME.der" -inform DER -outform PEM -out "$MOK_DIRECTORY/$MOK_CERT_NAME.pem" || { echo "Conversion failed. Bailing." >&2; exit 1 ; }
43 | fi
44 |
45 | echo "Signing $KERNEL_IMAGE..."
46 | sbsign --key "$MOK_DIRECTORY/$MOK_CERT_NAME.priv" --cert "$MOK_DIRECTORY/$MOK_CERT_NAME.pem" --output "$KERNEL_IMAGE" "$KERNEL_IMAGE"
47 |
48 | #kernel_mod_name=$(echo $KERNEL_IMAGE | cut -c 15-)
49 | #echo "Signing modules /usr/lib/modules/$kernel_mod_name/"
50 |
51 | #find /usr/lib/modules/$kernel_mod_name/ -name \*.ko | while read i; \
52 | #do sudo --preserve-env=KBUILD_SIGN_PIN \
53 | #/opt/signtool/sign-file sha256 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der "$i"\
54 | #|| break; done
55 |
--------------------------------------------------------------------------------
/SECUREBOOT/install-sb.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "Setup: must be run logged as root (su - / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 | clear
11 | echo "
12 | Configuration du système SECUREBOOT
13 |
14 | Installation des dépendances...
15 | " ; sleep 1
16 | apt install -y dkms patch > /var/log/$LOGNAME.auto-update.txt 2>&1
17 |
18 | kernel_ver=$(uname -r)
19 | srcdir=$(pwd)
20 | export srcdir
21 | chmod +x $srcdir/SECUREBOOT/data/*.sh
22 | chmod +x $srcdir/SECUREBOOT/data/src/zz-signing
23 |
24 | #echo "
25 | #installation de sign-file pour les Kernels Customs...
26 | #" ; sleep 1
27 | #mkdir -p /opt/signtool/
28 | #cp /lib/modules/$kernel_ver/build/scripts/sign-file /opt/signtool
29 |
30 |
31 | echo "
32 | Installation...
33 | " ; sleep 1
34 |
35 | find_securebootsh=$(find . -name secureboot.sh)
36 | source $find_securebootsh
37 |
38 | echo "
39 | Job done
40 | " ; sleep 2
41 |
42 | read -n1 -p "Appuyer sur Entrée pour quitter, puis, pensez à redémarrer !" end
43 | if [[ $end = "" ]] ; then
44 | exit 1
45 | fi
46 | exit 1
47 |
--------------------------------------------------------------------------------
/TESTING/SECUREBOOT/data/secureboot.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "Setup: must be run logged as root (su - / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | echo "
12 | Configuration de Secureboot
13 | " ; sleep 1
14 |
15 | function create_key() {
16 |
17 | echo "
18 | Création de la clé MOK
19 | " ; sleep 1
20 |
21 | apt install -y sbsigntool dkms
22 |
23 | mkdir -p /var/lib/shim-signed/mok/
24 | cd /var/lib/shim-signed/mok/
25 |
26 | echo "
27 | "
28 | read -p "Saisissez votre nom pour la signature : " sign_name
29 |
30 | if [[ $sign_name == "" ]]
31 | then sign_name="NoName"
32 | fi
33 | echo "
34 | "
35 | # -addext "extendedKeyUsage=codeSigning,1.3.6.1.4.1.2312.16.1.3,1.3.6.1.4.1.2312.16.1.2,1.3.6.1.4.1.2312.16.1.1,1.3.6.1.4.1.2312.16.1,1.3.6.1.4.1.2312.16"
36 | openssl req -new -x509 -nodes -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -days 36500 -subj "/CN=$sign_name/"
37 | openssl x509 -inform der -in MOK.der -out MOK.pem
38 | }
39 |
40 | function import_mok() {
41 | echo "
42 | IMPORTATION DE LA CLE
43 |
44 | -----------------------------------------------------------------------------
45 |
46 | CREATION DU MOT DE PASSE UNIQUE POUR ENROLL.
47 | ATTENTION AVEC AZERTY/QWERTY !!!
48 | Pour ne pas faire d'erreur, vous pouvez utiliser - root - comme mot de passe.
49 |
50 | -----------------------------------------------------------------------------
51 |
52 |
53 | " ; sleep 5
54 |
55 | mokutil --import /var/lib/shim-signed/mok/MOK.der
56 |
57 | }
58 |
59 | function sign_helper() {
60 |
61 | echo "
62 | Configuration du Sign Helper
63 | " ; sleep 1
64 |
65 | sign1='mok_signing_key="/var/lib/shim-signed/mok/MOK.priv"'
66 | sign2='mok_certificate="/var/lib/shim-signed/mok/MOK.der"'
67 | sign3='sign_tool="/etc/dkms/sign_helper.sh"'
68 | sign4='sign_file="/opt/signtool/sign-file"'
69 | sign5='autoinstall_all_kernels="true"'
70 | sign6='modprobe_on_install="true"'
71 |
72 | echo $sign1 > /etc/dkms/framework.conf
73 | echo $sign2 >> /etc/dkms/framework.conf
74 | echo $sign3 >> /etc/dkms/framework.conf
75 | #echo $sign4 >> /etc/dkms/framework.conf
76 | echo $sign5 >> /etc/dkms/framework.conf
77 | echo $sign6 >> /etc/dkms/framework.conf
78 |
79 | sign_helper='"$1" sha256 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der "$2"'
80 | echo $sign_helper > /etc/dkms/sign_helper.sh
81 | chmod +x /etc/dkms/sign_helper.sh
82 | }
83 |
84 |
85 | function sign_kernel() {
86 | echo "
87 | Signature du kernel actuel en cours
88 | "
89 |
90 | VERSION="$(uname -r)"
91 | SHORT_VERSION="$(uname -r | cut -d . -f 1-2)"
92 | MODULES_DIR=/lib/modules/$VERSION
93 | KBUILD_DIR=/usr/lib/linux-kbuild-$SHORT_VERSION
94 |
95 | sbsign --key /var/lib/shim-signed/mok/MOK.priv --cert /var/lib/shim-signed/mok/MOK.pem "/boot/vmlinuz-$VERSION" --output "/boot/vmlinuz-$VERSION.tmp"
96 | mv /boot/vmlinuz-$VERSION.tmp /boot/vmlinuz-$VERSION
97 | }
98 |
99 | function sign_modules() {
100 | echo "Signature des modules existants
101 | "; sleep 1
102 | VERSION="$(uname -r)"
103 | SHORT_VERSION="$(uname -r | cut -d . -f 1-2)"
104 | MODULES_DIR=/lib/modules/$VERSION
105 | KBUILD_DIR=/usr/lib/linux-kbuild-$SHORT_VERSION
106 |
107 | find /usr/lib/modules/ -name \*.ko | while read i; \
108 | do sudo --preserve-env=KBUILD_SIGN_PIN \
109 | $KBUILD_DIR/scripts/sign-file sha256 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der "$i"\
110 | || break; done
111 | }
112 |
113 | function install_kernel_autosign() {
114 |
115 | echo "
116 | Configuration de la signature automatique
117 | "; sleep 1
118 |
119 | cd $working_dir
120 | find_zz=$(find . -name zz-signing)
121 | echo "Installation de $find_zz"
122 |
123 | cp $find_zz /etc/kernel/postinst.d/zz-signing
124 | chown root:root /etc/kernel/postinst.d/zz-signing
125 | chmod u+rx /etc/kernel/postinst.d/zz-signing
126 |
127 | # Uncomment to use with ubuntu mainline
128 | #cp sbin/zz-mainline-signing /etc/kernel/postinst.d
129 | #chown root:root /etc/kernel/postinst.d/zz-mainline-signing
130 | #chmod u+rx /etc/kernel/postinst.d/zz-mainline-signing
131 |
132 | sleep 2
133 | }
134 |
135 | function patch_dkms() {
136 | echo "
137 | Patch de dkms pour les kernels Customs, blocage des mises à jour du paquet
138 | " ; sleep 1
139 |
140 | cd $working_dir
141 | find_dkms=$(find . -name dkms.patched)
142 | echo "Installation de $find_dkms"
143 |
144 | cp $find_dkms /usr/sbin/dkms
145 | chmod +x /usr/sbin/dkms
146 | apt-mark hold dkms
147 |
148 | }
149 | working_dir=$(pwd)
150 | create_key
151 | sign_helper
152 | import_mok
153 | sign_kernel
154 | sign_modules
155 | install_kernel_autosign
156 | #patch_dkms
157 |
--------------------------------------------------------------------------------
/TESTING/SECUREBOOT/data/src/zz-signing:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Author: @maxried https://gist.github.com/maxried/796d1f3101b3a03ca153fa09d3af8a11
3 |
4 | set -e
5 |
6 | KERNEL_IMAGE=$2
7 | MOK_CERT_NAME="MOK"
8 | MOK_DIRECTORY="/var/lib/shim-signed/mok"
9 |
10 | if [ $# -ne 2 ] ; then
11 | echo "Wrong count of command line arguments. This is not meant to be called directly." >&2
12 | exit 1
13 | fi
14 |
15 | if [ ! -x "$(command -v sbsign)" ] ; then
16 | echo "sbsign not executable. Bailing." >&2
17 | exit 1
18 | fi
19 |
20 |
21 | if [ ! -r "$MOK_DIRECTORY/$MOK_CERT_NAME.der" ] ; then
22 | echo "$MOK_DIRECTORY/$MOK_CERT_NAME.der is not readable." >&2
23 | exit 1
24 | fi
25 |
26 | if [ ! -r "$MOK_DIRECTORY/$MOK_CERT_NAME.priv" ] ; then
27 | echo "$MOK_DIRECTORY/$MOK_CERT_NAME.priv is not readable." >&2
28 | exit 1
29 | fi
30 |
31 | if [ ! -w "$KERNEL_IMAGE" ] ; then
32 | echo "Kernel image $KERNEL_IMAGE is not writable." >&2
33 | exit 1
34 | fi
35 |
36 | if [ ! -r "$MOK_DIRECTORY/$MOK_CERT_NAME.pem" ] ; then
37 | echo "$MOK_CERT_NAME.pem missing. Generating from $MOK_CERT_NAME.der."
38 | if [ ! -x "$(command -v openssl)" ] ; then
39 | echo "openssl could not be found. Bailing." >&2
40 | exit 1
41 | fi
42 | openssl x509 -in "$MOK_DIRECTORY/$MOK_CERT_NAME.der" -inform DER -outform PEM -out "$MOK_DIRECTORY/$MOK_CERT_NAME.pem" || { echo "Conversion failed. Bailing." >&2; exit 1 ; }
43 | fi
44 |
45 | echo "Signing $KERNEL_IMAGE..."
46 | sbsign --key "$MOK_DIRECTORY/$MOK_CERT_NAME.priv" --cert "$MOK_DIRECTORY/$MOK_CERT_NAME.pem" --output "$KERNEL_IMAGE" "$KERNEL_IMAGE"
47 |
48 | #kernel_mod_name=$(echo $KERNEL_IMAGE | cut -c 15-)
49 | #echo "Signing modules /usr/lib/modules/$kernel_mod_name/"
50 |
51 | #find /usr/lib/modules/$kernel_mod_name/ -name \*.ko | while read i; \
52 | #do sudo --preserve-env=KBUILD_SIGN_PIN \
53 | #/opt/signtool/sign-file sha256 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der "$i"\
54 | #|| break; done
55 |
--------------------------------------------------------------------------------
/TESTING/SECUREBOOT/install-sb.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "Setup: must be run logged as root (su - / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 | clear
11 | echo "
12 | Configuration du système SECUREBOOT
13 |
14 | Installation des dépendances...
15 | " ; sleep 1
16 | apt install -y dkms patch > /var/log/$LOGNAME.auto-update.txt 2>&1
17 |
18 | kernel_ver=$(uname -r)
19 | srcdir=$(pwd)
20 | export srcdir
21 | chmod +x $srcdir/SECUREBOOT/data/*.sh
22 | chmod +x $srcdir/SECUREBOOT/data/src/zz-signing
23 |
24 | #echo "
25 | #installation de sign-file pour les Kernels Customs...
26 | #" ; sleep 1
27 | #mkdir -p /opt/signtool/
28 | #cp /lib/modules/$kernel_ver/build/scripts/sign-file /opt/signtool
29 |
30 |
31 | echo "
32 | Installation...
33 | " ; sleep 1
34 |
35 | find_securebootsh=$(find . -name secureboot.sh)
36 | source $find_securebootsh
37 |
38 | echo "
39 | Job done
40 | " ; sleep 2
41 |
42 |
--------------------------------------------------------------------------------
/TESTING/cases:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | case $_deps in
4 | n|N)
5 | echo ""
6 | ;;
7 | o|O|*)
8 | echo "Installation des dépendances recommandées"
9 | apt install -y dbus-x11 pipewire-audio firmware-sof-signed > /dev/null
10 | echo $task_ok
11 | ;;
12 | esac
13 |
14 | case $_secureboot in
15 | n|N)
16 | echo ""
17 | ;;
18 | o|O|*)
19 | source ./SECUREBOOT/install-sb.sh
20 | echo $task_ok
21 | ;;
22 |
23 | esac
24 |
25 | case $_sudo in
26 | n|N)
27 | sleep 0.1
28 | ;;
29 | o|O|*)
30 | echo "Ajout de l'utilisateur au groupe SUDO"
31 | su - -c "usermod -aG sudo $(who | grep tty | cut -d " " -f 1)"
32 | echo $task_ok
33 | sleep 1
34 | ;;
35 | esac
36 |
37 | case $_repos in
38 | n|N)
39 | sleep 0.1
40 | ;;
41 | o|O|*)
42 | echo "Ajout des dépôts Contrib et Non-free"
43 | apt-add-repository -y contrib > /dev/null
44 | apt-add-repository -y non-free > /dev/null
45 | apt-get update -y > /dev/null
46 | echo $task_ok
47 | sleep 1
48 | ;;
49 | esac
50 |
51 | case $_multilib in
52 | n|N)
53 | sleep 0.1
54 | ;;
55 | o|O|*)
56 | echo "Ajout du dépôt Multilib"
57 | dpkg --add-architecture i386 > /dev/null
58 | apt-get update -y > /dev/null
59 | echo $task_ok
60 | sleep 1
61 | ;;
62 | esac
63 |
64 | case $_vmmap in
65 | n|N)
66 | echo "vm.max_map_count laissé par défaut"
67 | ;;
68 | o|O|*)
69 | echo "Configuration de vm.max_map_count"
70 | if [ -f /etc/sysctl.d/80-gamecompatibility.conf ]; then
71 | echo "vm.max_map_count déjà configuré"
72 | else
73 | echo "vm.max_map_count = 2147483642" | tee /etc/sysctl.d/80-gamecompatibility.conf && \
74 | sysctl --system
75 | fi
76 | ;;
77 | esac
78 |
79 | case $_gaming in
80 | n|N)
81 | sleep 0.1
82 | ;;
83 | o|O|*)
84 | echo "Installation des applications Gaming"
85 | sudo apt-get install -y steam wine lutris
86 | echo $task_ok
87 | sleep 1
88 | ;;
89 | esac
90 |
91 | case $_sid in
92 | n|N)
93 | sleep 0.1
94 | ;;
95 | o|O|*)
96 | echo "Ajout du dépôt Sid Pin 10"
97 | source ./src/install-sid.sh > /dev/null
98 | echo $task_ok
99 | sleep 1
100 | ;;
101 | esac
102 |
103 | case $_flatpak in
104 | n|N)
105 | sleep 0.1
106 | ;;
107 | o|O|*)
108 | echo "Installation du système Flatpak"
109 | apt-get install -y flatpak > /dev/null
110 | apt-get install -y gnome-software-plugin-flatpak > /dev/null
111 | flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo > /dev/null
112 | echo $task_ok
113 | sleep 1
114 | ;;
115 | esac
116 |
117 | case $_pacstall in
118 | n|N)
119 | echo "Pacstall non installé"
120 | ;;
121 | o|O|*)
122 | apt install -y curl
123 | bash -c "$(curl -fsSL https://pacstall.dev/q/install)"
124 | ;;
125 | esac
126 |
127 | case $_nvidia in
128 | o|O)
129 | echo "Installation des derniers drivers Nvidia"
130 | debian_version="12"
131 | keyring_version="1.1-1_all"
132 | apt-get remove -y cuda-keyring > /dev/null
133 | wget https://developer.download.nvidia.com/compute/cuda/repos/debian${debian_version}/x86_64/cuda-keyring_${keyring_version}.deb > /dev/null
134 | dpkg -i cuda-keyring_${keyring_version}.deb > /dev/null
135 | rm cuda-keyring_${keyring_version}.deb > /dev/null
136 | apt-get update -y > /dev/null
137 | echo "Installation du driver Nvidia en cours, patientez..."
138 | apt-get install -y nvidia-driver nvidia-settings vulkan-tools libglvnd-dev pkg-config > /dev/null
139 |
140 | if [[ $_multilib = "o" ]] || [[ $_multilib = "O" ]] || [[ $_multilib = "" ]]; then
141 | echo "Installation des lib32"
142 | apt-get install nvidia-driver-libs:i386 > /dev/nul
143 | echo -e "${GREEN}Nvidia i386 instlallé${ENDCOLOR}"
144 | else
145 | echo -e "{{RED}Multilib non demandé à l'installation${ENDCOLOR}"
146 | fi
147 |
148 | echo "Installation drm-modeset=1"
149 | if [[ -f /etc/modprobe.d/nvidia.conf ]]; then
150 | rm /etc/modprobe.d/nvidia.conf
151 | fi
152 | touch /etc/modprobe.d/nvidia.conf
153 | echo "options nvidia-drm modeset=1" > /etc/modprobe.d/nvidia.conf
154 | echo "${GREEN}Driver Nvidia installé${ENDCOLOR}"
155 | echo $task_ok
156 | sleep 1
157 | ;;
158 | n|N|*)
159 | sleep 0.1
160 | ;;
161 | esac
162 |
163 | case $_cuda in
164 | o|O)
165 | if [[ $_nvidia = "o" ]] || [[ $_nvidia = "O" ]] || [[ $_nvidia = "" ]]; then
166 | echo -e "Installation de Cuda {RED}(Téléchargement 2Go)${ENDCOLOR}, Patientez !!"
167 | apt-get install -y nvidia-cuda-dev nvidia-cuda-toolkit > /dev/null
168 | echo "${GREEN}Cuda installé${ENDCOLOR}"
169 | echo $task_ok
170 | sleep 1
171 | else
172 | echo "${RED}Driver Nvidia non installé${ENDCOLOR}"
173 | fi
174 | sleep 1
175 | ;;
176 | n|N|*)
177 | sleep 0.1
178 | ;;
179 | esac
180 |
181 | case $_envycontrol in
182 | n|N|*)
183 | sleep 0.1
184 | ;;
185 | o|O)
186 | echo "Installation de Envycontrol"
187 | if [[ $_nvidia = "o" ]] || [[ $nvidia = "O" ]]; then
188 | source ./src/envycontrol.sh > /dev/null
189 | echo $task_ok
190 | else
191 | echo "${RED}Driver Nvidia non installé${ENDCOLOR}"
192 | fi
193 | sleep 1
194 | ;;
195 | esac
196 |
197 | case $_mesa in
198 | n|N)
199 | sleep 0.1
200 | ;;
201 | o|O|*)
202 | echo "Installation de Mesa"
203 | apt-get install -y libgl1-mesa-dri mesa-va-drivers mesa-vdpau-drivers mesa-vulkan-drivers vulkan-tools > /dev/null
204 | echo -e "${GREEN}Mesa Vulkan installé${ENDCOLOR}"
205 | if [[ $_multilib = "o" ]] || [[ $_multilib = "O" ]] || [[ $_multilib = "" ]]; then
206 | apt-get install -y libgl1-mesa-dri:i386 mesa-vulkan-drivers:i386 > /dev/null
207 | echo -e "${GREEN}Mesa Vulkan i386 installé${ENDCOLOR}"
208 | fi
209 | echo $task_ok
210 | sleep 1
211 | ;;
212 | esac
213 |
214 | case $_rocm in
215 | o|O)
216 | echo -e "Installation de ROCm ${RED}(Téléchargement 2Go)${ENDCOLOR}"
217 | echo $rootdir
218 | source ./src/rocm.sh
219 | echo $task_ok
220 | ;;
221 | n|N|*)
222 | sleep 0.1
223 | ;;
224 | esac
225 |
226 |
--------------------------------------------------------------------------------
/TESTING/postinstall-testing:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | clear
4 | # Root checker
5 | if [[ $EUID -ne 0 ]]; then
6 | echo -e "\n---------------------------------------\n"
7 | echo -e "Setup: must be run logged as root (su - / sudo -i)" 1>&2
8 | echo -e "\n---------------------------------------\n"
9 | exit 1
10 | fi
11 |
12 | _init() {
13 |
14 | RED="\e[31m"
15 | GREEN="\e[32m"
16 | ENDCOLOR="\e[0m"
17 | rootdir=$(pwd)
18 |
19 | choice_yes=$(echo -e [${GREEN}O${ENDCOLOR}/${ENDCOLOR}n])
20 | choice_no=$(echo -e [${ENDCOLOR}o${ENDCOLOR}/${RED}N${ENDCOLOR}])
21 | unsure=$(echo -e ${RED}Say NO if unsure${ENDCOLOR})
22 | task_ok=$(echo -e [${GREEN}OK${ENDCOLOR}])
23 |
24 | debian_version="$(cat /etc/os-release | grep VERSION_CODENAME | cut -d '=' -f 2)"
25 |
26 | echo -e "${RED}----------------------------------------------------------------------------------------------${ENDCOLOR}
27 |
28 | POSTINSTALL DEBIAN TESTING
29 |
30 | ${RED}----------------------------------------------------------------------------------------------${ENDCOLOR}
31 |
32 |
33 | Veuillez répondre au questionnaire. L'installation se fera une fois celui-ci complété.
34 |
35 | Sid en Pin 101 est devenu obligatoire suite aux changements sur Debian.
36 | Merci de le prendre en considération avant de continuer
37 |
38 | ${RED}Cet outil est toujours en dévelloppement ! En cas de problème, merci d'ouvrir une issue !${ENDCOLOR}
39 |
40 | Dépendances nécessaires au script : bash-completion curl wget software-properties-common
41 |
42 | Dépendances de compatibilité/recommandées : firmware-sof-signed dbus-x11 pipewire-audio
43 | Vous pouvez les installer manuellement en faisant : \"sudo apt install firmware-sof-signed dbus-x11 pipewire-audio\"
44 |
45 | Verion de Debian actuelle : $debian_version
46 | "
47 | case $1 in
48 | debug)
49 | read -p "Version de Debian à débug : " debian_debug
50 | if [[ $debian_debug = "testing" ]] ; then
51 | debian_version="$(echo testing)"
52 | elif [[ $debian_debug = "sid" ]] ; then
53 | debian_version="$(echo sid)"
54 | fi
55 | ;;
56 | esac
57 |
58 | case $debian_version in
59 | trixie|testing|sid)
60 | echo "Version de Debian valide
61 | "
62 | ;;
63 | *)
64 | if [[ "$debian_version" != "testing" ]] || [[ "$debian_version" != "sid" ]] ; then
65 | echo -e "${RED} Ce script ne supporte que les codename testing et sid.
66 | Veuillez modifier le fichier /etc/apt/sources.list en conséquence et upgrade votre système.
67 | Fin du script${ENDCOLOR}"
68 | sleep 2
69 | exit 1
70 | fi
71 | ;;
72 | esac
73 |
74 | read -p "- Installer les dépendances obligatoires $choice_yes ? " _depsobl
75 |
76 | sbstate="$(mokutil --sb-state)"
77 | if [[ $sbstate == "SecureBoot enabled" ]]; then
78 | read -p "- SECUREBOOT ACTIF : Voulez-vous configurer le système de signature des modules/kernel $choice_no ? " _secureboot
79 | fi
80 |
81 | is_user_sudo=$(sudo -k)
82 | if [[ "$is_user_sudo" != "" ]] ; then
83 | read -p "- Ajouter votre utilisateur au groupe SUDO $choice_yes ? " _sudo
84 | else
85 | no_sudo="n"
86 | fi
87 |
88 | read -p "- Ajouter les dépôts Contrib et Non-free (Obligatoire pour Steam et Nvidia) $choice_yes ? " _repos
89 |
90 | read -p "- Ajouter le Multilib (Obligatoire pour le Gaming) $choice_yes ? " _multilib
91 | if [[ $_multilib = "o" ]] || [[ $_multilib = "O" ]] || [[ $_multilib = "" ]]; then
92 | read -p "- Installer les applications Gaming (Steam, Lutris Wine) $choice_yes ? " _gaming
93 | else
94 | _gaming=$(echo "n")
95 | fi
96 |
97 | read -p "- Augmenter la valeur du vm.max_map_count (Compatibilité augmentée pour les jeux vidéos) $choice_yes ? " _vmmap
98 |
99 | if [[ $debian_version == "testing" ]]; then
100 | echo -e "${red} Sid en PIN 101 sera maintenant ajouté pour les paquets manquants ou non déscendus dans Testing${ENDCOLOR}" _sid
101 | fi
102 |
103 | read -p "- Installer Flatpak et le dépôt Flathub (GNOME) $choice_no ? " _flatpak
104 |
105 | read -p "- Installer Pacstall (AUR pour Debian) $choice_no ? " _pacstall
106 |
107 | read -p "- Avez-vous un GPU Nvidia ? $choice_no ? " _gpu
108 |
109 | case $_gpu in
110 | o|O)
111 | read -p "- Installer le driver Nvidia (Dépot Nvidia - Dernière Version) $choice_yes ? " _nvidia
112 | read -p "- Installer Cuda $choice_yes ? " _cuda
113 | read -p "- Installer Envycontrol (Laptop Optimus) $unsure $choice_no ? " _envycontrol
114 | ;;
115 | *)
116 | read -p "- Installer Mesa Vulkan $choice_yes ? " _mesa
117 | read -p "- Installer le driver AMD ROCm $choice_no ? " _rocm
118 | ;;
119 | esac
120 |
121 | read -p "Le système va maintenant être modifié. Etes vous certains de vos réponses $choice_no ? " _final
122 |
123 | case $_final in
124 | O|o)
125 | _cases
126 | ;;
127 | N|n|*)
128 | echo "Installation intérrompue par l'utilisateur"
129 | exit 2
130 | ;;
131 | esac
132 | }
133 |
134 | _cases() {
135 |
136 | case $_secureboot in
137 | o|O)
138 | source ./SECUREBOOT/install-sb.sh
139 | echo $task_ok
140 | ;;
141 | n|N|*)
142 | echo ""
143 | ;;
144 |
145 | esac
146 |
147 | if [[ "${no_sudo}" != "n" ]]; then
148 | case $_sudo in
149 | n|N)
150 | sleep 0.1
151 | ;;
152 | o|O|*)
153 | echo "Ajout de l'utilisateur au groupe SUDO"
154 | su - -c "usermod -aG sudo $(who | grep tty | cut -d " " -f 1)"
155 | echo $task_ok
156 | sleep 1
157 | ;;
158 | esac
159 | fi
160 |
161 | case $_sid in
162 | *)
163 | echo "Ajout du dépôt Sid Pin 101"
164 | source ./src/install-sid.sh > /dev/null
165 | echo $task_ok
166 | sleep 1
167 | ;;
168 | esac
169 |
170 | case $_depsobl in
171 | n|N)
172 | echo -e "${RED}Impossible de continuer l'installation sans les dépendances. Fin de l'installation.${ENDCOLOR}"
173 | sleep 2
174 | exit 1
175 | ;;
176 | o|O|*)
177 | echo "Installation des dépendances"
178 | apt-get install -y bash-completion curl wget software-properties-common > /dev/null
179 | ;;
180 | esac
181 |
182 | case $_repos in
183 | n|N)
184 | sleep 0.1
185 | ;;
186 | o|O|*)
187 | echo "Ajout des dépôts Contrib et Non-free"
188 | apt-add-repository -y contrib > /dev/null
189 | apt-add-repository -y non-free > /dev/null
190 | apt-get update -y > /dev/null
191 | echo $task_ok
192 | sleep 1
193 | ;;
194 | esac
195 |
196 | case $_multilib in
197 | n|N)
198 | sleep 0.1
199 | ;;
200 | o|O|*)
201 | echo "Ajout du dépôt Multilib"
202 | dpkg --add-architecture i386 > /dev/null
203 | apt-get update -y > /dev/null
204 | echo $task_ok
205 | sleep 1
206 | ;;
207 | esac
208 |
209 | case $_vmmap in
210 | n|N)
211 | echo "vm.max_map_count laissé par défaut"
212 | ;;
213 | o|O|*)
214 | echo "Configuration de vm.max_map_count"
215 | if [ -f /etc/sysctl.d/80-gamecompatibility.conf ]; then
216 | echo "vm.max_map_count déjà configuré"
217 | else
218 | echo "vm.max_map_count = 2147483642" | tee /etc/sysctl.d/80-gamecompatibility.conf && \
219 | sysctl --system
220 | fi
221 | ;;
222 | esac
223 |
224 | case $_gaming in
225 | n|N)
226 | sleep 0.1
227 | ;;
228 | o|O|*)
229 | echo "Installation des applications Gaming"
230 | sudo apt-get install -y steam wine lutris
231 | echo $task_ok
232 | sleep 1
233 | ;;
234 | esac
235 |
236 | case $_flatpak in
237 | n|N)
238 | sleep 0.1
239 | ;;
240 | o|O|*)
241 | echo "Installation du système Flatpak"
242 | apt-get install -y flatpak > /dev/null
243 | apt-get install -y gnome-software-plugin-flatpak > /dev/null
244 | flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo > /dev/null
245 | echo $task_ok
246 | sleep 1
247 | ;;
248 | esac
249 |
250 | case $_pacstall in
251 | n|N)
252 | echo "Pacstall non installé"
253 | ;;
254 | o|O|*)
255 | apt install -y curl
256 | bash -c "$(curl -fsSL https://pacstall.dev/q/install)"
257 | ;;
258 | esac
259 |
260 | case $_nvidia in
261 | o|O)
262 | echo "Installation des derniers drivers Nvidia"
263 | debian_version="12"
264 | keyring_version="1.1-1_all"
265 | apt-get remove -y cuda-keyring > /dev/null
266 | wget https://developer.download.nvidia.com/compute/cuda/repos/debian${debian_version}/x86_64/cuda-keyring_${keyring_version}.deb > /dev/null
267 | dpkg -i cuda-keyring_${keyring_version}.deb > /dev/null
268 | rm cuda-keyring_${keyring_version}.deb > /dev/null
269 | apt-get update -y > /dev/null
270 | echo "Installation du driver Nvidia en cours, patientez..."
271 | apt-get install -y nvidia-driver nvidia-settings vulkan-tools libglvnd-dev pkg-config > /dev/null
272 |
273 | if [[ $_multilib = "o" ]] || [[ $_multilib = "O" ]] || [[ $_multilib = "" ]]; then
274 | echo "Installation des lib32"
275 | apt-get install nvidia-driver-libs:i386 > /dev/nul
276 | echo -e "${GREEN}Nvidia i386 instlallé${ENDCOLOR}"
277 | else
278 | echo -e "{{RED}Multilib non demandé à l'installation${ENDCOLOR}"
279 | fi
280 |
281 | echo "Installation drm-modeset=1"
282 | if [[ -f /etc/modprobe.d/nvidia.conf ]]; then
283 | rm /etc/modprobe.d/nvidia.conf
284 | fi
285 | touch /etc/modprobe.d/nvidia.conf
286 | echo "options nvidia-drm modeset=1" > /etc/modprobe.d/nvidia.conf
287 | echo "${GREEN}Driver Nvidia installé${ENDCOLOR}"
288 | echo $task_ok
289 | sleep 1
290 | ;;
291 | n|N|*)
292 | sleep 0.1
293 | ;;
294 | esac
295 |
296 | case $_cuda in
297 | o|O)
298 | if [[ $_nvidia = "o" ]] || [[ $_nvidia = "O" ]] || [[ $_nvidia = "" ]]; then
299 | echo -e "Installation de Cuda {RED}(Téléchargement 2Go)${ENDCOLOR}, Patientez !!"
300 | apt-get install -y nvidia-cuda-dev nvidia-cuda-toolkit > /dev/null
301 | echo "${GREEN}Cuda installé${ENDCOLOR}"
302 | echo $task_ok
303 | sleep 1
304 | else
305 | echo "${RED}Driver Nvidia non installé${ENDCOLOR}"
306 | fi
307 | sleep 1
308 | ;;
309 | n|N|*)
310 | sleep 0.1
311 | ;;
312 | esac
313 |
314 | case $_envycontrol in
315 | n|N|*)
316 | sleep 0.1
317 | ;;
318 | o|O)
319 | echo "Installation de Envycontrol"
320 | if [[ $_nvidia = "o" ]] || [[ $nvidia = "O" ]]; then
321 | source ./src/envycontrol.sh > /dev/null
322 | echo $task_ok
323 | else
324 | echo "${RED}Driver Nvidia non installé${ENDCOLOR}"
325 | fi
326 | sleep 1
327 | ;;
328 | esac
329 |
330 | case $_mesa in
331 | n|N)
332 | sleep 0.1
333 | ;;
334 | o|O|*)
335 | echo "Installation de Mesa"
336 | apt-get install -y libgl1-mesa-dri mesa-va-drivers mesa-vdpau-drivers mesa-vulkan-drivers vulkan-tools > /dev/null
337 | echo -e "${GREEN}Mesa Vulkan installé${ENDCOLOR}"
338 | if [[ $_multilib = "o" ]] || [[ $_multilib = "O" ]] || [[ $_multilib = "" ]]; then
339 | apt-get install -y libgl1-mesa-dri:i386 mesa-vulkan-drivers:i386 > /dev/null
340 | echo -e "${GREEN}Mesa Vulkan i386 installé${ENDCOLOR}"
341 | fi
342 | echo $task_ok
343 | sleep 1
344 | ;;
345 | esac
346 |
347 | case $_rocm in
348 | o|O)
349 | echo -e "Installation de ROCm ${RED}(Téléchargement 2Go)${ENDCOLOR}"
350 | echo $rootdir
351 | source ./src/rocm.sh
352 | echo $task_ok
353 | ;;
354 | n|N|*)
355 | sleep 0.1
356 | ;;
357 | esac
358 | }
359 |
360 | _init
361 |
--------------------------------------------------------------------------------
/TESTING/src/amd-vulkan.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "Setup: must be run logged as root (su - / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "Installation de Vulkan AMD/Intel
13 | "; sleep 2
14 |
15 | echo "Vérification des dépôts additionnels"; sleep 1
16 | dpkg --add-architecture i386
17 | apt-add-repository -y contrib > /var/log/$LOGNAME.auto-update.txt 2>&1
18 | apt-add-repository -y non-free >> /var/log/$LOGNAME.auto-update.txt 2>&1
19 |
20 | echo "Installation..."
21 | apt install -y libgl1-mesa-dri libgl1-mesa-dri:i386 mesa-vulkan-drivers mesa-vulkan-drivers:i386 vulkan-tools >> /var/log/$LOGNAME.auto-update.txt 2>&1
22 |
23 | echo "
24 | Job done
25 | "; sleep 2
26 |
--------------------------------------------------------------------------------
/TESTING/src/envycontrol.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | if [[ $EUID -ne 0 ]]; then
4 | echo -e "\n---------------------------------------\n"
5 | echo -e "You need to be logged as root (su- / sudo -i)" 1>&2
6 | echo -e "\n---------------------------------------\n"
7 | exit 1
8 | fi
9 |
10 | clear
11 |
12 | echo "Installation de Envycontrol
13 | "; sleep 2
14 |
15 | wget https://github.com/Xdavius/envycontrol/releases/download/3.3/python3-envycontrol_3.3.1-1_all.deb
16 | apt install ./python3-envycontrol_3.3.1-1_all.deb
17 | rm python3-envycontrol_3.3.1-1_all.deb
18 |
19 | echo "
20 | Job done
21 | "; sleep 2
22 |
--------------------------------------------------------------------------------
/TESTING/src/grub:
--------------------------------------------------------------------------------
1 | # If you change this file, run 'update-grub' afterwards to update
2 | # /boot/grub/grub.cfg.
3 | # For full documentation of the options in this file, see:
4 | # info -f grub -n 'Simple configuration'
5 |
6 | GRUB_DEFAULT=0
7 | GRUB_TIMEOUT=5
8 | GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
9 | GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
10 | GRUB_CMDLINE_LINUX=""
11 |
12 | # If your computer has multiple operating systems installed, then you
13 | # probably want to run os-prober. However, if your computer is a host
14 | # for guest OSes installed via LVM or raw disk devices, running
15 | # os-prober can cause damage to those guest OSes as it mounts
16 | # filesystems to look for things.
17 | #GRUB_DISABLE_OS_PROBER=false
18 |
19 | # Uncomment to enable BadRAM filtering, modify to suit your needs
20 | # This works with Linux (no patch required) and with any kernel that obtains
21 | # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
22 | #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
23 |
24 | # Uncomment to disable graphical terminal
25 | #GRUB_TERMINAL=console
26 |
27 | # The resolution used on graphical terminal
28 | # note that you can use only modes which your graphic card supports via VBE
29 | # you can see them in real GRUB with the command `vbeinfo'
30 | #GRUB_GFXMODE=640x480
31 |
32 | # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
33 | #GRUB_DISABLE_LINUX_UUID=true
34 |
35 | # Uncomment to disable generation of recovery mode menu entries
36 | #GRUB_DISABLE_RECOVERY="true"
37 |
38 | # Uncomment to get a beep at grub start
39 | #GRUB_INIT_TUNE="480 440 1"
40 |
--------------------------------------------------------------------------------
/TESTING/src/install-sid.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "Setup: must be run logged as root (su - / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "Installation des repos Sid en pin 101 pour Debian Testing
13 | " ; sleep 2
14 |
15 | if [ ! -f /etc/apt/preferences.d/testing ]
16 | then
17 | echo "Package : *" > /etc/apt/preferences.d/testing
18 | echo "Pin : release a=testing" >> /etc/apt/preferences.d/testing
19 | echo "Pin-Priority : 990" >> /etc/apt/preferences.d/testing
20 | else
21 | echo "Le fichier /etc/apt/preferences.d/testing existe déjà !!"
22 | fi
23 |
24 | if [ ! -f /etc/apt/sources.list.d/sid.list ]
25 | then
26 | echo "deb http://deb.debian.org/debian/ sid main contrib non-free-firmware non-free" >> /etc/apt/sources.list.d/sid.list
27 | else
28 | echo "Le fichier /etc/apt/sources.list.d/sid.list existe déjà !!"
29 | fi
30 |
31 | if [ ! -f /etc/apt/preferences.d/sid ]
32 | then
33 | echo "Package : *" > /etc/apt/preferences.d/sid
34 | echo "Pin : release a=unstable" >> /etc/apt/preferences.d/sid
35 | echo "Pin-Priority : 101" >> /etc/apt/preferences.d/sid
36 | else
37 | echo "Le fichier /etc/apt/preferences.d/sid existe déjà !!"
38 | fi
39 |
40 | echo "Rafraichissemnt des dépôts"; sleep 1
41 | apt update > /var/log/$LOGNAME.auto-update.txt 2>&1
42 |
43 | echo "
44 | Job done
45 | "; sleep 2
46 |
--------------------------------------------------------------------------------
/TESTING/src/keyring/rocm-keyring.gpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Xdavius/postinstall-debian/598fc8be9e0962295c6a3df5d9576735907343e7/TESTING/src/keyring/rocm-keyring.gpg
--------------------------------------------------------------------------------
/TESTING/src/nvidia-cuda.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "You need to be logged as root (su- / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "Installation des drivers Nvidia Cuda LTS (dépôt Nvidia)
13 | "; sleep 2
14 |
15 | echo "*** BUG DEBIAN 12 LIVE ISOS :
16 |
17 | echo "Nettoyage du système...
18 | "; sleep 2
19 |
20 | apt autopurge -y cuda-keyring nvidia-driver nvidia-settings nvidia-driver-libs:i386 cuda nvidia-gds mesa-vulkan-drivers mesa-vulkan-drivers:i386 cuda-* nvidia-* libnvidia* > /var/log/$LOGNAME.auto-update.txt 2>&1
21 | rm /etc/apt/sources.list.d/cuda*.list
22 |
23 | echo "Préparation des dépendances...
24 | "; sleep 2
25 |
26 | apt-get install -y software-properties-common >> /var/log/$LOGNAME.auto-update.txt 2>&1
27 | dpkg --add-architecture i386 >> /var/log/$LOGNAME.auto-update.txt 2>&1
28 | add-apt-repository -y contrib >> /var/log/$LOGNAME.auto-update.txt 2>&1
29 | add-apt-repository -y non-free >> /var/log/$LOGNAME.auto-update.txt 2>&1
30 |
31 | apt install -y linux-headers-amd64 build-essential dkms firmware-misc-nonfree pkg-config libglvnd-dev wget >> /var/log/$LOGNAME.auto-update.txt 2>&1
32 |
33 | echo "
34 | Installation du driver Nvidia LTS Cuda FROM Nvidia, Vulkan + Lib32
35 |
36 | OPERATION TRÈS LONGUE. NE PAS FERMER LA FENÊTRE !!!!
37 | "; sleep 2
38 |
39 | echo "Préparation et ajout du dépôt..."
40 | wget https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/cuda-keyring_1.1-1_all.deb
41 | dpkg -i cuda-keyring_1.1-1_all.deb
42 | rm cuda-keyring_1.1-1_all.deb
43 |
44 | echo "Ajout compatibilité Testing/Sid..."
45 | wget http://ftp.de.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb
46 | dpkg -i libtinfo5_6.4-4_amd64.deb
47 | rm libtinfo5_6.4-4_amd64.deb
48 |
49 | echo "Workarround des conneries Nvidia..."
50 | #apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/3bf863cc.pub
51 | #cp /etc/apt/trusted.gpg /usr/share/keyrings/cuda-archive-keyring.gpg
52 | #rm /etc/apt/trusted.gpg
53 |
54 | rm /etc/apt/sources.list.d/cuda-debian11-x86_64.list
55 | echo "deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ /" > /etc/apt/sources.list.d/cuda-debian12-x86_64.list
56 |
57 | echo "Rafraichissement des dépôts..."
58 | apt update >> /var/log/$LOGNAME.auto-update.txt 2>&1
59 |
60 | echo "Mise à niveau du système..."
61 | apt full-upgrade -y >> /var/log/$LOGNAME.auto-update.txt 2>&1
62 |
63 | echo "Installation... (LONG !)"
64 | mkdir -p /var/run/nvpd/
65 | echo "Installation du driver vidéo. Patientez..."
66 | apt install -y cuda-drivers nvidia-driver nvidia-settings vulkan-tools libglvnd-dev nvidia-driver-libs:i386 >> /var/log/$LOGNAME.auto-update.txt 2>&1
67 | echo "Installation de Cuda... Patientez ENCORE !! (Très long !)"
68 | apt install -y cuda
69 |
70 | echo "
71 | Installation drm-modeset=1
72 | "
73 |
74 | if [[ -f /etc/modprobe.d/nvidia.conf ]]; then
75 | rm /etc/modprobe.d/nvidia.conf
76 | fi
77 | touch /etc/modprobe.d/nvidia.conf
78 | echo "options nvidia-drm modeset=1" > /etc/modprobe.d/nvidia.conf
79 |
80 | echo "
81 | Veuillez REBOOT la machine !!
82 | "
83 |
84 | echo "
85 | Job done
86 | "; sleep 2
87 |
--------------------------------------------------------------------------------
/TESTING/src/rocm.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "Setup: must be run logged as root (su - / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "
13 | Installation de ROCM HIP et OPENCL Runtimes
14 | " ; sleep 2
15 |
16 | localdir=$(pwd)
17 | echo "Copie de la clé du dépot AMD"
18 | cp $localdir/src/keyring/rocm-keyring.gpg /etc/apt/trusted.gpg.d/
19 | sleep 1
20 |
21 | echo "Ajout des dépots rocm et amdgpu"
22 | echo "deb https://repo.radeon.com/amdgpu/latest/ubuntu jammy main" > /etc/apt/sources.list.d/amdgpu.list
23 | echo "deb [arch=amd64] https://repo.radeon.com/rocm/apt/latest jammy main" > /etc/apt/sources.list.d/rocm.list
24 | echo "Package: *
25 | Pin: release o=repo.radeon.com
26 | Pin-Priority: 600" > /etc/apt/preferences.d/repo-radeon-pin-600
27 | sleep 1
28 |
29 | echo "Rafraichissement des dépôts"
30 | apt update > /dev/null 2>&1
31 |
32 | echo "Installation de OPENCL"
33 | apt install -y rocm-opencl-runtime > /dev/null 2>&1
34 |
35 | echo "Installation de HIP. Cela peut être TRES long ! (2Go)"
36 | apt install -y rocm-hip-runtime
37 |
38 | echo "Ajout de l'utilisateur aux groupes Video et Render"
39 | usermod -aG video,render $(who | grep tty | cut -d " " -f 1) > /dev/null 2>&1
40 | sleep 1
41 |
42 | echo "
43 | Job done
44 | "; sleep 2
45 |
--------------------------------------------------------------------------------
/TESTING/src/steam.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "You need to be logged as root (su- / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "Installation de Steam
13 | "; sleep 2
14 |
15 | echo "Préparation des dépendances :
16 | "; sleep 2
17 |
18 | apt-get install -y software-properties-common >> /var/log/$LOGNAME.auto-update.txt 2>&1
19 | dpkg --add-architecture i386 > /var/log/$LOGNAME.auto-update.txt 2>&1
20 | add-apt-repository -y contrib >> /var/log/$LOGNAME.auto-update.txt 2>&1
21 | add-apt-repository -y non-free >> /var/log/$LOGNAME.auto-update.txt 2>&1
22 |
23 | echo "Installation... Veuillez patienter
24 | "; sleep 2
25 |
26 | apt install -y steam-installer >> /var/log/$LOGNAME.auto-update.txt 2>&1
27 |
28 | echo "Vous devrez terminer l'installation en exécutant steam-installer dans le menu des jeux
29 | "; sleep 2
30 |
31 | echo "
32 | Job done
33 | "; sleep 2
34 |
--------------------------------------------------------------------------------
/data/add-ppa-debian.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # add-ppa-debian
4 | #
5 | # Usage : sudo ./add-ppa-debian ppa:user/ppa-name
6 | #
7 | # This script is modified by Davius from the original created by Adnan Hozic.
8 | # This utility helps installing repository from Launchpad under Debian
9 | #
10 | # Copyright © 2014 Adnan Hodzic
11 | #
12 | # This program is free software: you can redistribute it and/or modify
13 | # it under the terms of the GNU General Public License as published by
14 | # the Free Software Foundation, either version 3 of the License, or
15 | # (at your option) any later version.
16 | #
17 | # This program is distributed in the hope that it will be useful,
18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 | # GNU General Public License for more details.
21 | #
22 | # You should have received a copy of the GNU General Public License
23 | # along with this program. If not, see .
24 | #
25 |
26 |
27 | # Root checker
28 | if [[ $EUID -ne 0 ]]; then
29 | echo -e "\n---------------------------------------\n"
30 | echo -e "add-apt-repository: must be run as root" 1>&2
31 | echo -e "\n---------------------------------------\n"
32 | exit 1
33 | fi
34 |
35 | # Script need curl
36 | if test -x "$(command -v curl 2>/dev/null)"; then
37 | apt install curl
38 | fi
39 |
40 | # action
41 | if [ $# -eq 1 ]
42 | NM=`uname -a && date`
43 | NAME=`echo $NM | md5sum | cut -f1 -d" "`
44 | then
45 | ppa_name=`echo "$1" | cut -d":" -f2 -s`
46 | if [ -z "$ppa_name" ]
47 | then
48 | echo -e "\n------------------------------------------\n"
49 | echo -e "PPA name parameter missing!\n"
50 | echo -e "Correct syntax:"
51 | echo -e "sudo add-apt-repository ppa:user/ppa-name"
52 | echo -e "\n------------------------------------------\n"
53 | else
54 |
55 | # validate PPA existance
56 | ppa_usr=`echo $ppa_name | grep -oE "[^:]+$" | cut -d':' -f1 | cut -d'/' -f1`
57 | ppa_pkg=`echo $ppa_name | grep -oE "[^/]+$"`
58 |
59 | status=$(curl -s --head -w %{http_code} https://launchpad.net/~$ppa_usr/+archive/ubuntu/$ppa_pkg -o /dev/null)
60 |
61 | if [ $status == "200" ]
62 | then
63 | echo -e "\n-----------------------------------\n"
64 | echo -e "Adding \"$ppa_name\" PPA ... "
65 | echo -e "\n-----------------------------------\n"
66 | else
67 | echo -e "\n---------------------------------------------\n"
68 | echo -e "PPA not found!\n"
69 | echo -e "Check spelling? \"ppa:$ppa_name"\"
70 | echo -e "\n---------------------------------------------\n"
71 |
72 | exit 1
73 | fi
74 |
75 | # /etc/apt/sources.d/ppa_name.list file creation
76 | ppa_d_name=`echo $ppa_name | grep -oE "[^/]+$"`
77 | ppd_d=/etc/apt/sources.list.d/$ppa_usr-$ppa_d_name.list
78 | touch $ppd_d
79 |
80 | # detect codename
81 |
82 | if [ "$(lsb_release -cs)" == "bullseye" ];
83 | then
84 | codename=focal
85 |
86 | elif [ "$(lsb_release -cs)" == "bookworm" ];
87 | then
88 | codename=jammy
89 |
90 | elif [ "$(lsb_release -cs)" == "stable" ];
91 | then
92 | codename=jammy
93 |
94 | elif [ "$(lsb_release -cs)" == "testing" ];
95 | then
96 | codename=jammy
97 |
98 | elif [ "$(lsb_release -cs)" == "trixie" ];
99 | then
100 | codename=jammy
101 |
102 | elif [ "$(lsb_release -cs)" == "faye" ];
103 | then
104 | codename=jammy
105 |
106 | elif [ "$(lsb_release -cs)" == "sid" ];
107 | then
108 | codename=jammy
109 |
110 | else
111 | echo "Unsupported Debian version \(>= Wheezy only\)"
112 | exit 1
113 | fi
114 |
115 | # Add PPA
116 | echo "$ppa_name"
117 | echo "deb [trusted=yes] https://ppa.launchpadcontent.net/$ppa_name/ubuntu $codename main" > $ppd_d
118 | apt-get update >> /dev/null 2> /tmp/${NAME}_apt_add_key.txt
119 | key=`cat /tmp/${NAME}_apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3`
120 | apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key
121 | rm -rf /tmp/${NAME}_apt_add_key.txt
122 | mv /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d/$ppa_usr-$ppa_d_name.gpg
123 |
124 | # print result
125 | echo -e "\n------------------------------------------------------------"
126 | echo -e "\nPPA \"$ppa_name\" added: $ppd_d"
127 | echo -e "\n------------------------------------------------------------"
128 |
129 | fi
130 |
131 | else
132 | echo "Utility to add PPA repositories in your debian machine"
133 | echo "$0 ppa:user/ppa-name"
134 | fi
135 |
136 | echo "
137 | Job done
138 | "; sleep 2
139 |
--------------------------------------------------------------------------------
/data/amd-vulkan.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "Setup: must be run logged as root (su - / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "Installation de Vulkan AMD/Intel
13 | "; sleep 2
14 |
15 | echo "Vérification des dépôts additionnels"; sleep 1
16 |
17 | apt-get install -y software-properties-common >> /var/log/$LOGNAME.auto-update.txt 2>&1
18 | dpkg --add-architecture i386
19 | apt-add-repository -y contrib > /var/log/$LOGNAME.auto-update.txt 2>&1
20 | apt-add-repository -y non-free >> /var/log/$LOGNAME.auto-update.txt 2>&1
21 |
22 | echo "Installation..."
23 | apt install -y libgl1-mesa-dri libgl1-mesa-dri:i386 mesa-vulkan-drivers mesa-vulkan-drivers:i386 vulkan-tools >> /var/log/$LOGNAME.auto-update.txt 2>&1
24 |
25 | echo "
26 | Job done
27 | "; sleep 2
28 |
--------------------------------------------------------------------------------
/data/deb-get.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "You need to be logged as root (su- / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "Job start : Installation de deb-get
13 | "; sleep 2
14 |
15 | apt-get install -y curl lsb-release wget
16 | curl -sL https://raw.githubusercontent.com/wimpysworld/deb-get/main/deb-get | bash -s install deb-get
17 |
18 | echo "
19 | Job done
20 | "; sleep 2
21 |
--------------------------------------------------------------------------------
/data/discord.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "You need to be logged as root (su- / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "Installation de Discord
13 | "; sleep 2 | tee /var/log/$LOGNAME.auto-update.txt 2>&1
14 |
15 | echo "Installation de la clé du dépôt"
16 |
17 | apt-get install -y gpg >> /var/log/$LOGNAME.auto-update.txt 2>&1
18 |
19 | mkdir -p /root/.gnupg
20 |
21 | gpg --no-default-keyring --keyring=/usr/share/keyrings/javinator9889-ppa-keyring.gpg --keyserver keyserver.ubuntu.com --recv-keys A2A43BD5139A4173 > /var/log/$LOGNAME.auto-update.txt 2>&1
22 |
23 | echo "Ajout du dépot"
24 | echo "deb [arch=amd64 signed-by=/usr/share/keyrings/javinator9889-ppa-keyring.gpg] https://ppa.javinator9889.com all main" | tee /etc/apt/sources.list.d/javinator9889-ppa.list >> /var/log/$LOGNAME.auto-update.txt 2>&1
25 |
26 | echo "Rafraîchissement des dépôts"
27 | apt update -y >> /var/log/$LOGNAME.auto-update.txt 2>&1
28 |
29 | echo "Installation de Discord"
30 | apt-get install -y discord >> /var/log/$LOGNAME.auto-update.txt 2>&1
31 |
32 | echo "
33 | Job done
34 | "; sleep 2
35 |
--------------------------------------------------------------------------------
/data/install-sid.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "Setup: must be run logged as root (su - / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "Installation des repos Sid en pin 10 pour Debian Testing
13 | " ; sleep 2
14 |
15 | if [ ! -f /etc/apt/sources.list.d/sid.list ]
16 | then
17 | echo "deb http://deb.debian.org/debian/ sid main contrib non-free-firmware non-free" >> /etc/apt/sources.list.d/sid.list
18 | else
19 | echo "Le fichier /etc/apt/sources.list.d/sid.list existe déjà !!"
20 | fi
21 |
22 | if [ ! -f /etc/apt/preferences.d/sid ]
23 | then
24 | echo "Package : *" > /etc/apt/preferences.d/sid
25 | echo "Pin : release a=unstable" >> /etc/apt/preferences.d/sid
26 | echo "Pin-Priority : 10" >> /etc/apt/preferences.d/sid
27 | else
28 | echo "Le fichier /etc/apt/preferences.d/sid existe déjà !!"
29 | fi
30 |
31 | echo "Rafraichissemnt des dépôts"; sleep 1
32 | apt update > /var/log/$LOGNAME.auto-update.txt 2>&1
33 |
34 | echo "
35 | Job done
36 | "; sleep 2
37 |
--------------------------------------------------------------------------------
/data/keyring/rocm-keyring.gpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Xdavius/postinstall-debian/598fc8be9e0962295c6a3df5d9576735907343e7/data/keyring/rocm-keyring.gpg
--------------------------------------------------------------------------------
/data/lutris-latest.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "You need to be logged as root (su- / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | echo "Job start : Installing Lutris Latest
12 | " ; sleep 2
13 |
14 | apt-get install -y gpg
15 | dpkg --add-architecture i386
16 |
17 | echo "Ajout du dépôt lutris.list"
18 | echo "deb [signed-by=/etc/apt/keyrings/lutris.gpg] https://download.opensuse.org/repositories/home:/strycore/Debian_12/ ./" | sudo tee /etc/apt/sources.list.d/lutris.list > /dev/null
19 |
20 | echo "Installation de la clé GPG"
21 | wget -q -O- https://download.opensuse.org/repositories/home:/strycore/Debian_12/Release.key | gpg --dearmor | sudo tee /etc/apt/keyrings/lutris.gpg > /dev/null
22 |
23 | echo "Rafraichissement des dépôts"
24 | apt update > /var/log/$LOGNAME.auto-update.txt 2>&1
25 |
26 | echo "Installation de Lutris"
27 | apt install -y wine32 >> /var/log/$LOGNAME.auto-update.txt 2>&1
28 | apt install -y python3-gi-cairo >> /var/log/$LOGNAME.auto-update.txt 2>&1
29 | apt install -y lutris >> /var/log/$LOGNAME.auto-update.txt 2>&1
30 |
31 | echo "
32 | Job done
33 | "; sleep 2
34 |
--------------------------------------------------------------------------------
/data/mesa-kisak-fresh.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "Setup: must be run logged as root (su - / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "Installation de mesa-kisak-fresh
13 | "; sleep 2
14 |
15 | echo "deb https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu jammy main" > /etc/apt/sources.list.d/mesa-kisak-fresh.list && \
16 | apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F63F0F2B90935439 && \
17 | mv /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d/mesa-kisak-fresh.gpg
18 |
19 | echo "Rafraichissement des dépôts"; sleep 1
20 | apt-get update > /var/log/$LOGNAME.auto-update.txt 2>&1
21 |
22 | echo "Mise a niveau du système"; sleep 1
23 | apt-get full-upgrade -y >> /var/log/$LOGNAME.auto-update.txt 2>&1
24 |
25 | echo "
26 | Job done
27 | "; sleep 2
28 |
--------------------------------------------------------------------------------
/data/nvidia-rollback.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "You need to be logged as root (su- / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "Job start : Uninstalling Nvidia Drivers
13 | "; sleep 2
14 |
15 | echo "Désinstallation des clés"
16 | apt autopurge -y cuda-keyring nvidia-cuda-toolkit nvidia-cuda-dev nvidia-cuda-mps > /var/log/$LOGNAME.auto-update.txt 2>&1
17 | echo "Désinstallation des drivers"
18 | apt autopurge -y nvidia-driver cuda cuda-drivers vulkan-tools firmware-misc-nonfree nvidia-settings libglvnd-dev libvulkan*:i386 nvidia-driver-libs:i386 nvidia-cuda-toolkit nvidia-cuda-dev nvidia-cuda-mps >> /var/log/$LOGNAME.auto-update.txt 2>&1
19 | echo "Purge des traces éventuelles"
20 | apt autopurge -y cuda-* nvidia-* libnvidia* >> /var/log/$LOGNAME.auto-update.txt 2>&1
21 | echo "Suppression des sources résiduelles"
22 | rm /etc/apt/sources.list.d/cuda*.list
23 | if [[ -f /etc/modprobe.d/nvidia.conf ]]; then
24 | rm /etc/modprobe.d/nvidia.conf
25 | fi
26 | echo "Raffraichissement des dépôts"
27 | apt update >> /var/log/$LOGNAME.auto-update.txt 2>&1
28 |
29 | echo "Veuillez REBOOT la machine !!"; sleep 1
30 |
31 | echo "
32 | Job done
33 | "; sleep 2
34 |
--------------------------------------------------------------------------------
/data/nvidia-stable.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "You need to be logged as root (su- / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 |
13 | echo "Installation des Nvidia Drivers Stable
14 |
15 | echo "
16 | Nettoyage du système :
17 | "; sleep 2
18 |
19 | apt autopurge -y nvidia-* libnvidia* cuda-* nvidia*:i386 mesa-vulkan-drivers mesa-vulkan-drivers:i386 > /var/log/$LOGNAME.auto-update.txt 2>&1
20 | rm /etc/apt/sources.list.d/cuda*.list
21 |
22 | echo "
23 | Préparation des dépendances :
24 | "; sleep 2
25 | apt-get install -y software-properties-common >> /var/log/$LOGNAME.auto-update.txt 2>&1
26 | dpkg --add-architecture i386 >> /var/log/$LOGNAME.auto-update.txt 2>&1
27 | add-apt-repository -y contrib >> /var/log/$LOGNAME.auto-update.txt 2>&1
28 | add-apt-repository -y non-free >> /var/log/$LOGNAME.auto-update.txt 2>&1
29 |
30 | apt install -y linux-headers-amd64 build-essential dkms libglvnd-dev pkg-config firmware-misc-nonfree pkg-config wget >> /var/log/$LOGNAME.auto-update.txt 2>&1
31 |
32 | echo "
33 | Installation du driver et de Vulkan + Lib32 :
34 | "; sleep 2
35 |
36 | mkdir -p /var/run/nvpd/
37 | apt install -y nvidia-driver vulkan-tools nvidia-settings >> /var/log/$LOGNAME.auto-update.txt 2>&1
38 | apt install -y vulkan-tools:i386 nvidia-driver-libs:i386 >> /var/log/$LOGNAME.auto-update.txt 2>&1
39 |
40 | #echo "
41 | #Installation de Cuda :
42 | #"; sleep 2
43 |
44 | #apt install -y nvidia-cuda-toolkit nvidia-cuda-dev >> /var/log/$LOGNAME.auto-update.txt 2>&1
45 |
46 | echo "
47 | Installation drm-modeset=1
48 | "
49 | if [[ -f /etc/modprobe.d/nvidia.conf ]]; then
50 | rm /etc/modprobe.d/nvidia.conf
51 | fi
52 | touch /etc/modprobe.d/nvidia.conf
53 | echo "options nvidia-drm modeset=1" > /etc/modprobe.d/nvidia.conf
54 |
55 | echo "Veuillez REBOOT la machine !!"
56 |
57 | echo "
58 | Job done
59 | "; sleep 2
60 |
--------------------------------------------------------------------------------
/data/pacstall.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "You need to be logged as root (su- / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | echo "Installation de pacstall
12 | "; sleep 2
13 |
14 | apt install -y curl
15 | bash -c "$(curl -fsSL https://pacstall.dev/q/install)"
16 |
17 | echo "
18 | Job done
19 | "; sleep 2
20 |
--------------------------------------------------------------------------------
/data/rocm.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "Setup: must be run logged as root (su - / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "
13 | Installation de ROCM HIP et OPENCL Runtimes
14 | " ; sleep 2
15 |
16 | localdir=$(pwd)
17 | echo "Copie de la clé du dépot AMD"
18 | cp $localdir/data/keyring/rocm-keyring.gpg /etc/apt/trusted.gpg.d/
19 | sleep 1
20 |
21 | echo "Ajout des dépots rocm et amdgpu"
22 | echo "deb https://repo.radeon.com/amdgpu/latest/ubuntu jammy main" > /etc/apt/sources.list.d/amdgpu.list
23 | echo "deb [arch=amd64] https://repo.radeon.com/rocm/apt/latest jammy main" > /etc/apt/sources.list.d/rocm.list
24 | echo "Package: *
25 | Pin: release o=repo.radeon.com
26 | Pin-Priority: 600" > /etc/apt/preferences.d/repo-radeon-pin-600
27 | sleep 1
28 |
29 | echo "Rafraichissement des dépôts"
30 | apt update > /var/log/$LOGNAME.auto-update.txt 2>&1
31 |
32 | echo "Installation de OPENCL"
33 | apt install -y rocm-opencl-runtime >> /var/log/$LOGNAME.auto-update.txt 2>&1
34 |
35 | echo "Installation de HIP. Cela peut être TRES long ! (2Go)"
36 | apt install -y rocm-hip-runtime
37 |
38 | echo "Ajout de l'utilisateur aux groupes Video et Render"
39 | usermod -aG video,render $(who | grep tty | cut -d " " -f 1)
40 | sleep 1
41 |
42 | echo "
43 | Job done
44 | "; sleep 2
45 |
--------------------------------------------------------------------------------
/data/steam.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "You need to be logged as root (su- / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "Installation de Steam
13 | "; sleep 2
14 |
15 | echo "Préparation des dépendances :
16 | "; sleep 2
17 |
18 | apt-get install -y software-properties-common > /var/log/$LOGNAME.auto-update.txt 2>&1
19 | dpkg --add-architecture i386 >> /var/log/$LOGNAME.auto-update.txt 2>&1
20 | add-apt-repository -y contrib >> /var/log/$LOGNAME.auto-update.txt 2>&1
21 | add-apt-repository -y non-free >> /var/log/$LOGNAME.auto-update.txt 2>&1
22 |
23 | echo "Installation... Veuillez patienter
24 | "; sleep 2
25 |
26 | apt install -y steam-installer >> /var/log/$LOGNAME.auto-update.txt 2>&1
27 |
28 | echo "Vous devrez terminer l'installation en exécutant steam-installer dans le menu des jeux
29 | "; sleep 2
30 |
31 | echo "
32 | Job done
33 | "; sleep 2
34 |
--------------------------------------------------------------------------------
/data/wine-staging.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "You need to be logged as root (su- / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | echo "Installation de wine-staging
12 | "; sleep 2
13 |
14 | echo "Verification du multilib"
15 | dpkg --add-architecture i386
16 |
17 | echo "Installation du dépôt"
18 | wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
19 | wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
20 |
21 | echo "Rafraichissement des dépôts"
22 | apt update > /var/log/$LOGNAME.auto-update.txt 2>&1
23 |
24 | echo "Installation..."
25 | apt install -y --install-recommends winehq-staging >> /var/log/$LOGNAME.auto-update.txt 2>&1
26 |
27 | echo "
28 | Job done
29 | "; sleep 2
30 |
--------------------------------------------------------------------------------
/extra/backports.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "Setup: must be run logged as root (su - / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "Configuration des Backports
13 | "; sleep 2
14 |
15 | if [ ! -x /etc/apt/sources.list.d/backports.list ]
16 | then
17 | echo "deb http://deb.debian.org/debian/ stable-backports main contrib non-free-firmware non-free" > /etc/apt/sources.list.d/backports.list
18 | #echo "Package: *
19 | #Pin: release a=stable-backports
20 | #Pin-priority: 999" > /etc/apt/preferences.d/backports
21 | else
22 | echo "Le fichier /etc/apt/sources.list.d/backports.list existe déjà !!"
23 | fi
24 |
25 | echo "Rafraichissement des dépôts"
26 | apt update -y > /var/log/$LOGNAME.auto-update.txt 2>&1
27 |
28 | echo "Installation de synaptic"
29 | apt install -y synaptic > /var/log/$LOGNAME.auto-update.txt 2>&1
30 |
31 | echo "
32 | Job done
33 | "; sleep 2
34 |
--------------------------------------------------------------------------------
/extra/envycontrol.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | if [[ $EUID -ne 0 ]]; then
4 | echo -e "\n---------------------------------------\n"
5 | echo -e "You need to be logged as root (su- / sudo -i)" 1>&2
6 | echo -e "\n---------------------------------------\n"
7 | exit 1
8 | fi
9 |
10 | clear
11 |
12 | echo "Installation de Envycontrol
13 | "; sleep 2
14 |
15 | wget https://github.com/Xdavius/envycontrol/releases/download/3.3/python3-envycontrol_3.3.1-1_all.deb
16 | apt install ./python3-envycontrol_3.3.1-1_all.deb
17 | rm python3-envycontrol_3.3.1-1_all.deb
18 |
19 | echo "
20 | Job done
21 | "; sleep 2
22 |
--------------------------------------------------------------------------------
/extra/nvidia-cuda.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "You need to be logged as root (su- / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "Installation des drivers Nvidia Cuda LTS (dépôt Nvidia)
13 | "; sleep 2
14 |
15 | echo "Nettoyage du système...
16 | "; sleep 2
17 |
18 | apt autopurge -y cuda-keyring nvidia-driver nvidia-settings nvidia-driver-libs:i386 cuda nvidia-gds mesa-vulkan-drivers mesa-vulkan-drivers:i386 cuda-* nvidia-* libnvidia* >> /var/log/$LOGNAME.auto-update.txt 2>&1
19 | rm /etc/apt/sources.list.d/cuda*.list
20 |
21 | echo "Préparation des dépendances...
22 | "; sleep 2
23 |
24 | apt-get install -y software-properties-common > /var/log/$LOGNAME.auto-update.txt 2>&1
25 | dpkg --add-architecture i386 >> /var/log/$LOGNAME.auto-update.txt 2>&1
26 | add-apt-repository -y contrib >> /var/log/$LOGNAME.auto-update.txt 2>&1
27 | add-apt-repository -y non-free >> /var/log/$LOGNAME.auto-update.txt 2>&1
28 |
29 | apt install -y linux-headers-amd64 build-essential dkms firmware-misc-nonfree pkg-config libglvnd-dev wget >> /var/log/$LOGNAME.auto-update.txt 2>&1
30 |
31 | echo "
32 | Installation du driver Nvidia LTS Cuda FROM Nvidia, Vulkan + Lib32
33 |
34 | OPERATION TRÈS LONGUE. NE PAS FERMER LA FENÊTRE !!!!
35 | "; sleep 2
36 |
37 | echo "Préparation et ajout du dépôt..."
38 | wget https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/cuda-keyring_1.1-1_all.deb
39 | dpkg -i cuda-keyring_1.1-1_all.deb
40 | rm cuda-keyring_1.1-1_all.deb
41 |
42 | echo "Ajout compatibilité Testing/Sid..."
43 | wget http://ftp.de.debian.org/debian/pool/main/n/ncurses/libtinfo5_6.4-4_amd64.deb
44 | dpkg -i libtinfo5_6.4-4_amd64.deb
45 | rm libtinfo5_6.4-4_amd64.deb
46 |
47 | #echo "Workarround des conneries Nvidia..."
48 | #apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/3bf863cc.pub
49 | #cp /etc/apt/trusted.gpg /usr/share/keyrings/cuda-archive-keyring.gpg
50 | #rm /etc/apt/trusted.gpg
51 |
52 | rm /etc/apt/sources.list.d/cuda-debian11-x86_64.list
53 | echo "deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ /" > /etc/apt/sources.list.d/cuda-debian12-x86_64.list
54 |
55 | echo "Rafraichissement des dépôts..."
56 | apt update >> /var/log/$LOGNAME.auto-update.txt 2>&1
57 |
58 | echo "Mise à niveau du système..."
59 | apt full-upgrade -y >> /var/log/$LOGNAME.auto-update.txt 2>&1
60 |
61 | echo "Installation... (LONG !)"
62 | mkdir -p /var/run/nvpd/
63 | echo "Installation du driver vidéo. Patientez..."
64 | apt install -y cuda-drivers nvidia-driver libnvidia-ngx1 nvidia-settings vulkan-tools libglvnd-dev nvidia-driver-libs:i386 >> /var/log/$LOGNAME.auto-update.txt 2>&1
65 |
66 | #echo "Installation de Cuda... Patientez ENCORE !! (Très long !)"
67 | #apt install -y cuda
68 |
69 | echo "
70 | Installation drm-modeset=1
71 | "
72 |
73 | if [[ -f /etc/modprobe.d/nvidia.conf ]]; then
74 | rm /etc/modprobe.d/nvidia.conf
75 | fi
76 | touch /etc/modprobe.d/nvidia.conf
77 | echo "options nvidia-drm modeset=1" > /etc/modprobe.d/nvidia.conf
78 |
79 | echo "
80 | Veuillez REBOOT la machine !!
81 | "
82 |
83 | echo "
84 | Job done
85 | "; sleep 2
86 |
--------------------------------------------------------------------------------
/extra/nvidia-experimental.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "You need to be logged as root (su- / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "Job start : Installing Nvidia Experimental Drivers
13 | "; sleep 2
14 |
15 | echo "Nettoyage du système
16 | "; sleep 2
17 |
18 | apt autopurge -y nvidia-driver nvidia-settings nvidia-driver-libs:i386 cuda nvidia-gds mesa-vulkan-drivers mesa-vulkan-drivers:i386 nvidia-* nvidia*:i386 cuda-* > /var/log/$LOGNAME.auto-update.txt 2>&1
19 |
20 | if [ ! -x /etc/apt/sources.list.d/experimental.list ]
21 | then
22 | echo "deb http://deb.debian.org/debian experimental non-free-firmware contrib non-free main" > /etc/apt/sources.list.d/experimental.list
23 | fi
24 | apt update -y >> /var/log/$LOGNAME.auto-update.txt 2>&1
25 |
26 | echo "
27 | Préparation des dépendances
28 | "
29 | sleep 2
30 | apt-get install -y software-properties-common >> /var/log/$LOGNAME.auto-update.txt 2>&1
31 | dpkg --add-architecture i386 >> /var/log/$LOGNAME.auto-update.txt 2>&1
32 | add-apt-repository -y contrib >> /var/log/$LOGNAME.auto-update.txt 2>&1
33 | add-apt-repository -y non-free >> /var/log/$LOGNAME.auto-update.txt 2>&1
34 |
35 |
36 | apt install -y linux-headers-amd64 build-essential dkms libglvnd-dev firmware-misc-nonfree pkg-config wget >> /var/log/$LOGNAME.auto-update.txt 2>&1
37 |
38 | echo "Installation du driver et de Vulkan + Lib32 (LONG !)
39 | "; sleep 2
40 |
41 | export DEBIAN_FRONTEND=noninteractive
42 | apt update >> /var/log/$LOGNAME.auto-update.txt 2>&1
43 | apt-mark unhold dkms
44 | mkdir -p /var/run/nvpd/
45 | apt install -y -t sid dkms
46 | apt install -y -t experimental nvidia-driver vulkan-tools firmware-misc-nonfree nvidia-settings libglvnd-dev
47 | apt install -y -t experimental nvidia-driver-libs:i386
48 |
49 | #echo "Installation de Cuda (LONG !)
50 | #"; sleep 2
51 |
52 | #apt install -y -t experimental nvidia-cuda-toolkit
53 |
54 | echo "
55 | Installation drm-modeset=1
56 | "
57 |
58 | if [[ -f /etc/modprobe.d/nvidia.conf ]]; then
59 | rm /etc/modprobe.d/nvidia.conf
60 | fi
61 | touch /etc/modprobe.d/nvidia.conf
62 | echo "options nvidia-drm modeset=1" > /etc/modprobe.d/nvidia.conf
63 |
64 | echo "SI VOUS UTILISEZ SECUREBOOT, VEUILLEZ RELANCER LA PRECEDURE !
65 |
66 | Veuillez REBOOT la machine !!
67 | "; sleep 2
68 |
69 | echo "
70 | Job done
71 | "; sleep 2
72 |
--------------------------------------------------------------------------------
/extra/nvidia-testing-on-stable.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "You need to be logged as root (su- / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "Installation des drivers Debian Nvidia Testing Driver + Cuda
13 | "; sleep 2
14 |
15 | echo "Nettoyage du système
16 | "; sleep 2
17 |
18 | apt autopurge -y nvidia-driver nvidia-settings nvidia-driver-libs:i386 cuda cuda-* nvidia-gds mesa-vulkan-drivers mesa-vulkan-drivers:i386 nvidia-* nvidia*:i386 > /var/log/$LOGNAME.auto-update.txt 2>&1
19 |
20 |
21 | echo "Préparation des dépendances
22 | "; sleep 2
23 |
24 | apt-get install -y software-properties-common >> /var/log/$LOGNAME.auto-update.txt 2>&1
25 | dpkg --add-architecture i386 >> /var/log/$LOGNAME.auto-update.txt 2>&1
26 | add-apt-repository -y contrib >> /var/log/$LOGNAME.auto-update.txt 2>&1
27 | add-apt-repository -y non-free >> /var/log/$LOGNAME.auto-update.txt 2>&1
28 |
29 | apt install -y linux-headers-amd64 build-essential dkms libglvnd-dev firmware-misc-nonfree pkg-config wget >> /var/log/$LOGNAME.auto-update.txt 2>&1
30 |
31 | echo "Ajout du dépôt testing
32 | "; sleep 2
33 |
34 | if [ ! -x /etc/apt/sources.list.d/testing.list ]
35 | then
36 | echo "deb http://deb.debian.org/debian/ testing main contrib non-free-firmware non-free" >> /etc/apt/sources.list.d/testing.list
37 | else
38 | echo "Le fichier /etc/apt/sources.list.d/testing.list existe déjà !!"
39 | fi
40 |
41 | if [ ! -x /etc/apt/preferences.d/testing ]
42 | then
43 | echo "Package : *" > /etc/apt/preferences.d/testing
44 | echo "Pin : release a=testing" >> /etc/apt/preferences.d/testing
45 | echo "Pin-Priority : -1" >> /etc/apt/preferences.d/testing
46 | else
47 | echo "Le fichier /etc/apt/preferences.d/testing existe déjà !!"
48 | fi
49 |
50 | echo "Rafraichissement des dépôts
51 | "; sleep 2
52 |
53 | dpkg --add-architecture i386 >> /var/log/$LOGNAME.auto-update.txt 2>&1
54 | apt update >> /var/log/$LOGNAME.auto-update.txt 2>&1
55 |
56 | echo "Installation du driver et de Vulkan + Lib32 (LONG !)
57 | "; sleep 2
58 |
59 | export DEBIAN_FRONTEND=noninteractive
60 | apt-mark unhold dkms
61 | mkdir -p /var/run/nvpd/
62 | apt install -y -t testing dkms nvidia-driver vulkan-tools libglvnd-dev firmware-misc-nonfree linux-headers-amd64 linux-image-amd64 >> /var/log/$LOGNAME.auto-update.txt 2>&1
63 | apt install -y -t testing nvidia-driver-libs:i386 >> /var/log/$LOGNAME.auto-update.txt 2>&1
64 |
65 | #echo "Installation de Cuda (LONG !)
66 | #"; sleep 2
67 |
68 | #apt install -y -t testing nvidia-cuda-toolkit nvidia-cuda-dev >> /var/log/$LOGNAME.auto-update.txt 2>&1
69 |
70 | echo "
71 | Installation drm-modeset=1
72 | "
73 |
74 | if [[ -f /etc/modprobe.d/nvidia.conf ]]; then
75 | rm /etc/modprobe.d/nvidia.conf
76 | fi
77 | touch /etc/modprobe.d/nvidia.conf
78 | echo "options nvidia-drm modeset=1" > /etc/modprobe.d/nvidia.conf
79 |
80 | echo "SI VOUS UTILISEZ SECUREBOOT, VEUILLEZ RELANNCER LA PROCEDURE !
81 |
82 | Veuillez REBOOT la machine !!
83 | "; sleep 2
84 |
85 | echo "
86 | Job done
87 | "; sleep 2
88 |
--------------------------------------------------------------------------------
/extra/update-firmware.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Root checker
4 | if [[ $EUID -ne 0 ]]; then
5 | echo -e "\n---------------------------------------\n"
6 | echo -e "You need to be logged as root (su- / sudo -i)" 1>&2
7 | echo -e "\n---------------------------------------\n"
8 | exit 1
9 | fi
10 |
11 | clear
12 | echo "Mise à jour des linux-firmware vers la dernière version git
13 | "; sleep 2
14 |
15 | echo "installation des dépendances...
16 | "; sleep 2
17 | apt-get install wget tar gzip > /var/log/$LOGNAME.auto-update.txt 2>&1
18 |
19 | echo "Téléchargement en cours...
20 | "; sleep 2
21 | wget --no-check-certificate -c https://gitlab.com/kernel-firmware/linux-firmware/-/archive/main/linux-firmware-main.tar.gz -O - | tar -xz
22 |
23 | echo "Installation...
24 | "; sleep 2
25 | cp -rf linux-firmware-main/* /usr/lib/firmware
26 |
27 | echo "Nettoyage...
28 | "; sleep 2
29 | rm -rf linux-firmware-main
30 |
31 | echo "
32 | Veuillez REBOOT la machine !!
33 | "
34 | echo "
35 | Job done
36 | "; sleep 2
37 |
--------------------------------------------------------------------------------
/lang/README.en.md:
--------------------------------------------------------------------------------
1 | # POSTINSTALL-DEBIAN - Easily Configure Debian!
2 |
3 | This tool has been designed to be more user-friendly with Debian Live ISOs and the graphical installer.
4 | Live ISOs are available here:
5 |
6 | https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/
7 |
8 | The ROOT/SUDO password for the live ISOs is: **live**
9 |
10 | **The GUI interface is designed to work with GNOME and KDE. Compatibility for CINNAMON is underway,
11 | and full support for Linux Mint Debian Edition will eventually be provided.**
12 |
13 |
14 | ***Videos on postinstall-debian:***
15 |
16 | [**A post-install debian program in graphics! by Davius**](https://www.youtube.com/watch?v=6h65fzd0yBE)
17 |
18 | [**Debian Installation + Post-installation Script feat Davius**](https://youtu.be/jQMO9XDORp0?si=EZZWUi24OyEwvwQ8)
19 |
20 |
21 | ## BEFORE YOU BEGIN:
22 |
23 |
24 | **It is necessary to have configured SUDO to use the GUI version.**
25 |
26 | IF YOU HAVE INSTALLED DEBIAN FROM A **LIVE ISO**, SUDO IS ALREADY CONFIGURED!
27 |
28 | - Open a terminal, then copy and paste this command:
29 |
30 | su - -c "usermod -aG sudo $(who | grep tty | cut -d " " -f 1)"
31 |
32 | - Enter the **ROOT (Super User)** password to validate the command, then **restart the machine**.
33 |
34 |
35 | ## INSTALLATION:
36 |
37 |
38 | **USING WITH GRAPHICAL INTERFACE (SIMPLIFIED MODE):**
39 |
40 |
41 | The graphical interface is optimized for GNOME and KDE only.
42 |
43 | - Go to the **"Releases"** section and download the software (**postinstall-debian-{VERSION}.zip**)
44 |
45 | - Unzip the zip file, then double click on **"postinstall-debian-gui.run"**
46 |
47 |
48 | **IMPORTANT NOTE!!**
49 |
50 | ***This software depends on YAD. Its installation is performed automatically in a transparent way.***
51 |
52 | ***Bash-completions and curl are automatically installed to bridge the differences between live and online installation.***
53 |
54 | ***If Gnome is detected, the installation and configuration of flatpak will be performed. For KDE, the installation is done in 3 clicks in Discover/Settings.***
55 |
56 | ***The activation of Multilib, Contrib and Non-free is performed at the launch of the GUI to improve the user experience.***
57 |
58 | ***IF YOU DO NOT WISH THIS, USE THE TUI!!***
59 |
60 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
61 |
62 |
63 |
64 | **FOR THOSE WISHING TO USE THE TUI INTERFACE (EXPERT MODE):**
65 |
66 |
67 | You must run the application from a terminal as root:
68 |
69 | - To become root:
70 |
71 | sudo -i (or su -)
72 |
73 | - To run the application:
74 |
75 | bash postinstall-debian-tui
76 |
77 | - Alternatively, you can also launch with sudo:
78 |
79 | sudo bash postinstall-debian-tui
80 |
81 |
82 | ## INSTALLATION WITH SECUREBOOT ACTIVE (TO BE PERFORMED BEFORE ANY OTHER KERNEL OR DRIVER INSTALLATION):
83 |
84 | **For GNOME/KDE:**
85 |
86 | - You can use **POSTINSTALL-DEBIAN-GUI**.
87 |
88 |
89 | ***There is compatibility if you have Zenity installed on your system.***
90 |
91 | **For other DEs:**
92 |
93 | - Use **POSTINSTALL-DEBIAN-TUI**.
94 |
95 | **Instructions and help for Secureboot:**
96 |
97 | - Follow the on-screen instructions. Enter your name when asked, then enter the one-time password.
98 |
99 | **BE CAREFUL WITH QWERTY/AZERTY!** You can use only the letter "t" or "r" or the word "root". This password is only used once.
100 |
101 | - Restart the machine. You will see a blue screen. Press a key within 10 seconds then
102 | choose ENROLL MOK, then CONTINUE, then YES (follow the instructions in English unfortunately) the one-time password will be requested (the one you chose earlier).
103 |
104 | - There is no success notification but the first option will have disappeared, choose REBOOT.
105 |
106 | **ATTENTION!**
107 |
108 | **THE DKMS PACKAGE WILL NEED TO BE PATCHED AND BLOCKED! FOR MIGRATION TO A NEW VERSION OF DKMS OR AN UPGRADE OF DEBIAN, THE PACKAGE WILL NEED TO BE UNBLOCKED AND THE PROCEDURE REPEATED,**
109 |
110 | **USE: "sudo apt-mark unhold dkms"**
111 |
112 | **TO UNBLOCK THE PACKAGE.**
113 |
114 | ## Custom Kernels:
115 |
116 | There are 2 main providers of Gaming Kernels:
117 |
118 | - [**TKG**](https://github.com/Frogging-Family/linux-tkg)
119 | - [**Liquorix**](https://liquorix.net/)
120 |
121 | If you have an NVIDIA graphics card, there may be incompatibilities, and the Nvidia driver may not yet be compatible with these very recent kernels that are continuously updated.
122 |
123 | **I recommend using the TKG kernel with Nvidia, which you'll install yourself, to ensure everything goes smoothly during installation. It will not update automatically and allows you to choose between the LTS branch or the Current branch, or even an intermediate branch. This offers more control and helps avoid breaking your system.**
124 |
125 | If you have an AMD card, Liquorix is easier to set up (one line to copy-paste into the terminal, requires having installed curl).
126 |
127 | Custom Kernels are fully supported with Secure Boot enabled after configuring it with the tool provided by this utility.
128 |
129 | ## Debian Stable Backports Kernels:
130 |
131 | To use backports, you can configure them with one click in the Utilities section.
132 |
133 | To upgrade your kernel with one command:
134 |
135 | sudo apt install -t stable-backports linux-image-amd64 linux-headers-amd64
136 |
137 | Once finished, restart your machine.
138 |
139 | ## Content of the scripts:
140 |
141 | ## SecureBoot:
142 |
143 | - install-sb: Installs the configuration to use Secure Boot transparently. **WARNING** the DKMS package is patched!
144 | **FOR MIGRATION TO A NEW VERSION OF DKMS OR AN UPGRADE OF DEBIAN,**
145 | **YOU WILL NEED TO UNLOCK THE PACKAGE AND REPEAT THE PROCEDURE!**
146 | **USE: sudo apt-mark unhold dkms**
147 |
148 | ## Nvidia:
149 |
150 | - nvidia-stable: Installs the official Debian Stable Nvidia driver **RECOMMENDED**. (Currently: Branch 525)
151 |
152 | - nvidia-cuda: Installs the Nvidia Current Stable driver from the NVIDIA repositories. (Currently: Branch 545)
153 | **NVIDIA RECOMMENDS A LTS KERNEL, MAY WORK WITH CURRENT KERNEL, BUT MAY ALSO BREAK!**
154 |
155 | - nvidia-experimental: Installs the EXPERIMENTAL repository for Debian to have the latest EXPERIMENTAL driver (Currently: Branch 530-dev)
156 | **REQUIRES ACTIVATING THE SID REPOSITORY WITH A PIN OF AT LEAST 10, FOR ADVENTURERS!**
157 | **SECURE BOOT PROCEDURE MUST BE REPEATED IF ACTIVE!**
158 |
159 | - nvidia-testing-on-stable: Installs the FUTURE Nvidia driver for the next Debian Stable release.
160 | **ADDS THE TESTING REPOSITORY WITH A PIN OF 10, FOR TESTERS!**
161 | **MAY REQUIRE A DKMS UPDATE! USE WITH SECURE BOOT WITH CAUTION!**
162 |
163 | - nvidia-rollback: Uninstalls your Nvidia drivers and cleans up!
164 |
165 | ## AMD / Intel:
166 |
167 | - mesa-kisak-fresh: Installs the latest Stable Mesa for AMD/INTEL.
168 |
169 | - amd-vulkan: Installs Vulkan for AMD/INTEL GPUs.
170 |
171 | ## ROCM:
172 | [**Official ROCM page**](https://www.amd.com/fr/graphics/servers-solutions-rocm)
173 |
174 | - rocm: Installs the AMD repository and installs ROCM Opencl and HIP.
175 |
176 | ## Games:
177 |
178 | - steam: Installs the Steam-Installer to proceed with the installation of Steam and its dependencies.
179 |
180 | - lutris-latest: Installs the latest version of Lutris and the official repository.
181 |
182 | - wine-staging: Installs the latest version of Wine along with all necessary dependencies, and the official repository.
183 |
184 | ## Package Managers
185 |
186 | - deb-get: Install deb-get to easily install .deb software external to the Debian repositories (heroic, discord, lutris (github version),
187 | and others), for Debian Stable only.
188 | [**Github deb-get**](https://github.com/wimpysworld/deb-get).
189 |
190 | - pacstall: An alternative to deb-get, allows access to many additional pieces of software and keeps them up to date.
191 | [**Github pacstall**](https://github.com/pacstall/pacstall) / [**Pacstall package list**](https://pacstall.dev/packages?page=0&size=25&sortBy=default&sort=asc&filter=&filterBy=name).
192 |
193 | ## Firmwares:
194 |
195 | - update-firmware: Updates Linux firmwares to their latest GIT versions (Supports very recent hardware like the latest Wifi cards or GPUs).
196 |
197 | ## Backports or Sid:
198 |
199 | - backports: Enables the stable-backports repository. This is activated in Rolling mode. When a new version of Debian is released,
200 | it will not be necessary to reconfigure it.
201 | It is recommended to set your sources.list to Stable branch for optimal use.
202 |
203 | - install-sid: Configures Sid with a Pin of 10, this useful modification
204 |
205 | on Debian **Stable** and **Testing** allows, in case of broken dependencies, for your Debian to fetch only the necessary packages from Sid. [**Explanation of pinning by Debian Facile**](https://debian-facile.org/doc:systeme:apt:pinning).
206 |
207 |
208 | ## ACKNOWLEDGMENTS:
209 |
210 | Thanks to Bazogueur Tobal, Cptcavern, Pandatomikk, Christophe, Cfrancky77, Yellow-bird for the application logo, and the entire GLF Team for their participation and tests on this project!
211 |
212 | **Thanks to all the developers on GitHub who share their work without which this project would never have succeeded!**
213 |
--------------------------------------------------------------------------------
/postinstall-debian-gui:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | function main() {
4 |
5 | if [[ -f /usr/bin/konsole ]]; then
6 | if [[ -f /usr/bin/kdialog ]]; then
7 | password=$( kdialog --password "Entrez votre mot de passe SUDO" )
8 | else
9 | konsole -- -e "sudo apt install -y kdialog"
10 | main
11 | fi
12 | elif [[ -f /usr/bin/gnome-terminal ]]; then
13 | if [[ -f /usr/bin/zenity ]]; then
14 | password=$( zenity --password --text="Entrez votre mot de passe SUDO" )
15 | else
16 | gnome-terminal -x "sudo apt install -y zenity"
17 | main
18 | fi
19 | else
20 | echo "Configuration du script non possible. Installez manuellement zenity (sudo apt install zenity)"
21 | exit 1
22 | fi
23 |
24 | chkroot=$(echo $password | sudo -S whoami)
25 | if [[ "$password" = "" ]]; then
26 | main
27 | exit
28 | elif [[ "$chkroot" != "root" ]]; then
29 | if [[ $DESKTOP_SESSION == "plasma" ]]; then
30 | kdialog --error "Mauvais mot de passe"
31 | exit 1
32 | elif [[ $DESKTOP_SESSION == "plasmawayland" ]]; then
33 | kdialog --error "Mauvais mot de passe"
34 | exit 1
35 | elif [[ $DESKTOP_SESSION == "gnome" ]]; then
36 | zenity --error --text="Mauvais mot de passe"
37 | exit 1
38 | elif [[ -f /usr/bin/zenity ]]; then
39 | zenity --error --text="Mauvais mot de passe"
40 | exit 1
41 | fi
42 | exit
43 | fi
44 |
45 | chmod +x data/*.sh
46 | chmod +x extra/*.sh
47 | chmod +x SECUREBOOT/*.sh
48 |
49 | logo="./source/logo.png"
50 |
51 | install_zenity="echo $password | sudo -S apt install -y zenity"
52 |
53 | if [[ -f /usr/bin/zenity ]]; then
54 | if [[ -f /usr/bin/yad ]]; then
55 | echo "rien à faire"
56 | else
57 | (echo $password | sudo -S apt -y install yad bash-completion curl dbus-x11) | zenity --progress --pulsate --title="Préparation de YAD" --text="Installation de YAD" --auto-close
58 | fi
59 | else
60 | if [[ -f /usr/bin/konsole ]] ; then
61 | konsole -- -e $install_zenity
62 | elif [[ -f /usr/bin/gnome-terminal ]] ; then
63 | gnome-terminal -x $install_zenity
64 | fi
65 | if [[ -f /usr/bin/yad ]]; then
66 | echo "rien à faire"
67 | else
68 | (echo $password | sudo -S apt -y install yad bash-completion curl dbus-x11) | zenity --progress --pulsate --title="Préparation de YAD" --text="Installation de YAD" --auto-close
69 | fi
70 | fi
71 |
72 | (echo $password | sudo -S apt-add-repository -y contrib && \
73 | echo $password | sudo -S apt-add-repository -y non-free && \
74 | echo $password | sudo -S dpkg --add-architecture i386) | yad --center --window-icon="$logo" --progress --pulsate --title "Préparation de système" --progress-text="Vérification des dépôts additionnels" --width 500 --height 100 --no-buttons --auto-close
75 |
76 | if [[ $DESKTOP_SESSION == "gnome" ]]; then
77 | if [[ -f /usr/bin/flatpak ]]; then
78 | echo "Rien à faire."
79 | else
80 | (echo $password | sudo -S apt -y install gnome-software-plugin-flatpak flatpak && \
81 | flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo) | yad --center --window-icon="$logo" --progress --pulsate --title "Préparation du système Gnome" --progress-text="Configuration de Flatpak pour Gnome" --width 500 --height 100 --no-buttons --auto-close
82 | fi
83 | fi
84 |
85 | if [[ -f /usr/bin/konsole ]] ; then
86 | (echo $password | sudo -S apt -y install pipewire-audio) | yad --center --window-icon="$logo" --progress --pulsate --title "Préparation du système..." --progress-text="Installation de pipewire" --width 500 --height 100 --no-buttons --auto-close
87 | fi
88 |
89 | if [[ -f /etc/sysctl.d/80-gamecompatibility.conf ]]; then
90 | echo "vm.max_map_count déjà configuré"
91 | else
92 | echo $password | sudo -S echo "vm.max_map_count = 2147483642" | sudo tee /etc/sysctl.d/80-gamecompatibility.conf && \
93 | echo $password | sudo -S sysctl --system
94 | fi
95 |
96 |
97 |
98 | cp ./source/logo.png /tmp/
99 | echo $password | sudo -S bash -e ./source/menu-gui.sh
100 | }
101 |
102 | function error() {
103 |
104 | case $1 in
105 | kdialog)
106 | kdialog --error "Version de Debian non-supportée. Veuillez utiliser la TUI."
107 | ;;
108 | zenity)
109 | zenity --error --text="Version de Debian non-supportée. Veuillez utiliser la TUI."
110 | ;;
111 | konsole)
112 | konsole -- -e "bash -c $srcdir/source/error.sh"
113 | ;;
114 | gnome-terminal)
115 | gnome-terminal -x "bash -c $srcdir/source/error.sh"
116 | ;;
117 | *)
118 | echo "Version de Debian non-supportée. Veuillez utiliser la TUI"
119 | ;;
120 | esac
121 | exit 1
122 | }
123 |
124 | srcdir=$(pwd)
125 | chmod +x $srcdir/source/*.sh
126 | debian_version="$(cat /etc/os-release | grep VERSION_CODENAME | cut -d '=' -f 2)"
127 |
128 | if [[ -f /usr/bin/kdialog ]]; then
129 | compat="kdialog"
130 | elif [[ -f /usr/bin/zenity ]]; then
131 | compat="zenity"
132 | elif [[ -f /usr/bin/konsole ]]; then
133 | compat="konsole"
134 | elif [[ -f /usr/bin/gnome-terminal ]]; then
135 | compat="gnome-terminal"
136 | fi
137 |
138 | echo "compat : $compat"
139 |
140 | case $debian_version in
141 | bookworm|stable|faye)
142 | main
143 | ;;
144 | *)
145 | error $compat
146 | ;;
147 | esac
148 |
149 |
--------------------------------------------------------------------------------
/postinstall-debian-tui:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ###### ADD SOURCE HERE ######
4 | source ./source/scripts-tui.sh
5 | ######
6 |
7 | # Root checker
8 | function root_check() {
9 | echo "Utilisateur du script : $(whoami)"
10 | if [[ $EUID -ne 0 ]]; then
11 | echo "Accès root interdit."
12 | if [[ -f /usr/bin/sudo ]]; then
13 | echo "Sudo installé"
14 | is_user_sudo=$(sudo -k)
15 | if [[ $is_user_sudo == "" ]] ; then
16 | echo "Sudo configuré pour l'utilisateur."
17 | run_with_sudo
18 | exit 1
19 | else
20 | sudo_help
21 | fi
22 | else
23 | sudo_help
24 | fi
25 | else
26 | menu1
27 | fi
28 | }
29 |
30 | function sudo_help() {
31 |
32 | clear
33 | echo "Le script necessite les droits d'administration pour fonctionner.
34 | "
35 | is_user_sudo=$(sudo -k)
36 | if [[ $is_user_sudo == "" ]] ; then
37 | echo "Votre utilisateur ne fait pas partie du groupe Sudo."
38 | echo "Cette configuration est optionnelle mais recommandée."
39 | read -p "Voulez vous ajouter votre utilisateur maintenant au groupe SUDO [o/N] ? " sudo_configure
40 | case $sudo_configure in
41 | o|O)
42 | if [[ ! -f /usr/bin/sudo ]]; then
43 | echo "Sudo non installé, installation..."
44 | su - -c "apt install -y sudo > /dev/null"
45 | fi
46 | echo "Ajout de l'utilisateur au groupe SUDO"
47 | su - -c "usermod -aG sudo $(who | grep tty | cut -d " " -f 1)"
48 | echo "
49 | Vous devrez vous relogguer pour que les modifications prennent effet. Lancement du script avec root.
50 | "
51 | sleep 2
52 | run_script
53 | exit 1
54 | ;;
55 | n|N|*)
56 | run_script
57 | exit 1
58 | ;;
59 | esac
60 | fi
61 | run_script
62 | exit 1
63 | }
64 |
65 | function run_script() {
66 | clear
67 | echo "Lancement du script avec le compte ROOT "
68 | su root -c "bash $homedir/postinstall-debian-tui"
69 | exit 1
70 | }
71 |
72 | function run_with_sudo() {
73 | echo "
74 | Le script à besoin des droits ROOT pour fonctionner. Utilisation de sudo pour exécuter le script.
75 | "
76 | sudo chmod +x $homedir/postinstall-debian-tui
77 | sudo $homedir/postinstall-debian-tui
78 | exit 1
79 | }
80 |
81 | function menu1() {
82 | clear
83 | echo " ------------------ POSTINSTALL DEBIAN TUI ------------------
84 |
85 | 1- Configurer SECUREBOOT et installer les Signatures
86 | 2- Installer les drivers Nvidia
87 | 3- Installer les drivers AMD
88 | 4- Programmes Utilitaires / Additionnels
89 |
90 | T- Postinstall Debian TESTING / SID (Bêta)
91 |
92 | 0- Quitter
93 |
94 | "
95 |
96 | read -n2 -p "Choix ? " choix
97 |
98 | case "$choix" in
99 |
100 | 1) secureboot
101 | ;;
102 | 2) nvidia1
103 | ;;
104 | 3) amd1
105 | ;;
106 | 4) tools1
107 | ;;
108 | t|T) debian_testing
109 | ;;
110 | f|F) neofrog
111 | ;;
112 | 0) export success="2"
113 | clear && exit 1
114 | ;;
115 | *) menu1
116 | ;;
117 | esac
118 |
119 |
120 | }
121 |
122 | function nvidia1() {
123 | clear
124 | echo " -------------------------- NVIDIA --------------------------
125 |
126 | 1- Installer driver Nvidia Stable LTS (Recommandé)
127 | 2- Autres drivers Nvidia (Pour utilisateurs Expérimentés !!)
128 | 3- Supprimer driver Nvidia
129 |
130 | 0- Retour
131 |
132 | "
133 |
134 | read -n2 -p "Choix ? " choix
135 |
136 | case "$choix" in
137 |
138 | 1) nvidia-stable
139 | ;;
140 | 2) nvidia2
141 | ;;
142 | 3) nvidia-rollback
143 | ;;
144 | 0) menu1
145 | ;;
146 | *) nvidia1
147 | ;;
148 | esac
149 |
150 | }
151 |
152 | function nvidia2() {
153 | clear
154 | echo " -------------------------- NVIDIA - Autres Drivers --------------------------
155 |
156 | 1- Installer driver (DERNIERE VERSION) + dépôt Nvidia (Recommandé/Officiel Nvidia) (Compatible Testing/Sid/Backports)
157 |
158 | ----------------------- NVIDIA - Version TEST/DEV -----------------------
159 |
160 | 2- Installer driver Nvidia de Testing en pin 10 (Pour Debian Stable UNIQUEMENT !!)
161 | 3- Installer driver Nvidia Experimental (Nvidia-dev, Necessite Sid pin 10 !)
162 |
163 | 0- Retour
164 |
165 | "
166 |
167 | read -n2 -p "Choix ? " choix
168 |
169 | case "$choix" in
170 |
171 | 1) nvidia-cuda
172 | ;;
173 | 2) nvidia-testing-on-stable
174 | ;;
175 | 3) nvidia-experimental
176 | ;;
177 | 0) menu1
178 | ;;
179 | *) nvidia2
180 | ;;
181 | esac
182 |
183 | }
184 |
185 |
186 | function amd1() {
187 | clear
188 | echo " ---------------------------- AMD ---------------------------
189 |
190 | 1- Installer Mesa Kisak Fresh
191 | 2- Installer AMD Vulkan
192 | 3- Installer ROCM opencl et ROCM HIP
193 |
194 | 0- Retour
195 |
196 | "
197 |
198 | read -n2 -p "Choix ? " choix
199 |
200 | case "$choix" in
201 |
202 | 1) mesa-kisak
203 | ;;
204 | 2) amd-vulkan
205 | ;;
206 | 3) rocm
207 | ;;
208 | 0) menu1
209 | ;;
210 | *) amd1
211 | ;;
212 | esac
213 |
214 | }
215 |
216 |
217 | function tools1() {
218 | clear
219 | echo " ---------------------------- TOOLS --------------------------
220 |
221 | --- Gestionnaires de paquets ---
222 |
223 | 1- Installer Deb-Get (Debian Stable uniquement)
224 | 2- Installer Pacstall (AUR pour Debian)
225 |
226 |
227 | --- Applications Gaming ---
228 |
229 | 3- Installer Steam
230 | 4- Installer Lutris (Dépôt additionnel OBS officiel)
231 | 5- Installer Wine-Staging (Dépôt additionnel officiel)
232 |
233 |
234 | --- Applications Supplémentaires ---
235 |
236 | D- Installer Discord (Dépot additionnel "Javinator9889")
237 |
238 |
239 | --- Outils Linux ---
240 |
241 | 6- Mettre à jour les Firmware-Linux à la dernière version GIT
242 | 7- Ajouter les dépôts Backports pour Debian Stable
243 |
244 | --- Outils Supplémentaires ---
245 |
246 | 8- Installer les repository de Sid (pin 10)
247 | 9- Utiliser l'outil d'ajout de PPA pour Debian (EXPERTS !!)
248 |
249 |
250 | --- Outils Laptop ---
251 |
252 | E- Installer Envycontrol
253 |
254 | 0- Retour
255 |
256 | "
257 |
258 | read -n2 -p "Choix ? " choix
259 |
260 | case "$choix" in
261 |
262 | 1) deb-get
263 | ;;
264 | 2) pacstall
265 | ;;
266 | 3) steam
267 | ;;
268 | 4) lutris
269 | ;;
270 | d|D) discord
271 | ;;
272 | 5) wine-staging
273 | ;;
274 | 6) update-firmware
275 | ;;
276 | 7) backports
277 | ;;
278 | 8) install-sid
279 | ;;
280 | 9) add-ppa-debian
281 | ;;
282 | e|E) envycontrol
283 | ;;
284 | 0) menu1
285 | ;;
286 | *) tools1
287 | ;;
288 | esac
289 |
290 | }
291 |
292 | clear
293 | export homedir=$(pwd)
294 | chmod +x $homedir/data/*.sh
295 | root_check
296 |
297 |
298 |
--------------------------------------------------------------------------------
/source/amd_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Xdavius/postinstall-debian/598fc8be9e0962295c6a3df5d9576735907343e7/source/amd_logo.png
--------------------------------------------------------------------------------
/source/debian_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Xdavius/postinstall-debian/598fc8be9e0962295c6a3df5d9576735907343e7/source/debian_logo.png
--------------------------------------------------------------------------------
/source/discord.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Xdavius/postinstall-debian/598fc8be9e0962295c6a3df5d9576735907343e7/source/discord.png
--------------------------------------------------------------------------------
/source/error.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #localdir=$(pwd)
3 | #console_error="bash -c $localdir/SECUREBOOT/install-sb.sh"
4 |
5 | echo "Version de Debian non-supportée. Veuillez utiliser la TUI
6 | "
7 |
8 | read -n1 -p "Appuyez sur une touche pour quitter..." once_exit
9 |
10 | case $once_exit in
11 | *)
12 | exit 2
13 | ;;
14 | esac
15 |
16 |
17 |
--------------------------------------------------------------------------------
/source/gui_functions.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | function logo () {
3 | logo="./source/logo.png"
4 | }
5 |
6 | #--------------------------------------------------------------------------------------------------------------------------------------------------
7 | #
8 | # FONCTIONS POUR LANCER LES INSTALLATIONS ET LES CHARGEMENTS
9 | #
10 | #--------------------------------------------------------------------------------------------------------------------------------------------------
11 |
12 | function yad_progress () {
13 |
14 | # Variable pour stocker le nombre de lignes dans temp_script.sh
15 | #max_line=0
16 |
17 | # Compter le nombre de lignes dans temp_script.sh
18 | #max_line=$(wc -l .$data_loc | cut -d " " -f 1)
19 |
20 | # Calculer le pourcentage correspondant à une seule ligne avec bc
21 | #one_line_percent=$(echo "scale=4; 100 / $max_line" | bc)
22 |
23 | # max_line=$(wc -l $data_loc | cut -d " " -f 1)
24 | # one_line_percent=$(echo "scale=4; 100 / $max_line" | bc -l)
25 | # counter=$(echo "$counter + $one_line_percent" | bc -l)
26 | # counter=$(echo $counter | cut -d "." -f 1)
27 |
28 | # Compteur pour afficher le chiffre dans le sous-processus
29 | counter=0
30 | ferme_yad
31 | $data_loc | while read -r line ;
32 | do
33 | logo2="./source/logo.png"
34 | export logo2
35 | echo "# ${line}"
36 | max_line=$(wc -l $data_loc | cut -d " " -f 1)
37 | max_line2=$(echo "$max_line / 2" | bc -l)
38 | one_line_percent=$(echo "scale=4; 100 / $max_line2" | bc -l)
39 | counter=$(echo "$counter + $one_line_percent" | bc -l)
40 | counter=$(echo $counter | cut -d "." -f 1)
41 | echo $counter ;
42 | if [ "${line}" = "Job done" ]; then
43 | counter="100"
44 | echo $counter
45 | sleep 2
46 | yad --center --window-icon="$logo2" --width 300 --height 170 --title="Installation terminée !" --text-align="center" --text="
47 |
48 | Les informations complémentaires d'installation sont accessibles dans /var/log/root.auto-update.txt
49 |
50 | N'OUBLIEZ PAS DE REDÉMARRER L'ORDINATEUR !!" --button="OK:bash -c menu"
51 | fi
52 | done | yad --center --window-icon=/tmp/logo.png --progress --percentage=$counter --title "installation de $app_name" --progress-text="installation en cours " --width 500 --height 200 --no-buttons --enable-log --log-expanded
53 | }
54 |
55 | function ferme_yad () { PidYad=$(pgrep yad); kill $PidYad;}
56 | #--------------------------------------------------------------------------------------------------------------------------------------------------
57 | #
58 | # FONCTIONS POUR BOUTTONS DU MENU nvidia
59 | #
60 | #--------------------------------------------------------------------------------------------------------------------------------------------------
61 |
62 | function nvidia_stable () {
63 | app_name="NVIDIA LTS STABLE"
64 | data_loc="./data/nvidia-stable.sh"
65 | yad_progress
66 | }
67 |
68 | function nvidia_remove () {
69 | app_name="NVIDIA REMOVE"
70 | data_loc="./data/nvidia-rollback.sh"
71 | yad_progress
72 | }
73 |
74 | #--------------------------------------------------------------------------------------------------------------------------------------------------
75 | #
76 | # FONCTIONS POUR BOUTTONS DU MENU nvidia2
77 | #
78 | #--------------------------------------------------------------------------------------------------------------------------------------------------
79 |
80 | function nvidia_exp () {
81 | app_name="NVIDIA-EXPERIMENTAL"
82 | data_loc="./extra/nvidia-experimental.sh"
83 | yad_progress
84 | }
85 | function nvidia_cuda () {
86 | app_name="NVIDIA DRIVER (LATEST)"
87 | data_loc="./extra/nvidia-cuda.sh"
88 | yad_progress
89 | }
90 | function nvidia_test () {
91 | app_name="NVIDIA-TESTING"
92 | data_loc="./extra/nvidia-testing-on-stable.sh"
93 | yad_progress
94 | }
95 | #--------------------------------------------------------------------------------------------------------------------------------------------------
96 | #
97 | # FONCTIONS POUR BOUTTONS DU MENU amd
98 | #
99 | #--------------------------------------------------------------------------------------------------------------------------------------------------
100 |
101 |
102 | function amd_vulkan () {
103 | app_name="AMD-VULKAN"
104 | data_loc="./data/amd-vulkan.sh"
105 | yad_progress
106 | }
107 | function amd_kisak () {
108 | app_name="MESA-KISAK"
109 | data_loc="./data/mesa-kisak-fresh.sh"
110 | yad_progress
111 | }
112 | function amd_rocm () {
113 | app_name="ROCM OPENCL & HIP"
114 | data_loc="./data/rocm.sh"
115 | yad_progress
116 | }
117 | #--------------------------------------------------------------------------------------------------------------------------------------------------
118 | #
119 | # FONCTIONS POUR BOUTTONS DU MENU UTILITAIRES
120 | #
121 | #--------------------------------------------------------------------------------------------------------------------------------------------------
122 | function deb_get () {
123 | app_name="DEB-GET"
124 | data_loc="./data/deb-get.sh"
125 | yad_progress
126 | }
127 | function steam () {
128 | app_name="STEAM"
129 | data_loc="./data/steam.sh"
130 | yad_progress
131 | }
132 | function discord () {
133 | app_name="DISCORD"
134 | data_loc="./data/discord.sh"
135 | yad_progress
136 | }
137 | function wine () {
138 | app_name="WINE-STAGING"
139 | data_loc="./data/wine-staging.sh"
140 | yad_progress
141 | }
142 | function lutris () {
143 | app_name="LUTRIS-LATEST (Repos OBS)"
144 | data_loc="./data/lutris-latest.sh"
145 | yad_progress
146 | }
147 | function pacstall () {
148 | app_name="PACSTALL"
149 | data_loc="./data/pacstall.sh"
150 | yad_progress
151 | }
152 | function backports () {
153 | app_name="STABLE BACKPORTS"
154 | data_loc="./extra/backports.sh"
155 | yad_progress
156 | }
157 | function update-firmware () {
158 | app_name="LINUX-FIRMWARE-GIT"
159 | data_loc="./extra/update-firmware.sh"
160 | yad_progress
161 | }
162 | function ppa () {
163 | app_name="ADD-PPA"
164 | data_loc="./data/add-ppa-debian.sh"
165 | yad_progress
166 | }
167 | function sid () {
168 | app_name="DEPOT SID (PIN 10)"
169 | data_loc="./data/install-sid.sh"
170 | yad_progress
171 | }
172 | function envycontrol () {
173 | app_name="EVYCONTROL"
174 | data_loc="./extra/envycontrol.sh"
175 | yad_progress
176 | }
177 |
178 | #--------------------------------------------------------------------------------------------------------------------------------------------------
179 | #
180 | # SOUS MENU POUR ACCEDER A L'EXECUTION DES SCTIPTS
181 | #
182 | #--------------------------------------------------------------------------------------------------------------------------------------------------
183 | function secureboot () {
184 | if [[ -f /usr/bin/konsole ]] ; then
185 | ferme_yad
186 | app_name="INSTALLATION DE SECUREBOOT"
187 | var1="bash -c $localdir/SECUREBOOT/install-sb.sh"
188 | konsole -- -e $var1
189 | menu
190 | elif [[ -f /usr/bin/gnome-terminal ]] ; then
191 | ferme_yad
192 | app_name="INSTALLATION DE SECUREBOOT"
193 | var1="bash -c $localdir/SECUREBOOT/install-sb.sh"
194 | gnome-terminal -x $var1
195 | menu
196 | else
197 | yad --center --window-icon="$logo" --width 300 --height 170 --title="Désolé..." --text-align="center" --text="La GUI ne supporte pas vôtre DE. Utilisez la version TUI." --button="OK:bash -c menu"
198 | fi
199 | }
200 |
201 | function nvidia() {
202 | logo
203 | ferme_yad
204 | COM_STABLE="Installer driver Nvidia Stable fournit par Debian, ainsi que CUDA (Recommandé)"
205 | COM_AUTRE="Autres drivers Nvidia (Pour utilisateurs Expérimentés !!)"
206 | nvidia=$(yad --center --window-icon="$logo" --title="Gestionnaire NVIDIA" --width 500 --height 170 --text-align="center" --button="Retour:bash -c menu" --button="Quitter:1" \
207 | --form \
208 | --field "Installer le driver Nvidia de Debian (RECOMMANDÉ) !./source/debian_logo.png! $COM_STABLE:fbtn" "bash -c nvidia_stable" \
209 | --field "Options avancée (EXPERT) !./source/package_debian.png! $COM_AUTRE:fbtn" "bash -c nvidia2" \
210 | )
211 | }
212 |
213 | function nvidia2() {
214 | logo
215 | ferme_yad
216 | COM_EXPERIMENTAL="Installer driver Nvidia Experimental (Necessite l'activation de Sid pin 10)"
217 | COM_CUDA="Installer le dépôt Officiel Nvidia et le dernier driver Nvidia Officiel ainsi que le dernier CUDA"
218 | COM_TESTING="Installer driver Nvidia de Testing en pin 10 (Pour Debian Stable)"
219 | COM_REMOVE="Supprimer le driver Nvidia Propriétaire et nettoyer le système"
220 | nvidia2=$(yad --center --window-icon="$logo" --title="Gestionnaire NVIDIA" --width 500 --height 170 --text-align="center" --button="Retour:bash -c nvidia" --button="Quitter:1" \
221 | --form \
222 | --field "Installer le driver (DERNIERE VERSION) + dépôt Nvidia !./source/nvidia_logo.png! $COM_CUDA:fbtn" "bash -c nvidia_cuda" \
223 | --field "Purger les drivers Nvidia !./source/package-delete.png! $COM_REMOVE:fbtn" "bash -c nvidia_remove"\
224 | )
225 | }
226 |
227 | function amd () {
228 | logo
229 | ferme_yad
230 | COM_VULKAN="Installer Vulkan pour les cartes AMD ou Intel"
231 | COM_KISAK="Installer le dépôt Mesa Kisak Fresh pour être sur le dernier Mesa Stable"
232 | COM_ROCM="Installer Rocm OpenCL et Hip (DavinciResolve, Blender,InvokeAI etc...)"
233 | amd=$(yad --center --window-icon="$logo" --title="Gestionnaire AMD" --width 500 --height 170 --text-align="center" --button="Retour:bash -c menu" --button="Quitter:1" \
234 | --form \
235 | --field "Installer le driver Vulkan !./source/debian_logo.png! $COM_VULKAN:fbtn" "bash -c amd_vulkan" \
236 | --field "Installer Mesa-Kisak Fresh !./source/package_debian.png! $COM_KISAK:fbtn" "bash -c amd_kisak" \
237 | --field "Installer AMD ROCm OpenCL et HIP !./source/amd_logo.png! $COM_ROCM:fbtn" "bash -c amd_rocm"\
238 | )
239 | }
240 |
241 | function utilitaire () {
242 | logo
243 | ferme_yad
244 | utilitaire=$(yad --center --window-icon="$logo" --title="Utilitaires" --width 500 --height 170 --text-align="center" --button="Retour:bash -c menu" --button="Quitter:1" \
245 | --form \
246 | --field " Applications Gaming !./source/joystick.png!:fbtn" "bash -c gaming" \
247 | --field " Magasins d'Applications !./source/software_debian.png!:fbtn" "bash -c software_manager" \
248 | --field " Configuration Système !./source/debian_logo.png!:fbtn" "bash -c system" \
249 | )
250 | }
251 |
252 | function software_manager () {
253 | logo
254 | ferme_yad
255 | COM_Deb_get="Installer deb-get (Debian Stable uniquement)"
256 | COM_Pacstall="Installer pacstall"
257 | software_manager=$(yad --center --window-icon="$logo" --title="Gestionnaires de Paquets" --width 500 --height 170 --text-align="center" --button="Retour:bash -c utilitaire" --button="Quitter:1" \
258 | --form \
259 | --field " Installer Deb-get !./source/software_debian.png! $COM_Deb_get:fbtn" "bash -c deb_get" \
260 | --field " Installer Pacstall !./source/software_debian.png! $COM_Pacstall:fbtn" "bash -c pacstall" \
261 | )
262 | }
263 |
264 | function gaming () {
265 | logo
266 | ferme_yad
267 | COM_Steam="Installer Steam et toutes ses dépendances"
268 | COM_Wine="Installer wine-staging et son dépôt officiel"
269 | COM_Lutris="Installer Lutris et son dépôt officiel de OBS"
270 | COM_Discord="Installer Discord et le dépôt Javinator9889"
271 | gaming=$(yad --center --window-icon="$logo" --title="Applications Gaming" --width 500 --height 170 --text-align="center" --button="Retour:bash -c utilitaire" --button="Quitter:1" \
272 | --form \
273 | --field " Installer Discord !./source/discord.png! $COM_Discord:fbtn" "bash -c discord" \
274 | --field " Installer Steam !./source/steam.png! $COM_Steam:fbtn" "bash -c steam" \
275 | --field " Installer Lutris-latest !./source/lutris.png! $COM_Lutris:fbtn" "bash -c lutris" \
276 | --field " Installer Wine-Staging !./source/wine.png! $COM_Wine:fbtn" "bash -c wine" \
277 |
278 | )
279 | }
280 |
281 | function system () {
282 | logo
283 | ferme_yad
284 | COM_Backports="Installer le dépôt Backports pour debian Stable"
285 | COM_Linux_Firmware_GIT="Mettre à jour les firmwares Linux pour le support du matériel dernière génération"
286 | COM_Envycontrol="Installer Envycontrol pour les Laptop Optimus"
287 |
288 | system=$(yad --center --window-icon="$logo" --title="Configuration du Système" --width 500 --height 170 --text-align="center" --button="Retour:bash -c utilitaire" --button="Quitter:1" \
289 | --form \
290 | --field " Ajouter le dépôt Backports !./source/debian_logo.png! $COM_Backports:fbtn" "bash -c backports" \
291 | --field " Installer Linux-Firmware-GIT !./source/package_debian.png! $COM_Linux_Firmware_GIT:fbtn" "bash -c update-firmware"\
292 | --field " Installer Envycontrol !./source/package_debian.png! $COM_Envycontrol:fbtn" "bash -c envycontrol"\
293 | )
294 | }
295 |
--------------------------------------------------------------------------------
/source/joystick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Xdavius/postinstall-debian/598fc8be9e0962295c6a3df5d9576735907343e7/source/joystick.png
--------------------------------------------------------------------------------
/source/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Xdavius/postinstall-debian/598fc8be9e0962295c6a3df5d9576735907343e7/source/logo.png
--------------------------------------------------------------------------------
/source/lutris.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Xdavius/postinstall-debian/598fc8be9e0962295c6a3df5d9576735907343e7/source/lutris.png
--------------------------------------------------------------------------------
/source/menu-gui.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #--------------------------------------------------------------------------------------------------------------------------------------------------
3 | #
4 | # FONCIOTNS POUR MENU PRINCIPALE
5 | #
6 | #--------------------------------------------------------------------------------------------------------------------------------------------------
7 | set -a
8 | source ./source/gui_functions.sh
9 |
10 | function menu() {
11 |
12 | export count
13 | if [[ $count == 1 ]] ; then
14 | ferme_yad
15 | fi
16 | count=1
17 | localdir=$(pwd)
18 | export localdir
19 | logo
20 | CG=$(yad --center --window-icon="$logo" --title="POSTINSTALL FOR DEBIAN" --width 500 --height 140 --text-align="center" --no-buttons \
21 | --form \
22 | --field " Configurer SECUREBOOT !./source/secureboot.png!:fbtn" "bash -c secureboot" \
23 | --field "Gestion des pilotes NVIDIA !./source/nvidia_logo.png!:fbtn" "bash -c nvidia" \
24 | --field "Gestion des pilotes AMD !./source/amd_logo.png:fbtn" "bash -c amd" \
25 | --field "Applications et Utilitaires !./source/package_debian.png!:fbtn" "bash -c utilitaire"\
26 | )
27 | }
28 |
29 | set +a
30 |
31 | menu
32 |
--------------------------------------------------------------------------------
/source/nvidia_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Xdavius/postinstall-debian/598fc8be9e0962295c6a3df5d9576735907343e7/source/nvidia_logo.png
--------------------------------------------------------------------------------
/source/package-delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Xdavius/postinstall-debian/598fc8be9e0962295c6a3df5d9576735907343e7/source/package-delete.png
--------------------------------------------------------------------------------
/source/package_debian.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Xdavius/postinstall-debian/598fc8be9e0962295c6a3df5d9576735907343e7/source/package_debian.png
--------------------------------------------------------------------------------
/source/scripts-tui.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | function nvidia-stable() {
4 | bash ./data/nvidia-stable.sh
5 | sleep 2
6 | nvidia1
7 | }
8 |
9 | function nvidia-rollback() {
10 | bash ./data/nvidia-rollback.sh
11 | sleep 2
12 | nvidia1
13 | }
14 |
15 | function secureboot() {
16 | bash ./SECUREBOOT/install-sb.sh
17 | sleep 2
18 | menu1
19 | }
20 |
21 | function mesa-kisak() {
22 | bash ./data/mesa-kisak-fresh.sh
23 | sleep 2
24 | amd1
25 | }
26 |
27 | function amd-vulkan() {
28 | clear
29 | bash ./data/amd-vulkan.sh
30 | sleep 2
31 | amd1
32 | }
33 |
34 | function rocm() {
35 | clear
36 | bash ./data/rocm.sh
37 | sleep 2
38 | amd1
39 | }
40 |
41 | function deb-get() {
42 | clear
43 | bash ./data/deb-get.sh
44 | sleep 2
45 | tools1
46 | }
47 |
48 | function steam() {
49 | clear
50 | bash ./data/steam.sh
51 | sleep 2
52 | tools1
53 | }
54 |
55 | function wine-staging() {
56 | clear
57 | bash ./data/wine-staging.sh
58 | sleep 2
59 | tools1
60 | }
61 |
62 | function lutris() {
63 | clear
64 | bash ./data/lutris-latest.sh
65 | sleep 2
66 | tools1
67 | }
68 |
69 | function discord() {
70 | clear
71 | bash ./data/discord.sh
72 | sleep 2
73 | tools1
74 | }
75 |
76 | function install-sid() {
77 | clear
78 | bash ./data/install-sid.sh
79 | sleep 2
80 | tools1
81 | }
82 |
83 | function pacstall() {
84 | clear
85 | bash ./data/pacstall.sh
86 | sleep 2
87 | tools1
88 | }
89 |
90 | function add-ppa-debian() {
91 | clear
92 | echo "------------------------------------------------------
93 | "
94 | read -p 'Saisir le nom du ppa au format "ppa:nom/repository" : ' ppa_name
95 | export ppa_name
96 | bash ./data/add-ppa-debian.sh $ppa_name
97 | sleep 2
98 | tools1
99 | }
100 |
101 | ############################## EXTRAS !! ############################
102 |
103 | function nvidia-experimental() {
104 | bash ./extra/nvidia-experimental.sh
105 | sleep 2
106 | nvidia2
107 | }
108 |
109 | function nvidia-cuda() {
110 | bash ./extra/nvidia-cuda.sh
111 | sleep 2
112 | nvidia2
113 | }
114 |
115 | function nvidia-testing-on-stable() {
116 | bash ./extra/nvidia-testing-on-stable.sh
117 | sleep 2
118 | nvidia2
119 | }
120 |
121 | function envycontrol() {
122 | bash ./extra/envycontrol.sh
123 | sleep 2
124 | tools1
125 | }
126 |
127 | function backports() {
128 | bash ./extra/backports.sh
129 | sleep 2
130 | tools1
131 | }
132 |
133 | function update-firmware() {
134 | bash ./extra/update-firmware.sh
135 | sleep 2
136 | tools1
137 | }
138 |
139 | function neofrog() {
140 | clear
141 | bash ./data/neofrog
142 | sleep 5
143 | menu1
144 | }
145 |
146 | function debian_testing() {
147 | clear
148 | cd ./TESTING
149 | bash postinstall-testing
150 | cd ..
151 | sleep 2
152 | menu1
153 | }
154 |
--------------------------------------------------------------------------------
/source/secureboot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Xdavius/postinstall-debian/598fc8be9e0962295c6a3df5d9576735907343e7/source/secureboot.png
--------------------------------------------------------------------------------
/source/software_debian.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Xdavius/postinstall-debian/598fc8be9e0962295c6a3df5d9576735907343e7/source/software_debian.png
--------------------------------------------------------------------------------
/source/steam.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Xdavius/postinstall-debian/598fc8be9e0962295c6a3df5d9576735907343e7/source/steam.png
--------------------------------------------------------------------------------
/source/wine.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Xdavius/postinstall-debian/598fc8be9e0962295c6a3df5d9576735907343e7/source/wine.png
--------------------------------------------------------------------------------