# Configuration perso pour Linux Mon guide à suivre lors d'une réinstallation d'Ubuntu ### Avant de réinstaller, sauvegarder les clés SSH ## Script global pour Ubuntu et WSL *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.* ```bash wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installGlobalScript.sh -O tmp.sh && bash tmp.sh; rm tmp.sh ``` ## Scripts pour chaque application - [Installe Brave](https://brave.com/linux/#debian-9-ubuntu-1604-and-mint-18) ```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 ``` - Désinstalle Firefox ```bash sudo snap remove firefox && rm -r $HOME/snap/firefox ``` -
Installe et configure Fish ainsi que le SSH dans Fish - Police (sous Windows CMD) : `Cascadia Mono` - Couleur texte : `#D3D0C8 (211, 208, 200)` - Couleur arrière-plan : `#2D2D2D (45, 45, 45)`
```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 ``` - 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. sudo snap install code --classic -y ``` - Remettre les clés SSH dans le dossier `$HOME/.ssh` ```bash # Pour remettre les bonnes permissions, vous pouvez exécuter cette commande après avoir remis vos clés ssh. 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 ``` - Désactive le mot de passe SU si nécessaire ```bash sudo sed -i "26s#.*#%sudo ALL=(ALL:ALL) NOPASSWD: ALL#" /etc/sudoers ``` - Installe Spotify et le patch ```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 ``` - 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) ```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 ``` - Installe [GL4Dummies](https://gl4d.api8.fr/FR/gl4d.pdf) *(temporaire)* ```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 ``` - 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 ``` - Installe Obsidian ```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 ``` - Mettre en place le VPN ```bash # En SSH au serveur, dans le dossier d'openvpn docker-compose run --rm openvpn ovpn_getclient anri > anri.ovpn ``` - Installe Flameshot ```bash sudo apt update && sudo apt install flameshot -y ``` - Installe Parsec ```bash wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installParsec.sh -O tmp.sh && bash tmp.sh; rm tmp.sh ``` - Installe Latex ```bash sudo apt update && sudo apt install texlive-full -y ``` - Installe Java (Adoptium 17.0.1) ```bash # 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 ``` - Installe le [sélecteur d'emojis](https://github.com/GaZaTu/x11-emoji-picker) ```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 ``` - Rajoute les raccourcis clavier ```bash # 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 ``` - [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 ``` - [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) ```bash gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true ``` - [Déplace la barre des tâches](https://askubuntu.com/a/966930) ```bash gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM ``` - 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 ``` - 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 ```
Mémo de commande utile peu de temps après une réinstallation/mise à jour - - Désactive des éléments du "Bureau" dans Ubuntu ```bash sudo mv /usr/share/applications/debian-xterm.desktop /usr/share/applications_backup/ ```