Skip to main content

Posts

Showing posts from May, 2022

WSL enable copy/paste shortcuts

 I moved to Windows recently, but still, I need Ubuntu installed in WSL for some of my work. You can enable Ctrl + Shift + C / Ctrl + Shift + V shortcuts for copy/paste. Right-click on the title bar and select Properties from the context menu. In the Options tab, tick the Use Ctrl+Shift+C/V as Copy/Paste option. Click OK. Now, we are good to copy/paste similar to the Ubuntu native shortcuts.

Install Docker on Windows 11 with WSL Ubuntu 22.04

This is to install Docker within Ubuntu WSL without using the Windows Docker application. Follow the below steps. Install Ubuntu 22.04 WSL 1. Enable Windows Subsystem for Linux and Virtual Machine platform Go to Control Panel -> Programs -> Programs and Features -> Turn Windows features on or off 2. Switch to WSL 2 Open Powershell and type in the below command. wsl --set-default-version 2 If you don't have WSL 2, download the latest WSL 2 package and install it.  3. Install Ubuntu Open Microsoft Store and search for Ubuntu. Select the version you intend to install. I'd use the latest LTS version Ubuntu 22.04. Click on the Get button. It will take a couple of minutes to download and install. 4. Open up the installed Ubuntu version that was installed. If you get an error like the below image, make sure to install the WSL2 Kernel update .  If it's an older Ubuntu version the error message would be something like the image below. Error: WSL 2 requires an update to its