Talk:Windows Subsystem for Linux

From Funtoo
Jump to navigation Jump to search

https://docs.microsoft.com/en-us/windows/wsl/wsl-config

  • copy debian kernel to windows system:

cp /boot/kernel-debian-sources-x86_64-6.4.13_p1-r1 /mnt/c/Users/*your user name*/

https://www.reddit.com/r/bashonubuntuonwindows/comments/141n0c0/instructions_for_using_kernel_63y_on_wsl2_you/

  • gwsl in the microsoft store can run graphical applications that are installed.

Xming uses ssh x11 forwarding to render x11 under windows:

Bind USB to WSL

to attach usb devices to wsl you need to add usbipd.

root # emerge usbip

using scoop to fetch 7z git etc in powershell.

i propose that we use https://scoop.sh/ package management for windows in our WSL tutorial. it cleans things up, and reduces hunting for packages on the web. it's basically apt/text synaptic for windows powershell in windows mode.

  • working example of code shift:
root # .\scoop\apps\7zip\current\7z.exe x stage3.tar.xz