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…
-
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…
-
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…
-
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…
-
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…
-
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…
-
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…
-
“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…
-
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…
-
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…
Recent Posts
- Troubleshooting Database Mirroring Issues in SQL Server
- What’s New in SQL Server 2025
- Time To Revive This Blog
- How to Set Environment Variables in PowerShell
- Temp Tables in SQL Server
Categories
- AWS (5)
- DBA Stories (1)
- Linux (34)
- MySQL (5)
- Other (2)
- Postgres (7)
- PowerShell (48)
- RedShift (7)
- SQL Server (80)
- Windows Admin (64)
Tags
Active Directory (AD) AWS CLI CDC Certificates & Encryption Change Data Capture CSV Files Database Admin Database Backups Data Types Deleting Data Error Messages Featured Git Git Commands Git Log Installing SQL Server Linked Servers Linux Admin Measuring Databases MSSQL SPIDs NetFirewallProfile New-Item PowerShell PowerShell Create Folder PowerShell Delete Files PowerShell ForEach PowerShell Tips PowerShell Version Restoring Databases SQL Server Agent SQL Server ETL SQL Server Management Studio (SSMS) SQL Server Processes SQL Server Scripts SQL Tips SSH SSMS Tips Temp DB Windows Admin Windows Firewall WordPress Tutorials WSL WSL1 WSL2 WSL Ubuntu WSL Version