Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kurobeats
Last active January 31, 2021 10:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurobeats/84be2b31e1ceb967f5a61f058d30629e to your computer and use it in GitHub Desktop.
Save kurobeats/84be2b31e1ceb967f5a61f058d30629e to your computer and use it in GitHub Desktop.
Using Fedora 33 with Microsoft’s WSL2

Step 1

Get https://github.com/fedora-cloud/docker-brew-fedora/tree/33/x86_64

Step 2

7z extract fedora-33.20201124-x86_64.tar.xz to fedora-33.20201124-x86_64.tar

Step 3

wsl.exe --import Fedora-33 C:\distros\Fedora-33 .\fedora-33.20201124-x86_64.tar

Step 4

wsl.exe -d Fedora-33

Step 5

dnf update && dnf install wget curl sudo ncurses dnf-plugins-core dnf-utils passwd findutils cracklib-dicts -y

Step 6

useradd -G wheel yourusername

passwd yourusername

Step 7

Get-ItemProperty Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss*\ DistributionName | Where-Object -Property DistributionName -eq Fedora-33 | Set-ItemProperty -Name DefaultUid -Value 3E8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment