Table of Contents

Windows Subsystem for Linux - Debian 10.3

Osiris, Hera, Vulcan, Heracles, Poseidon, Iapetus

This guide has been tested under Windows 10 / Debian 10 and Windows 11 / Debian 13.

Installation

  1. Enable “Developer mode” in Settings –> System –> Advanced (Win 11) or Settings –> Update & Security –> For developers (Win 10)
  2. Press Windows key + R and run optionalfeatures.exe. Enable Windows Subsystem for Linux. Restart the computer.
  3. Open Windows Power Shell as Administrator, then run the following line and reboot:
    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  4. If you want to use WSL on Windows 11 Home you need to first install Hyper-V (see How to Install and Enable Hyper V in Windows 11 Home). Create the following Windows batch file and run it as administrator:
    pushd "%~dp0"
    dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
    for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
    del hyper-v.txt
    Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
    pause
  5. Restart your computer
  6. Open the Microsoft Store and search for “Linux”. Choose and get Debian, as per 2020-03-10: Debian 10 Buster, 2025-11-7: Debian 13.0 Trixie.
  7. Open Debian from the start menu and complete installation.
  8. Upgrade all packages:
    sudo apt update
    sudo apt upgrade
  9. Install packages:
    sudo apt install vim
    sudo apt install wget
    sudo apt install zip
    sudo apt install rsync
  10. Create /run/sshd folder:
    sudo mkdir /run/sshd
  11. Create a shortcut to the executable on your desktop:
    C:\Users\user\AppData\Local\Microsoft\WindowsApps\debian.exe
  12. The root file system can be found at a path similar to:
    C:\Users\bco\AppData\Local\Packages\TheDebianProject.DebianGNULinux_76v4gfsz19hv4\LocalState\rootfs
  13. Add Debian and Debian rootfs icons to the shortcuts

Files

SSH Server

Start SSH Server at Windows boot time

LAMP

Mounting encrypted drives

Mounting external drives

mkdir /mnt/f
mount -t drvfs f: /mnt/f