Adding Rust and Python
This commit is contained in:
parent
18658c95f0
commit
2bc43a7af2
3 changed files with 29 additions and 7 deletions
17
README.md
17
README.md
|
@ -132,14 +132,19 @@ Mon guide à suivre lors d'une réinstallation d'Ubuntu
|
|||
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installClipboardHistory.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Mémo de commandes utiles peu de temps après une réinstallation/mise à jour</summary>
|
||||
|
||||
-
|
||||
- Finalise l'installation de Rust avec rustup pour rustlings
|
||||
- Installe des trucs inutile pour Python
|
||||
```bash
|
||||
set -Up fish_user_paths ~/.cargo/bin
|
||||
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
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Mémo de commande utile peu de temps après une réinstallation/mise à jour</summary>
|
||||
|
||||
-
|
||||
- Désactive des éléments du "Bureau" dans Ubuntu
|
||||
```bash
|
||||
|
|
|
@ -21,6 +21,12 @@ then
|
|||
# Install Java
|
||||
bash installJava.sh
|
||||
|
||||
# Install Python useful tools
|
||||
sudo apt install python3-virtualenv python3-tk -y
|
||||
|
||||
# Install Rust
|
||||
bash installRust.sh
|
||||
|
||||
if grep "Ubuntu" /proc/version > /dev/null;
|
||||
then
|
||||
# Install Brave
|
||||
|
|
11
installRust.sh
Normal file
11
installRust.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
which curl &> /dev/null || sudo apt update && sudo apt install curl -y # Install curl if not already installed
|
||||
# Install rust
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||
source $HOME/.cargo/env
|
||||
# If fish is used, adding cargo to path
|
||||
if [ -x $HOME/.config/fish ] ; then
|
||||
set -Up fish_user_paths ~/.cargo/bin
|
||||
fi
|
||||
# Adding dev tools
|
||||
rustup component add rust-analysis
|
||||
rustup component add rls
|
Reference in a new issue