注意:
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Windows Subsystem for Linux"
Jump to navigation
Jump to search
(run init scripts under softlevel.) |
(add second path to graphical applications.) |
||
Line 41: | Line 41: | ||
###i## emerge -avuND @world | ###i## emerge -avuND @world | ||
}} | }} | ||
wsl behaves similar to a chroot instance regarding init. | wsl behaves similar to a chroot instance regarding init. | ||
Line 51: | Line 49: | ||
###i## rc | ###i## rc | ||
}} | }} | ||
*gwsl in the microsoft store can run graphical applications that are installed. | |||
Xming uses ssh x11 forwarding to render x11 under windows: | |||
*http://www.geo.mtu.edu/geoschem/docs/putty_install.html | |||
[[Category:Official Documentation]] | [[Category:Official Documentation]] |
Revision as of 11:34, January 2, 2021
Windows Subsystem for Linux
WSL 2 is only available in Windows 10 builds 18917 or higher, upgrade to a WSL 2 compatible version:
In the Windows search box search for "turn windows features on or off"
scroll down and tick:
- hyper v
- virtual machine platform
- windows subsystem for linux
install the WSL 2 kernel from this link
- Try to use your computers specific subarch stage3:
https://www.funtoo.org/Subarches
- if you're running 64 bit windows, and unsure about your subarch you can use this stage3:
https://www.funtoo.org/Generic_64
- use 7zip to convert the .tar.xz to .tar:
https://www.7-zip.org/download.html
- search for power shell, right click it's icon and select run as administrator:
root # wsl.exe --import "funtoo" "C:\funtoo" "C:\Users\$MYUSER\Downloads\gnome-stage3-amd64-piledriver-1.4-release-std-2020-12-16.tar" --version 2
root # wsl -d funtoo
you are now running funtoo under windows.
root # ego sync root # echo 'FEATURES="-ipc-sandbox -pid-sandbox -mount-sandbox -network-sandbox"' > /etc/portage/make.conf root # emerge -avuND @world
wsl behaves similar to a chroot instance regarding init.
root # mkdir /run/openrc root # touch /run/openrc/softlevel root # rc
- gwsl in the microsoft store can run graphical applications that are installed.
Xming uses ssh x11 forwarding to render x11 under windows: