Install mlocate (Optional: to fix mlocate errors) $ sudo apt-get install mlocate
Gedit /path/to/your/file/ Autoclean sudo bash -c "apt-get update & apt-get -y upgrade & apt-get -y autoremove & apt-get -y clean"
Sudo apt-get update & sudo apt-get install -no-install-recommends yarnĮxport PATH="$(yarn global bin):$PATH" Upgrade distro:ĭownload and install VcXsrv and add this to ~/.bashrc and ~/.zshrc : Npm install -g electron -unsafe-perm=true -allow-root -scripts-prepend-node-path Optional Steps: Install yarn: curl -sS | sudo apt-key add -Įcho "deb stable main" | sudo tee /etc/apt//yarn.list If global installs for npm fail, that's because WSL only has root user. Sometimes, if a dependency is missing and an install fails, you must manually remove it before attempting to reinstall, so you have to do: asdf remove The local config override the home directory version. tool-versions file to your home directory. The previous asdf global command is actually writing a. It will contain the language and version you chose, so whenever you go back to that directory ASDF will set the correct version for the language you need. tool-versions file to the directory you're at when you ran it. Then you can install any version you need like this: asdf install ruby 2.4.2Īfter you install a particular language version, I always set one as the system default like this: asdf global ruby 2.4.2Īnd in a particular project directory, I can set it to use any other version, just for that project: asdf local ruby 2.3.4 You can see what versions are available for a particular language like this: asdf list all ruby You can update the plugins all at once with this simple command: # Imports Node.js release team's OpenPGP keys to main keyring:īash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring Install one of the dozens of plugins: asdf plugin-add python $HOME/.asdf/completions/asdf.bash' > ~/.zshrc $HOME/.asdf/completions/asdf.bash' > ~/.bashrc Install asdf version manager: git clone ~/.asdf -branch v0.8.0 Set zsh as your default terminal: chsh -s $(which zsh) Install oh-mh-zsh and configure zsh: sh -c "$(curl -fsSL )"
$ sudo apt-get install libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl imagemagick libmagickwand-dev Install some development tools: $ sudo apt-get install git zsh curl make build-essential $ sudo apt-get update & sudo apt-get upgrade Install common tools: $ sudo apt-get install software-properties-common Set your user as default user of WSL (in PowerShell : $.
Set a password for root user as well: passwd root User Management:Ĭreate user & configure password and give your user root access: $ useradd -create-home -d /home/username username You are ready, run your distro using the shortcut you created and move to the next step. If you want to avoid appending Windows $PATH (optional) : $. Set as default so wsl loads this distro : $.
f : The location for the shortcut to be created f : Distro file that we downloaded earlierĬreate shortcut: $. Install the distro and give it a name, you will use this name to create shortcut and set this distro to default distro later: $.
To install distro we use LxRunOffline which gives us the option to install the distro on any directory that we want.ĭownload the latest long term support Ubuntu from or download your prefered distro from LxRunOffline wiki and copy it to LxRunOffline directory. Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux