2022-03-30 18:08:02 +02:00
|
|
|
# Configuration des OS
|
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
|
|
|
|
Nécessite [W10Privacy](https://www.w10privacy.de/english-home/)
|
2022-03-30 19:38:21 +02:00
|
|
|
- Charger la [configuration](W10Privacy.ini).
|
2022-03-30 18:08:02 +02:00
|
|
|
|
2022-04-09 01:24:02 +02:00
|
|
|
## WSL (Ubuntu)
|
2022-03-30 18:08:02 +02:00
|
|
|
Commande pour lancer mon installation :
|
|
|
|
```bash
|
2022-04-09 01:23:43 +02:00
|
|
|
# Lors de l'installation il vous sera demandé de choisir
|
|
|
|
# une configuration mail, choisir : "No configuration"
|
2022-03-30 19:40:43 +02:00
|
|
|
curl https://git.kennel.ml/Anri/confOS/raw/branch/main/wsl.sh -s | bash
|
2022-03-30 18:08:02 +02:00
|
|
|
```
|
|
|
|
|
2022-06-03 15:14:40 +02:00
|
|
|
## Arch
|
|
|
|
### Layout FR
|
2022-06-03 15:21:23 +02:00
|
|
|
```bash
|
|
|
|
loadkeys fr
|
|
|
|
```
|
2022-06-03 15:14:40 +02:00
|
|
|
|
|
|
|
### Récupération clé hashée
|
2022-06-03 15:20:58 +02:00
|
|
|
```bash
|
2022-06-03 15:24:19 +02:00
|
|
|
wpa_passhrase <SSID> <clé WIFI> > /var/lib/iwd/<SSID>.psk
|
2022-06-03 15:20:58 +02:00
|
|
|
```
|
2022-06-03 15:14:40 +02:00
|
|
|
|
|
|
|
### Ajout entête
|
2022-06-03 15:20:58 +02:00
|
|
|
```bash
|
|
|
|
echo -e "[Security]\nPreSharedKey=" >> /var/lib/iwd/<SSID>.psk
|
|
|
|
```
|
2022-06-03 15:14:40 +02:00
|
|
|
|
|
|
|
### Modification fichier pour ne garder que l'entête
|
2022-06-03 15:20:58 +02:00
|
|
|
```bash
|
|
|
|
nano /var/lib/iwd/<SSID>.psk
|
|
|
|
```
|
2022-06-03 15:14:40 +02:00
|
|
|
|
|
|
|
### Connexion au WiFi
|
2022-06-03 15:20:58 +02:00
|
|
|
```bash
|
|
|
|
iwctl station wlan0 connect <SSID>
|
|
|
|
```
|
2022-06-03 15:14:40 +02:00
|
|
|
|
|
|
|
### Copié la configuration
|
2022-06-03 15:22:08 +02:00
|
|
|
> `run.sh`
|
2022-06-03 15:20:58 +02:00
|
|
|
```bash
|
2022-06-03 15:27:35 +02:00
|
|
|
curl -o run.sh -L lstu.fr/m_ai_r
|
2022-06-03 15:20:58 +02:00
|
|
|
```
|
2022-06-03 15:14:40 +02:00
|
|
|
|
2022-06-03 15:22:08 +02:00
|
|
|
> `user_configuration.json`
|
2022-06-03 15:20:58 +02:00
|
|
|
```bash
|
2022-06-03 15:27:35 +02:00
|
|
|
curl -o u.json -L lstu.fr/m_ai_c
|
2022-06-03 15:20:58 +02:00
|
|
|
```
|
2022-06-03 15:14:40 +02:00
|
|
|
|
2022-06-03 15:22:08 +02:00
|
|
|
> `user_disk_layout.json`
|
2022-06-03 15:20:58 +02:00
|
|
|
```bash
|
2022-06-03 15:27:35 +02:00
|
|
|
curl -o d.json -L lstu.fr/m_ai_d
|
2022-06-03 15:20:58 +02:00
|
|
|
```
|
2022-06-03 15:14:40 +02:00
|
|
|
|
2022-06-03 15:29:58 +02:00
|
|
|
### Lancé la configration
|
|
|
|
> Rendre le script exécutable
|
|
|
|
```bash
|
|
|
|
chmod +x run.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
> Lancer le script
|
|
|
|
```bash
|
|
|
|
./run.sh
|
|
|
|
```
|
|
|
|
|
2022-06-03 15:14:40 +02:00
|
|
|
## [outdated] Manjaro
|
2022-03-30 18:08:02 +02:00
|
|
|
Commande pour lancer mon installation :
|
|
|
|
```bash
|
2022-03-30 19:40:43 +02:00
|
|
|
curl https://git.kennel.ml/Anri/confOS/raw/branch/main/manjaro.sh -s | bash
|
2022-03-30 18:08:02 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
## [outdated] Ubuntu
|
|
|
|
Commande pour lancer mon installation :
|
|
|
|
```bash
|
2022-03-30 19:40:43 +02:00
|
|
|
curl https://git.kennel.ml/Anri/confOS/raw/branch/main/ubuntu.sh -s | bash
|
2022-03-30 18:08:02 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
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é>`
|
2022-04-11 17:55:45 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
Détails concernant Git :
|
|
|
|
- `git config --global user.email "you@example.com"`
|
|
|
|
- `git config --global user.name "Your Name"`
|