confOS/README.md
2023-02-05 12:21:23 +01:00

150 lines
3.4 KiB
Markdown

# Configuration des OS
> Pour rechercher efficacement, ^F "`===`" recherche catégorie par catégorie.
## Windows 11
- Télécharger [windows11.bat](./windows11.bat) qui est une installation guidée™
pour installer Windows et le setup comme je l'aime.
## WSL (Arch)
Commande pour lancer mon installation :
```bash
curl https://git.kennel.ml/Anri/confOS/raw/branch/main/arch_wsl.sh -s | sudo bash
```
## Arch
<details><summary>Procédure ISO</summary>
> ### Layout FR
>
> ```bash
> loadkeys fr
> ```
>
> <details>
> <summary>Connexion en WiFi</summary>
>
> > ### Récupération clé hashée
> >
> > ```bash
> > wpa_passhrase <SSID> <clé WIFI> > /var/lib/iwd/<SSID>.psk
> > ```
> >
> > ### Ajout entête
> >
> > ```bash
> > echo -e "[Security]\nPreSharedKey=" >> /var/lib/iwd/<SSID>.psk
> > ```
> >
> > ### Modification fichier pour ne garder que l'entête
> >
> > ```bash
> > nano /var/lib/iwd/<SSID>.psk
> > ```
> >
> > ### Connexion au WiFi
> >
> > ```bash
> > iwctl station wlan0 connect <SSID>
> > ```
>
> </details>
>
> ### Copié la configuration
>
> [`run.sh`](./archinstall/run.sh)
>
> ```bash
> curl -o run.sh -L lstu.fr/m_ai_r
> ```
>
> ### Lancé la configration
>
> Rendre le script exécutable
>
> ```bash
> chmod +x run.sh
> ```
>
> Lancer le script
>
> ```bash
> ./run.sh
> ```
>
> Ne pas aller dans le `chroot` à la fin de l'installation et redémarrer le pc
>
> ```bash
> reboot
> ```
</details>
Commande pour lancer mon installation :
```bash
curl https://git.kennel.ml/Anri/confOS/raw/branch/main/arch.sh -s | sudo bash
```
## Android
Avec [UAD](https://github.com/0x192/universal-android-debloater), ma liste
d'applications est [uad_exported_selection.txt](./uad_exported_selection.txt).
<!-- Penser a bien désactiver les applications, et non les désinstallés. -->
[Ici](https://git.kennel.ml/Anri/cat/wiki/Debloat-MIUI) un petit descriptif de
quelques applications que je désactive qui sont mauvaise.
<details><summary><h2>Anciens scripts</h2></summary>
Ils restent là au cas où, mais attention ils ne sont **pas à jour**.
### Manjaro
Commande pour lancer mon installation :
```bash
curl https://git.kennel.ml/Anri/confOS/raw/branch/main/old/manjaro.sh -s | bash
```
### Ubuntu
Commande pour lancer mon installation :
```bash
curl https://git.kennel.ml/Anri/confOS/raw/branch/main/old/ubuntu.sh -s | bash
```
### WSL (Ubuntu)
Commande pour lancer mon installation :
```bash
# Lors de l'installation il vous sera demandé de choisir
# une configuration mail, choisir : "No configuration"
curl https://git.kennel.ml/Anri/confOS/raw/branch/main/old/ubuntu_wsl.sh -s | sudo bash
```
</details>
# Infos
- Import/Export clef GPG :
- Exporté clef publique : `gpg --output public.gpg --armor --export user@email`
- Exporté clef privé : `gpg --output private.gpg --armor --export-secret-key user@email`
- Importé clefs publique : `gpg --import public.gpg`
- Importé clefs privé : `gpg --allow-secret-key-import --import private.gpg`
- 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`)
- Utilisé clef pour git : `git config --global user.signingkey <numéro de la clé>`
- Git (les scripts configurent ça pour moi directement, vous devriez
donc changer !):
- `git config --global user.email "you@example.com"`
- `git config --global user.name "Your Name"`