Adding Rust and Python
This commit is contained in:
parent
18658c95f0
commit
2bc43a7af2
3 changed files with 29 additions and 7 deletions
19
README.md
19
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
|
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>
|
- Installe des trucs inutile pour Python
|
||||||
<summary>Mémo de commandes utiles peu de temps après une réinstallation/mise à jour</summary>
|
```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
|
||||||
|
```
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Mémo de commande utile peu de temps après une réinstallation/mise à jour</summary>
|
||||||
|
|
||||||
-
|
|
||||||
- Finalise l'installation de Rust avec rustup pour rustlings
|
|
||||||
```bash
|
|
||||||
set -Up fish_user_paths ~/.cargo/bin
|
|
||||||
```
|
|
||||||
-
|
-
|
||||||
- Désactive des éléments du "Bureau" dans Ubuntu
|
- Désactive des éléments du "Bureau" dans Ubuntu
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -21,6 +21,12 @@ then
|
||||||
# Install Java
|
# Install Java
|
||||||
bash installJava.sh
|
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;
|
if grep "Ubuntu" /proc/version > /dev/null;
|
||||||
then
|
then
|
||||||
# Install Brave
|
# 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