This guide will help you set up Fedora on Windows Subsystem for Linux (WSL), install essential tools, and configure fractional scaling for graphical sessions.
- Fedora WSL Documentation
- Microsoft WSL Basic Commands
- Fedora: Running Waypipe on Microsoft Windows?
- Red Hat: Remotely Accessing a Wayland-based Application
Open PowerShell with Administrator rights and run:
wsl --install --no-distribution
Run the following command in PowerShell to reboot immediately:
shutdown.exe /r /t 0
After rebooting, list available WSL distributions:
wsl --list --online
To install Fedora (for example, Fedora Linux 42):
wsl --install -d FedoraLinux-42
Once Fedora is installed and running, install useful tools by running:
sudo sed -i '/^\[main\]$/a max_parallel_downloads=20' /etc/dnf/dnf.conf
sudo dnf install -y vim-enhanced nano bat git wget curl axel zstd bash-completion ncdu btop htop nmon tmux fuse-sshfs waypipe
ssh-keygen -t ed25519 -a 100 -N "" -f ~/.ssh/id_ed25519 -q
If fractional scaling is not working, add the following workaround:
tee ~/.wlsgconfig > /dev/null << EOF
[system-distro-env]
WESTON_RDP_DISABLE_FRACTIONAL_HI_DPI_SCALING=false
WESTON_RDP_DEBUG_DESKTOP_SCALING_FACTOR=175
EOF
wsl --shutdown