Skip to content

DustVoice's WSL from scratch

This guide is an attempt at providing a guide for my WSL 2 setup based on Arch Linux, or rather ArchWSL.

It is mainly intended as a set of personal mental crutches, so the following disclaimer applies

I segmented this guide into multiple parts for better structuring

Syntactic Sugar

Throughout this document I use some special elements to make it easier for the reader to retrieve information at a glance.

Packages

At the beginning of a chapter, I sometimes include a list of packages. This is an accumulated list of packages mentioned throughout this chapter. It makes it easier to see which packages are supposed to be installed, so nothing is forgotten. Mandatory or strongly suggested packages are checked, optional ones are not.

Asides

I use Asides in some places to provide some additional notes, comments, tips or warnings.

Terminal and Code blocks

I try to enhance the code blocks with some useful information, such as language/fileformat, filename, etc.

Executing a command within Windows, for example, will normally be marked by a block, highlighted with PowerShell-specific syntax

Terminal window
Get-Language
which.exe wsl

Executing a command from within WSL will be marked by a normal terminal frame. An optional directory to run the commmand in, can also be specified

~/dotfiles
ls -la | grep ".el"

If a file or code snippet is written in a specific language, it will be also highlighted appropriately

println!("Hello world");

A text file also has its appropriate symbol. A filepath can optionally be specified, same as with a code snippet.

~/log.txt
[INFO:] Test