Easily configure your WSL environment.
- I. Install Requirements
- II. Install WSL2
- III. Install Linux
- IV. Configure WSL
- V. Use WSL with GUI
- V. Work Environmnet
-
Windows 11 or Windows 10 2004 and higher
-
Minimum 3.0 GB storage space.
-
Minimum 2.4 GB RAM.
-
Windows PowerShell with
Set-ExecutionPolicy
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Setup WSL2 on Windows.
Note
Before you start it, RUN the Terminal(PowerShell) application as ADMINISTRATOR.
Caution
When you use this process, plase careful it will be restart Windows.
Invoke-Expression (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/leelsey/set4wsl/main/set4wsl_init.ps1" -UseBasicParsing).Content
If download set4wsl_init.ps1
, try this:
powershell -ExecutionPolicy Bypass -File set4wsl_init.ps1
If not work, try Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
and retry it.
Download and insall Default(Ubuntu) via WSL.
wsl --install
Alternative Linux:
-
Ubuntu (Default)
wsl --install ubuntu
-
Debian
wsl --install debian
-
Kali
wsl --install kali-linux
Run this script on Windows for configure WSL. Before run this, you need minimum 3GB storage space.
Invoke-Expression (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/leelsey/set4wsl/main/set4wsl.ps1" -UseBasicParsing).Content
If download set4wsl.ps1
, try this:
# Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
powershell -ExecutionPolicy Bypass -File set4wsl.ps1
This all command use on Linux.
Then install gui application and run GUI application.
[AppName] &
For example:
# e.g. epiphany-browser
sudo apt install -y epiphany-browser
epiphany-browser &
If you use Kali Linux, try Win-KeX.
sudo apt install -y kali-win-kex
Turn on Firewall
-
Use Win-Kex Window Mode.
kex --win
-
Stop Win-Kex Window Mode.
kex --win --stop
-
Use Win-Kex Seamless Mode.
kex --sl
-
Stop Win-Kex Seamless Mode.
kex --sl --stop
-
Turn on Kali Linux sound.
kex --win --sound
Setup Kali Environment. Before setup, pdate all packages first:
sudo apt update && sudo apt full-upgrade -y
Metapackages for Kali Linux:
-
Setup to install minimal Kali tools.
sudo apt install -y kali-linux-core
Installs only the essential core components. No networking, wireless, forensic tools included. (When installing Kali Linux on WSL, this is the default.)
-
Setup to install default Kali tools.
sudo apt install -y kali-linux-default
Installs the commonly used basic tools (e.g., nmap, metasploit).
-
Setup to install large Kali tools.
sudo apt install -y kali-linux-large
kali-linux-default plus many additional tools (including wireless, web, forensic tools). Recommended for most users.
-
Setup to install all Kali tools.
sudo apt install -y kali-linux-everything
Installs every available Kali tool (very large size, useful for offline environments).