8000 GitHub - leelsey/set4wsl: Easily configure your WSL environment
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

leelsey/set4wsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Set4wsl

Easily configure your WSL environment.

I. Requirements

  • 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

II. Install WSL2

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.

III. Install Linux

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

IV. Configure WSL

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

V. Use WSL with GUI

This all command use on Linux.

WSLg

Then install gui application and run GUI application.

[AppName] &

For example:

# e.g. epiphany-browser
sudo apt install -y epiphany-browser
epiphany-browser &

Win-KeX

If you use Kali Linux, try Win-KeX.

sudo apt install -y kali-win-kex

Turn on Firewall

KeX Window Mode

  • Use Win-Kex Window Mode.

    kex --win
  • Stop Win-Kex Window Mode.

    kex --win --stop

KeX Seamless Mode

  • Use Win-Kex Seamless Mode.

    kex --sl
  • Stop Win-Kex Seamless Mode.

    kex --sl --stop

KeX more command

  • Turn on Kali Linux sound.

    kex --win --sound

VI. Work Environment

Kali Linux

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).

About

Easily configure your WSL environment

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0