Skip to content

Minimal container images with low-to-zero CVEs for development in WSL (Windows Subsystem for Linux).

Notifications You must be signed in to change notification settings

cdhtlr/WolfiWSL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

WolfiWSL

Tutorial for installing Wolfi WSL images + calling Windows applications without any hassle.

Open the WSL Manager application (download it first from bostrot/wsl2-distro-manager if you don't have it yet), click "Add new instance", then enter the required data.

Open Wolfi from Windows Terminal then enter the following command

apk update && apk upgrade
apk add mount libstdc++ bash curl sudo make git --no-cache
git clone https://github.com/wslutilities/wslu ~/wslu && cd ~/wslu
bash configure.sh
make
sudo make install && sudo install -m755 extras/scripts/wslu-uninstall /usr/bin
apk del --purge sudo make git && apk cache clean
echo "echo 'Welcome to WolfiWSL :D'" > /etc/motd
echo "alias a=wslact" > .profile
echo "alias s=wslusc" >> .profile
echo "alias o=wslview" >> .profile
echo "clear" >> .profile
echo "/etc/motd" >> .profile
chmod +x /etc/motd .profile
rm -rf .ash_history ~/wslu

If you haven't set WSL auto shutdown when idle, shutdown WSL with the following command

wsl --shutdown

Close Windows Terminal then reopen it.

Open Windows application you need, for example notepad.

o notepad.exe

Open Microsoft Word file easily.

o example.docx

No GUI (WSLg) support because it's Wolfi :)

About

Minimal container images with low-to-zero CVEs for development in WSL (Windows Subsystem for Linux).

Topics

Resources

Stars

Watchers

Forks