This repository has been archived on 2022-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
manjaroConfiguration/README.md

186 lines
7.4 KiB
Markdown
Raw Normal View History

2021-11-08 15:50:48 +01:00
# Configuration perso pour Linux
2021-11-08 16:31:03 +01:00
Mon guide à suivre lors d'une réinstallation d'Ubuntu
2021-12-19 22:48:40 +01:00
### <u>Avant de réinstaller, sauvegarder les clés SSH **ET** GPG.</u>
<details><summary>Détails concernant l'import/export de la clé GPG</summary>
2021-12-19 22:40:19 +01:00
- 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`
- Avoir le numéro de la clé (`sec`) : `gpg --list-secret-keys --keyid-format LONG user@email` (dans `sec rsa4096/30F2B65B9246B6CA 2017-08-18 [SC]` c'est `30F2B65B9246B6CA`)
- Utiliser cette clé pour Git : `git config --global user.signingkey <numéro de la clé>`
2021-12-19 22:48:40 +01:00
</details>
2021-11-08 16:31:03 +01:00
2021-11-12 13:42:24 +01:00
## Script global pour Ubuntu et WSL
2021-11-14 21:24:22 +01:00
*Regarde en détail [le script pour Ubuntu et WSL](installGlobalScript.sh) pour connaître quels apps sont installées et quelle configuration est appliquée.*
2021-11-11 23:02:44 +01:00
```bash
2021-11-12 13:43:49 +01:00
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installGlobalScript.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
2021-11-11 23:02:44 +01:00
```
## Scripts pour chaque application
- [Installe Brave](https://brave.com/linux/#debian-9-ubuntu-1604-and-mint-18)
2021-11-08 16:31:03 +01:00
```bash
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installBrave.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
2021-11-08 16:31:03 +01:00
```
2021-11-08 15:50:48 +01:00
- Désinstalle Firefox
2021-11-08 16:31:03 +01:00
```bash
sudo snap remove firefox && rm -r $HOME/snap/firefox
2021-11-08 16:31:03 +01:00
```
2021-11-08 15:50:48 +01:00
2021-11-08 16:42:34 +01:00
- <details><summary>Installe et configure Fish ainsi que le SSH dans Fish</summary>
2021-11-14 02:45:44 +01:00
- Police (sous Windows CMD) : `Cascadia Mono`
- Couleur texte : `#D3D0C8 (211, 208, 200)`
- Couleur arrière-plan : `#2D2D2D (45, 45, 45)`
2021-11-08 16:42:34 +01:00
</details>
2021-11-08 16:31:03 +01:00
```bash
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installFish.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
```
2021-11-12 17:51:18 +01:00
- Installe VSCode
```bash
# Possible qu'il y est un problème de "keyrings", dans ce cas il faut
# se rendre dans `seahorse` et désactiver le mot de passe du keyring
# par défaut.
2021-11-25 21:20:34 +01:00
sudo snap install code --classic
2021-11-12 17:51:18 +01:00
```
2021-11-08 16:31:03 +01:00
- Remettre les clés SSH dans le dossier `$HOME/.ssh`
2021-11-14 21:39:56 +01:00
```bash
2021-11-14 21:43:03 +01:00
# Pour remettre les bonnes permissions, vous pouvez exécuter cette commande après avoir remis vos clés ssh.
2021-11-14 21:39:56 +01:00
sudo chown $USER:$USER $HOME/.ssh/* && sudo chmod u=r,g=,o= $HOME/.ssh/* && sudo chmod g=r,o=r $HOME/.ssh/*.pub && sudo chmod g=r,o=r $HOME/.ssh/config && sudo chmod g=r,o=r $HOME/.ssh/environment
```
2021-11-08 16:31:03 +01:00
2021-11-10 15:27:46 +01:00
- Désactive le mot de passe SU si nécessaire
2021-11-08 16:31:03 +01:00
```bash
2021-11-14 21:22:30 +01:00
sudo sed -i "26s#.*#%sudo ALL=(ALL:ALL) NOPASSWD: ALL#" /etc/sudoers
2021-11-08 16:31:03 +01:00
```
2021-11-08 20:14:37 +01:00
- Installe Spotify et le patch
2021-11-08 18:32:23 +01:00
```bash
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installSpotify.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
```
Faculativement, lance ce script pour [supprimer la bannière en bas](https://github.com/abba23/spotify-adblock/issues/12#issuecomment-858357326) (attention il va falloir refaire la manipulation à chaque mise-à-jour)
```bash
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/removeBannerSpotify.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
```
2021-11-09 13:49:43 +01:00
2021-11-08 20:14:37 +01:00
- Installe [Syncthing](https://apt.syncthing.net/) et le [lance au démarrage](https://docs.syncthing.net/users/autostart.html#how-to-set-up-a-system-service)
2021-11-08 20:11:56 +01:00
```bash
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installSyncthing.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
```
2021-11-09 13:49:43 +01:00
2021-11-12 15:55:49 +01:00
- Installe [GL4Dummies](https://gl4d.api8.fr/FR/gl4d.pdf) *(temporaire)*
2021-11-08 20:18:48 +01:00
```bash
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installgl4D.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
```
2021-11-09 13:49:43 +01:00
2021-11-08 21:51:18 +01:00
- Installe Discord
```bash
wget -q --show-progress "https://discord.com/api/download?platform=linux&format=deb" -O discord.deb && sudo apt install ./discord.deb -y && rm discord.deb
```
2021-11-08 22:43:14 +01:00
- Installe Obsidian
2021-11-08 21:51:18 +01:00
```bash
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installObsidian.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
```
2021-11-09 13:49:43 +01:00
2021-11-10 15:27:46 +01:00
- Mettre en place le VPN
2021-11-08 22:50:29 +01:00
```bash
# En SSH au serveur, dans le dossier d'openvpn
docker-compose run --rm openvpn ovpn_getclient anri > anri.ovpn
```
2021-11-09 13:49:43 +01:00
2021-11-08 22:49:04 +01:00
- Installe Flameshot
```bash
sudo apt update && sudo apt install flameshot -y
2021-11-08 22:51:32 +01:00
```
2021-11-09 13:49:43 +01:00
- Installe Parsec
```bash
2021-11-09 13:54:37 +01:00
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installParsec.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
2021-11-09 13:49:43 +01:00
```
2021-11-10 15:27:46 +01:00
- Installe Latex
2021-11-09 14:08:11 +01:00
```bash
sudo apt update && sudo apt install texlive-full -y
```
2021-11-14 01:13:18 +01:00
- Installe Java (Adoptium 17.0.1)
```bash
2021-11-14 20:13:51 +01:00
# Utilises SDKMAN, gère Fish si installé
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installJava.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
```
- Installe OnlyOffice
```bash
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installOnlyOffice.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
```
2021-11-12 13:15:00 +01:00
- Installe le [sélecteur d'emojis](https://github.com/GaZaTu/x11-emoji-picker)
2021-11-10 16:41:52 +01:00
```bash
wget -q --show-progress https://raw.githubusercontent.com/GaZaTu/x11-emoji-picker/master/install.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
2021-11-10 16:41:52 +01:00
```
2021-11-10 16:41:29 +01:00
2021-11-10 15:27:46 +01:00
- Rajoute les raccourcis clavier
```bash
2021-11-12 15:55:49 +01:00
# Attention le script ne gère pas les raccourcis qui sont déjà assignés à certaines touches
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/createKeyboardsShortcut.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
```
2021-11-08 22:52:46 +01:00
2021-11-10 15:27:46 +01:00
- [Retire la corbeille](https://ubuntuhandbook.org/index.php/2021/10/remove-trash-from-dock-ubuntu/) de la barre des tâches
```bash
gsettings set org.gnome.shell.extensions.dash-to-dock show-trash false
```
2021-11-17 20:17:39 +01:00
- [Déplace le menu des Applications](https://medium.com/@suneel.omrey/move-show-applications-right-to-left-of-the-dock-in-ubuntu-18-04-9592dfd18c9a)
2021-11-17 15:04:07 +01:00
```bash
gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true
```
2021-11-17 20:17:39 +01:00
- [Déplace la barre des tâches](https://askubuntu.com/a/966930)
2021-11-17 15:14:06 +01:00
```bash
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM
```
2021-11-12 15:55:49 +01:00
- Historique du presse-papier
```bash
# Lisez le fichier (ou les logs à l'exécution) car ce script nécessite des manipulations en plus
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installClipboardHistory.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
```
2021-11-14 22:05:14 +01:00
- Installe des trucs inutile pour Python
```bash
sudo apt update && sudo apt install python3-virtualenv python3-tk -y
```
- Installe Rust
```bash
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installRust.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
```
2021-12-01 11:46:38 +01:00
- Installe MultiMC
```bash
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installMultiMC.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
```
- Permet de réduire une fenêtre ouverte au click dans la barre des tâches
```bash
gsettings set org.gnome.shell.extensions.dash-to-dock click-action minimize
```
2021-11-08 22:51:32 +01:00
<details>
2021-11-14 22:05:14 +01:00
<summary>Mémo de commande utile peu de temps après une réinstallation/mise à jour</summary>
2021-11-08 22:51:32 +01:00
-
2021-11-10 15:27:46 +01:00
- Désactive des éléments du "Bureau" dans Ubuntu
2021-11-08 22:51:32 +01:00
```bash
sudo mv /usr/share/applications/debian-xterm.desktop /usr/share/applications_backup/
```
2021-11-09 13:54:37 +01:00
</details>