Skip to content

Instantly share code, notes, and snippets.

@nico3333fr
Last active May 16, 2022 10:57
Show Gist options
  • Save nico3333fr/891a256552d4c78138274d5dd8b3a3d6 to your computer and use it in GitHub Desktop.
Save nico3333fr/891a256552d4c78138274d5dd8b3a3d6 to your computer and use it in GitHub Desktop.
Install a development environment on Window Subsystem Linux

Install WSL

https://docs.microsoft.com/en-us/windows/wsl/install-win10

Install/update

Once WSL installed (I made this with Ubuntu LTS), launch:

  • sudo apt-get update && sudo apt-get upgrade

  • sudo apt-get install build-essential

  • curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash (check last version on the repo)

To update git (https://www.bytesized.xyz/how-to-update-git-in-ubuntu-windows-subsystem-for-linux/):

  • sudo add-apt-repository ppa:git-core/ppa
  • sudo apt update
  • sudo apt install git

Create a private key

https://www.ssh.com/ssh/keygen

For private key session (when your private key is created)

  • exec ssh-agent bash
  • ssh-add
@dhoko
Copy link

dhoko commented Dec 17, 2019

Donc il vaut mieux récupérer ce fichier install.sh ? Ou il n'y a aucun risque qu'il disparaisse ?

tu fais comme c'est dit dans le readme, tu lances la commande cf ce que Nico a copié.

@nico3333fr
Copy link
Author

Vala, j'ai updaté le bouzin. A l'occase, faudra détailler les autres étapes, pour les débutants, toussa.

@nico3333fr
Copy link
Author

nico3333fr commented Nov 16, 2021

A vérifier aussi si les apt-get update déconnent, si l'heure du WSL n'est pas correcte => sudo hwclock --hctosys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment