In this repository you can find default setups for various Linux based distributions. The setups are supplied as Docker Containers that can be exported to .tar files and then imported into WSL as a distribution.
Build and setup one of the available WSL distributions the following software is required to be installed on your machine:
- Docker Desktop for building the container image and exporting it.
- WSL installed and enabled to import and run the WSL distribution.
- Start a shell prompt as administrator
- Run the following sell commands:
# Enables Hyper-V Tier 1 Hypervisor features
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
# Installs Windows Store version of WSL without a default distrobution
wsl --install --no-distribution
# Use WSL version 2 as default
wsl --set-default-version 2
# Check for updates to WSL
wsl --update
Docker Desktop depends on you already having installed WSL.
Install through console:
- Start a shell prompt as administrator
- Run the following sell command:
winget install -e --id Docker.DockerDesktop
Install through GUI:
- Go to the Docker Desktop installation website
- Download and install
All the available distributions have a README file with install instructions available in their respective folder. Currently supported Linux Distributions are:
- ArchLinux
After setting up your WSL distribution, you might want to map files or folders from your host Windows PC into WSL.
The folder ./scripts
contains a PowerShell file with commands you can import into your shell session and run.
From a PowerShell console, cd into the ./scripts
folder.
Then import the shell commands into your current session by running:
. .\scripts\wsl-helpers.ps1
To map both your AWS CLI and Github CLI settings from Windows into your WSL run:
Set-WSLDefaultSymlinks
Run the following commands to install via Script:
# From the root of the directory run in PowerShell:
. .\scripts\wsl-helpers.ps1
# Then change into the archlinux folder:
cd archlinux
# Finally run the install script.
Install-LinuxDistribution -UserName "initials" -Name "Firstname Lastname" -Email "mail@domain.tld" -LinuxDistroName ArchLinux