Using WSL (Windows Subsystem for Linux) to extend your your Windows experience

Table Of Contents

WSL - Windows Subsystem for Linux

Overview

Windows Subsystem for Linux is a compatibility layer for running Linux binary executables natively on Windows 10 and Windows Server 2019. In May 2019, WSL 2 was announced, introducing important changes such as a real Linux kernel, through a subset of Hyper-V features.

Also known as WSL, it has revolutionized the way I interact with my environment in Windows. In my case, i’m primarily using Ubuntu 20.04:

tdieter@d-desktop:/coderepo/troydieter.com$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04 LTS
Release:        20.04
Codename:       focal

In addition to Ubuntu, there is multiple Linux distributions to choose from:

Windows Subsystem for Linux allows me to run all my native tools to Linux that i’m accustomed to.

Backups

Backups of the environment (can) still be a manual process. When backed up, it makes it easier to migrate to other machines or disaster recovery.

General practice for backups:

rsync --archive --verbose --delete /home/yourhomeusername/ /mnt/c/Users/yourwindowsusername/wsl2-backup/

Thanks to Stephen’s Thoughts, he has an automated way to perform these backups using a bash script (look towards the bottom).

Installation

As referenced by the official Microsoft documentation, please use the following to install WSL2.

Share :

Related Posts

Diagramming using CloudMapper

The snowball effect for organizations & startups using AWS is a real thing. You may start experimenting with using one of the cloud platforms (AWS in this article) and soon to find out you have quite the labyrinth of policies, groups, users, access keys and more. This handy tool developed by the security company DUO (now owned by Cisco) will help you untangle the ball of yarn that started with a back & forth between you and the developers.

Read More

Extending AWS CLI using aws-shell

Do you yearn for auto-completion and manual pages (automatically) within the AWS CLI tool? Look no more, as aws-shell is here to save (or shell?) the day.

Read More

Sizing AWS EFS accordingly

AWS Elastic File System is a great tool for using shared storage in auto scaling group situations. There are two throughput modes to choose from for your file system, Bursting Throughput and Provisioned Throughput. With Bursting Throughput mode, throughput on Amazon EFS scales as the size of your file system in the standard storage class grows. EFS performance is well documented in this AWS knowledge base article, so we won’t get too in-depth here.

Read More