- Select the latest release tag and download the assets
- Unzip the directory and run install.cmd
Alternatively:
- Select the
Actionstab at the top - Select the
Build WSL Distro customworkflow - Select the latest successful ✅ workflow runs
- If there is none, manually
Run workflow
- If there is none, manually
- Under
Artifacts, select and download the artifact - Unzip the directory and run install.cmd
Build WSL custom Distribution workflow
- Builds the docker image from Dockerfile and pushes it to Docker Hub
- Runs and export the docker container to a compressed tar.gz archive file
- Bundles the WSL install script with the installation archive file into an artifact for download
docker build -t <image_name>:<tag> .
docker run -dit --hostname <hostname> --name <container_name> <image_name>
docker exec -it <container_name> zsh -u <user>
- To set password for users
- Use root user and run
passwd
- Use root user and run
docker export <container_name> > <file_name>.tar
# compressed tar archive
docker export <container_name> | gzip > <file_name>.tar.gzsudo groupadd docker # Create the docker group if it does not exist
sudo usermod -aG docker $USER # Add your user to the docker group
newgrp docker # Log in to the new docker group (to avoid having to log out / log in again; but if not enough, try to reboot)wsl --import <DistroName> <InstallLocation> <InstallTarFile>
- The
<InstallTarFile>can be a tar.gz file - The distribution will be installed to
<InstallLocation>/ext4.vhdxwhich is the disk image file of the Linux's root filesystem (virtual hard disk).
Example /etc/wsl.conf:
# Set default user
[user]
default=user
[interop]
appendWindowsPath=false
# Enable Systemd for WSL2 in Windows 11
[boot]
systemd=trueAlternatively, you can change the default user for a distribution using PowerShell:
<DistroName> config --default-user <user>
wsl -d <DistroName> -u <user>
wsl -s <DistroName>
wsl -l -v
wsl --mount <DiskPath>
wsl --unmount <DiskPath>wsl --unregister <DistroName>
Downloads for recommended fonts:
Installation:
- Unzip the directory
- Select all the fonts
- Right-click and "Install all"
Tip
It might be useful to disable ligatures
Windows Terminal Usage:
- Open up Settings in Windows Terminal
Ctrl-, - Select the Profile(s) that you want to apply the font
- Scroll down to "Additional Settings" and click "Appearance"
- Change "Font face" and hit "Save"
- Additionally, to disable ligatures, click "Open JSON file" and edit:
"font": {
"face": "JetBrainsMono Nerd Font",
"features": {
"calt": 0,
},
},