2022-03-30 18:08:02 +02:00
|
|
|
# Configuration des OS
|
2023-02-05 12:21:23 +01:00
|
|
|
|
2022-04-04 00:28:40 +02:00
|
|
|
> Pour rechercher efficacement, ^F "`===`" recherche catégorie par catégorie.
|
|
|
|
|
2022-03-30 19:37:58 +02:00
|
|
|
## Windows 11
|
2023-02-05 12:21:23 +01:00
|
|
|
|
2023-03-12 18:55:48 +01:00
|
|
|
- Télécharger et lancer [windows11.bat](./windows11.bat)
|
2022-06-05 19:20:22 +02:00
|
|
|
|
2024-07-02 11:40:49 +02:00
|
|
|
### Mise à jour de certains programmes
|
|
|
|
|
|
|
|
```batch
|
2024-07-02 11:47:41 +02:00
|
|
|
PowerShell -Command "Invoke-Expression """"& { $(Invoke-WebRequest -UseBasicParsing 'https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/installers/runner.ps1') } -Script script"""""
|
2024-07-02 11:40:49 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
Avec le paramètre `script` le programme à (ré-)installer
|
|
|
|
|
2022-09-30 03:23:30 +02:00
|
|
|
## WSL (Arch)
|
2023-02-05 12:21:23 +01:00
|
|
|
|
2023-03-12 18:39:57 +01:00
|
|
|
Tout d'abord, installer [ArchWSL](https://github.com/yuk7/ArchWSL/releases)
|
|
|
|
(.appx et [.cer](https://wsldl-pg.github.io/ArchW-docs/Install-Certificate/))
|
|
|
|
|
2023-03-12 18:44:55 +01:00
|
|
|
Ensuite, il faut définir un utilisateur :
|
2023-03-12 18:39:57 +01:00
|
|
|
|
|
|
|
```bash
|
|
|
|
>Arch.exe
|
2023-03-12 18:42:31 +01:00
|
|
|
[root@PC ~]# echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/wheel
|
|
|
|
[root@PC ~]# useradd -m -G wheel -s /bin/bash anri
|
|
|
|
[root@PC ~]# passwd anri
|
|
|
|
[root@PC ~]# exit
|
2023-03-12 18:39:57 +01:00
|
|
|
|
|
|
|
>Arch.exe config --default-user anri
|
2023-03-12 18:44:55 +01:00
|
|
|
```
|
2023-03-12 18:39:57 +01:00
|
|
|
|
2023-03-13 00:18:30 +01:00
|
|
|
<details><summary><a href="https://github.com/microsoft/WSL/issues/5548">Fix bug <code>ldconfig</code></a> :</summary>
|
2023-03-12 18:44:55 +01:00
|
|
|
|
2023-03-13 00:15:38 +01:00
|
|
|
```batch
|
|
|
|
CD \Windows\System32\lxss\lib
|
|
|
|
DEL libcuda.so
|
|
|
|
DEL libcuda.so.1
|
|
|
|
MKLINK libcuda.so libcuda.so.1.1
|
|
|
|
MKLINK libcuda.so.1 libcuda.so.1.1
|
2022-03-30 18:08:02 +02:00
|
|
|
```
|
|
|
|
|
2024-07-02 11:37:39 +02:00
|
|
|
> Après il faut peut-être redémarrer WSL et `sudo ldconfig`.
|
2023-03-13 00:49:20 +01:00
|
|
|
|
2023-03-13 00:18:18 +01:00
|
|
|
</details>
|
|
|
|
|
2023-03-13 00:15:38 +01:00
|
|
|
Commande pour lancer mon installation :
|
2023-03-13 00:09:56 +01:00
|
|
|
|
|
|
|
```bash
|
2023-03-13 00:15:38 +01:00
|
|
|
>Arch.exe
|
2024-03-30 17:53:42 +01:00
|
|
|
[anri@PC ~]# curl https://git.mylloon.fr/Anri/confOS/raw/branch/main/wsl.sh -s | bash
|
2023-03-13 00:09:56 +01:00
|
|
|
```
|
|
|
|
|
2022-06-03 15:14:40 +02:00
|
|
|
## Arch
|
2023-02-05 12:21:23 +01:00
|
|
|
|
2023-03-12 18:55:48 +01:00
|
|
|
<details><summary>Procédure dans l'image ISO</summary>
|
2022-06-03 18:51:15 +02:00
|
|
|
|
|
|
|
> ### Layout FR
|
2023-02-05 12:21:23 +01:00
|
|
|
>
|
2022-06-03 18:51:15 +02:00
|
|
|
> ```bash
|
|
|
|
> loadkeys fr
|
|
|
|
> ```
|
2023-02-05 12:21:23 +01:00
|
|
|
>
|
2022-06-03 18:51:15 +02:00
|
|
|
> <details>
|
|
|
|
> <summary>Connexion en WiFi</summary>
|
|
|
|
>
|
|
|
|
> > ### Récupération clé hashée
|
2023-02-05 12:21:23 +01:00
|
|
|
> >
|
2022-06-03 18:51:15 +02:00
|
|
|
> > ```bash
|
|
|
|
> > wpa_passhrase <SSID> <clé WIFI> > /var/lib/iwd/<SSID>.psk
|
|
|
|
> > ```
|
|
|
|
> >
|
|
|
|
> > ### Ajout entête
|
2023-02-05 12:21:23 +01:00
|
|
|
> >
|
2022-06-03 18:51:15 +02:00
|
|
|
> > ```bash
|
|
|
|
> > echo -e "[Security]\nPreSharedKey=" >> /var/lib/iwd/<SSID>.psk
|
|
|
|
> > ```
|
|
|
|
> >
|
|
|
|
> > ### Modification fichier pour ne garder que l'entête
|
2023-02-05 12:21:23 +01:00
|
|
|
> >
|
2022-06-03 18:51:15 +02:00
|
|
|
> > ```bash
|
|
|
|
> > nano /var/lib/iwd/<SSID>.psk
|
|
|
|
> > ```
|
|
|
|
> >
|
2024-07-02 11:37:39 +02:00
|
|
|
> > ### Connexion au Wifi
|
2023-02-05 12:21:23 +01:00
|
|
|
> >
|
2022-06-03 18:51:15 +02:00
|
|
|
> > ```bash
|
|
|
|
> > iwctl station wlan0 connect <SSID>
|
|
|
|
> > ```
|
2023-02-05 12:21:23 +01:00
|
|
|
>
|
2022-06-03 18:51:15 +02:00
|
|
|
> </details>
|
|
|
|
>
|
|
|
|
> ### Copié la configuration
|
2023-02-05 12:21:23 +01:00
|
|
|
>
|
2022-06-15 12:03:50 +02:00
|
|
|
> [`run.sh`](./archinstall/run.sh)
|
2023-02-05 12:21:23 +01:00
|
|
|
>
|
2022-06-03 18:51:15 +02:00
|
|
|
> ```bash
|
|
|
|
> curl -o run.sh -L lstu.fr/m_ai_r
|
|
|
|
> ```
|
|
|
|
>
|
2024-07-02 11:37:39 +02:00
|
|
|
> ### Lancé la configuration
|
2023-02-05 12:21:23 +01:00
|
|
|
>
|
2022-06-04 03:30:36 +02:00
|
|
|
> Rendre le script exécutable
|
2023-02-05 12:21:23 +01:00
|
|
|
>
|
2022-06-03 18:51:15 +02:00
|
|
|
> ```bash
|
|
|
|
> chmod +x run.sh
|
|
|
|
> ```
|
|
|
|
>
|
2022-06-04 03:30:36 +02:00
|
|
|
> Lancer le script
|
2023-02-05 12:21:23 +01:00
|
|
|
>
|
2022-06-03 18:51:15 +02:00
|
|
|
> ```bash
|
|
|
|
> ./run.sh
|
|
|
|
> ```
|
|
|
|
>
|
2022-06-06 02:22:08 +02:00
|
|
|
> Ne pas aller dans le `chroot` à la fin de l'installation et redémarrer le pc
|
2023-02-05 12:21:23 +01:00
|
|
|
>
|
2022-06-03 18:51:15 +02:00
|
|
|
> ```bash
|
|
|
|
> reboot
|
|
|
|
> ```
|
2023-02-05 12:21:23 +01:00
|
|
|
|
2022-06-03 18:48:42 +02:00
|
|
|
</details>
|
2022-06-03 15:49:50 +02:00
|
|
|
|
2022-06-06 02:22:08 +02:00
|
|
|
Commande pour lancer mon installation :
|
2023-02-05 12:21:23 +01:00
|
|
|
|
2022-06-06 02:22:08 +02:00
|
|
|
```bash
|
2024-04-03 12:07:10 +02:00
|
|
|
curl https://git.mylloon.fr/Anri/confOS/raw/branch/main/arch.sh -s | bash
|
2022-06-06 02:22:08 +02:00
|
|
|
```
|
|
|
|
|
2022-06-15 12:03:50 +02:00
|
|
|
## Android
|
2023-02-05 12:21:23 +01:00
|
|
|
|
2022-09-30 03:33:13 +02:00
|
|
|
Avec [UAD](https://github.com/0x192/universal-android-debloater), ma liste
|
|
|
|
d'applications est [uad_exported_selection.txt](./uad_exported_selection.txt).
|
2022-06-15 12:03:50 +02:00
|
|
|
|
|
|
|
<!-- Penser a bien désactiver les applications, et non les désinstallés. -->
|
|
|
|
|
2023-02-05 12:23:37 +01:00
|
|
|
[Ici](https://git.mylloon.fr/Anri/cat/wiki/Debloat-MIUI) un petit descriptif de
|
2024-07-02 11:37:39 +02:00
|
|
|
quelques applications que je désactive qui sont mauvaises.
|
2022-06-15 12:03:50 +02:00
|
|
|
|
2024-03-30 18:17:02 +01:00
|
|
|
### Termux
|
|
|
|
|
|
|
|
```bash
|
|
|
|
curl https://git.mylloon.fr/Anri/confOS/raw/branch/main/termux.sh -s | bash
|
|
|
|
```
|
|
|
|
|
2022-09-30 20:27:14 +02:00
|
|
|
<details><summary><h2>Anciens scripts</h2></summary>
|
|
|
|
|
|
|
|
Ils restent là au cas où, mais attention ils ne sont **pas à jour**.
|
|
|
|
|
|
|
|
### Manjaro
|
2023-02-05 12:21:23 +01:00
|
|
|
|
2022-03-30 18:08:02 +02:00
|
|
|
Commande pour lancer mon installation :
|
2023-02-05 12:21:23 +01:00
|
|
|
|
2022-03-30 18:08:02 +02:00
|
|
|
```bash
|
2023-02-05 12:23:37 +01:00
|
|
|
curl https://git.mylloon.fr/Anri/confOS/raw/branch/main/.old/manjaro.sh -s | bash
|
2022-03-30 18:08:02 +02:00
|
|
|
```
|
|
|
|
|
2022-09-30 20:27:14 +02:00
|
|
|
### Ubuntu
|
2023-02-05 12:21:23 +01:00
|
|
|
|
2022-03-30 18:08:02 +02:00
|
|
|
Commande pour lancer mon installation :
|
2023-02-05 12:21:23 +01:00
|
|
|
|
2022-03-30 18:08:02 +02:00
|
|
|
```bash
|
2023-02-05 12:23:37 +01:00
|
|
|
curl https://git.mylloon.fr/Anri/confOS/raw/branch/main/.old/ubuntu.sh -s | bash
|
2022-03-30 18:08:02 +02:00
|
|
|
```
|
|
|
|
|
2022-09-30 20:27:14 +02:00
|
|
|
### WSL (Ubuntu)
|
2023-02-05 12:21:23 +01:00
|
|
|
|
2022-09-30 03:23:30 +02:00
|
|
|
Commande pour lancer mon installation :
|
2023-02-05 12:21:23 +01:00
|
|
|
|
2022-09-30 03:23:30 +02:00
|
|
|
```bash
|
|
|
|
# Lors de l'installation il vous sera demandé de choisir
|
|
|
|
# une configuration mail, choisir : "No configuration"
|
2023-02-05 12:23:37 +01:00
|
|
|
curl https://git.mylloon.fr/Anri/confOS/raw/branch/main/.old/ubuntu_wsl.sh -s | sudo bash
|
2022-09-30 03:23:30 +02:00
|
|
|
```
|
2023-02-05 12:21:23 +01:00
|
|
|
|
2022-09-30 20:27:14 +02:00
|
|
|
</details>
|
2022-09-30 03:23:30 +02:00
|
|
|
|
2022-09-30 20:31:09 +02:00
|
|
|
# Infos
|
2023-02-05 12:21:23 +01:00
|
|
|
|
2022-09-30 20:31:09 +02:00
|
|
|
- Import/Export clef GPG :
|
2023-02-05 12:21:23 +01:00
|
|
|
|
2024-07-02 11:37:39 +02:00
|
|
|
- Exporter clef publique : `gpg --output public.gpg --armor --export user@email`
|
|
|
|
- Exporter clef privée : `gpg --output private.gpg --armor --export-secret-key user@email`
|
|
|
|
- Importer clefs publiques : `gpg --import public.gpg`
|
|
|
|
- Importer clefs privées : `gpg --allow-secret-key-import --import private.gpg`
|
2022-09-30 20:31:09 +02:00
|
|
|
- Récupérer numéro de clef (`sec`) : `gpg --list-secret-keys --keyid-format LONG user@email`
|
|
|
|
(dans `sec rsa4096/30F2B65B9246B6CA 2017-08-18 [SC]` c'est `30F2B65B9246B6CA`)
|
2024-07-02 11:37:39 +02:00
|
|
|
- Utiliser clef pour Git : `git config --global user.signingkey <numéro de la clé>`
|
2022-09-30 20:31:09 +02:00
|
|
|
|
2023-03-12 18:55:48 +01:00
|
|
|
- Git :
|
|
|
|
- `git config --global user.email "kennel.anri@tutanota.com"`
|
|
|
|
- `git config --global user.name "Mylloon"`
|
2023-03-19 19:06:35 +01:00
|
|
|
|
2024-07-02 11:37:39 +02:00
|
|
|
# Post install
|
2023-03-19 19:06:35 +01:00
|
|
|
|
|
|
|
Après avoir installé son PC, la configuration peut changer !
|
|
|
|
|
2024-07-02 11:37:39 +02:00
|
|
|
Lance `make` après avoir pull la dernière version de ce dépôt pour se synchroniser.
|
2023-03-19 19:06:35 +01:00
|
|
|
|
|
|
|
> Plus d'info dans le [Makefile](./Makefile).
|