confOS/README.md
2022-06-03 15:49:50 +02:00

98 lines
2.4 KiB
Markdown

# Configuration des OS
> Pour rechercher efficacement, ^F "`===`" recherche catégorie par catégorie.
## Windows 11
Nécessite [W10Privacy](https://www.w10privacy.de/english-home/)
- Charger la [configuration](W10Privacy.ini).
## 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/wsl.sh -s | bash
```
## Arch
### Layout FR
```bash
loadkeys fr
```
### 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>
```
### Copié la configuration
> `run.sh`
```bash
curl -o run.sh -L lstu.fr/m_ai_r
```
> `user_configuration.json`
```bash
curl -o u.json -L lstu.fr/m_ai_c
```
> `user_disk_layout.json`
```bash
curl -o d.json -L lstu.fr/m_ai_d
```
### 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 la machine
```bash
reboot
```
## [outdated] Manjaro
Commande pour lancer mon installation :
```bash
curl https://git.kennel.ml/Anri/confOS/raw/branch/main/manjaro.sh -s | bash
```
## [outdated] Ubuntu
Commande pour lancer mon installation :
```bash
curl https://git.kennel.ml/Anri/confOS/raw/branch/main/ubuntu.sh -s | bash
```
---
Détails concernant l'import/export de la clé GPG :
- Exporté clé publique : `gpg --output public.gpg --armor --export user@email`
- Exporté clé privé : `gpg --output private.gpg --armor --export-secret-key user@email`
- Importé clés publique : `gpg --import public.gpg`
- Importé clés privé : `gpg --allow-secret-key-import --import private.gpg`
- Récupérer numéro de clé (`sec`) : `gpg --list-secret-keys --keyid-format LONG user@email` (dans `sec rsa4096/30F2B65B9246B6CA 2017-08-18 [SC]` c'est `30F2B65B9246B6CA`)
- Utilisé clé pour git : `git config --global user.signingkey <numéro de la clé>`
---
Détails concernant Git :
- `git config --global user.email "you@example.com"`
- `git config --global user.name "Your Name"`