Tag: WSL

  • How To Change From WSL2 to WSL1

    This is a post on how to change a Windows Subsystem for Linux (WSL) Distribution from running on Version 2 to Version 1. WSL has two versions, the latest (2), and the original version (1). You can have many different Linux Distributions installed on your machine, and you can easily change the WSL Version for…

    read more


  • How to Reboot a WSL Distribution/Instance

    This is a post on how to reboot a Windows Subsystem for Linux (WSL) virtual machine environment on your local machine. I’ve needed to do this a few times in the past year, my WSL instance throws some random error which was only resolved after a reboot. As far as I know, we are unable…

    read more


  • How to Check WSL Versions

    WSL allows users to develop and run applications within a GNU/Linux environment on a Windows computer. Previous to this Windows Feature you might have needed VM’s or a dual boot setup for this type of test/development environment. There are 2 versions of WSL, the old (1), and the new (2). We should ideally be using…

    read more


  • How to Install Postgres on Ubuntu 20.04

    This post is a short note on how to install Postgres on Ubuntu 20.04. I’m doing this in WSL, however this shouldn’t make any difference if you’re on the same Ubuntu version. First, lets update our local packages by running the following apt command – This Postgres installation is very quick and simple. The following…

    read more


  • How to Unregister a Linux Distro in WSL

    If you want to remove a Linux distro from your Windows Subsystem for Linux (WSL) installation, you can use the wsl –unregister <distro-name> command to unregister it. This is useful for cleaning up an old installation and starting fresh with a new distro. To unregister a Linux distro in Windows Subsystem for Linux (WSL), you…

    read more


  • How to Set Default WSL Distribution

    To set your default Windows Subsystem for Linux (WSL) distribution, get the Linux distro name by running wsl -l -v, then run wsl -s to set the new default WSL distro. This post shows a demo of setting the default WSL Linux distribution on a Windows computer. This is useful if you have more than…

    read more


  • Setup SSH Keys in WSL

    Setting up SSH keys on Windows is generally done via OpenSSL or Putty. We can set this up and have quick authentication to places like GitHub or Bitbucket. But, we are also able to rely on a Linux distro in WSL for our SSH. If you are developing in WSL, this might be useful as…

    read more


  • “Config Lock Failed Operation not Permitted” – Git

    When attempting to clone a git repository on a linked folder within Windows Subsystem for Linux (WSL), I encountered the following error message: This error occurs when cloning repos to a mounted Windows drive in WSL. I am not sure of the fix for this issue, but if anyone has a solution, please let me…

    read more


  • Create a Link Between Local Windows Files and WSL

    The ln command in Linux is used to create a link between files. This is useful for sharing files between your local machine and WSL. I’m linking to a ‘projects’ folder in this post but I get an error when cloning git repos in them (chmod error). Using mounted Windows drives for version-controlled projects is…

    read more


  • Access Local Files from Windows Subsystem for Linux (WSL)

    Accessing local Windows files from a WSL distro can be achieved by navigating to the /mnt/c/ directory in your WSL Linux machine, or you can enter WSL from any Windows directory within a terminal. This post is to demo both methods described for accessing Windows files from WSL:# Navigate with cd /mnt/c/# Open WSL from…

    read more