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
@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