Difference between revisions of "Windows Subsystem for Linux"

From Funtoo
Jump to navigation Jump to search
(disable some sandboxing to let portage do it's thing.)
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Windows Subsystem for Linux==
==Windows Subsystem for Linux==
To install WSL 2 on Windows 10 you need the following things:
*Any version of Windows 10 such as: Professional, Home or Home Single Language with the following build numbers:
Windows 10 May 2020 (2004), Windows 10 May 2019 (1903), or Windows 10 November 2019 (1909) or later.
Technically you can install WSL 2 on an “insider” build of Windows 10 build 18917 or later.
*A computer with  Virtualization support active on BIOS and RAM memory with at least 4GB. For best performance 8 GB.
*A processor (CPU) that supports SLAT (Second Level Address Translation):
Intel’s SLAT technology is represented as EPT (Extended Page Table).
This technology is available in processors with virtualization support: core i7, i5, i3, Pentium G6950 and other appropriate Xeons.
It is not available in Core 2 Duo or Core Quad (socket 775) based or other earlier Intel processors.
AMD’s SLAT technology is represented as RVI (Rapid Virtualization Indexing) technology, in their third generation Opteron processors codenamed Barcelona.
===update===
WSL 2 is only available in Windows 10 builds 18917 or higher, upgrade to a WSL 2 compatible version:
*https://www.microsoft.com/en-us/software-download/windows10
===configure===
In the Windows search box search for "turn windows features on or off"
In the Windows search box search for "turn windows features on or off"


scroll down and tick:
scroll down and tick:
*hyper v
 
*virtual machine platform
*virtual machine platform
*windows subsystem for linux
*windows subsystem for linux


WSL 2 is only available in Windows 10 builds 18917 or higher
===install WSL kernel===
 
https://www.microsoft.com/en-us/software-download/windows10
 
install the WSL 2 kernel from this link
install the WSL 2 kernel from this link


https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel
*https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel


You may use your specific subarch:
*Try to use your computers specific subarch stage3:
https://www.funtoo.org/Subarches
https://www.funtoo.org/Subarches


tarball testing against wsl:
*if you're running 64 bit windows, and unsure about your subarch you can use this stage3:
https://www.funtoo.org/Generic_64
https://www.funtoo.org/Generic_64


*use 7zip to convert the tar.xz to tar:
*if you're adventurous you can use ffs stages
https://area31.host.funtoo.org/ffs/
 
===decompress tarball===
*use 7zip to convert the .tar.xz to .tar:
https://www.7-zip.org/download.html
https://www.7-zip.org/download.html


===install===
*search for power shell, right click it's icon and select run as administrator:
*search for power shell, right click it's icon and select run as administrator:


Line 31: Line 57:


{{console|body=
{{console|body=
###i## wsl.exe
###i## wsl -d funtoo
}}
}}


Line 38: Line 64:
{{console|body=
{{console|body=
###i## ego sync
###i## ego sync
###i## echo 'FEATURES="-ipc-sandbox -pid-sandbox -mount-sandbox -network-sandbox"' > /etc/portage/make.conf
###i## emerge -C debian-sources
###i## emerge -avuND @world
###i## emerge -avuND @world
}}
wsl behaves similar to a chroot instance regarding init.
{{console|body=
###i## mkdir /run/openrc
###i## touch /run/openrc/softlevel
###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
==uninstall==
*in powershell:
{{console|body=
###i## wsl.exe --unregister funtoo
}}
}}


[[Category:Official Documentation]]
[[Category:Official Documentation]]

Revision as of 20:13, December 3, 2022

Windows Subsystem for Linux

To install WSL 2 on Windows 10 you need the following things:

  • Any version of Windows 10 such as: Professional, Home or Home Single Language with the following build numbers:

Windows 10 May 2020 (2004), Windows 10 May 2019 (1903), or Windows 10 November 2019 (1909) or later. Technically you can install WSL 2 on an “insider” build of Windows 10 build 18917 or later.

  • A computer with Virtualization support active on BIOS and RAM memory with at least 4GB. For best performance 8 GB.
  • A processor (CPU) that supports SLAT (Second Level Address Translation):

Intel’s SLAT technology is represented as EPT (Extended Page Table). This technology is available in processors with virtualization support: core i7, i5, i3, Pentium G6950 and other appropriate Xeons. It is not available in Core 2 Duo or Core Quad (socket 775) based or other earlier Intel processors.

AMD’s SLAT technology is represented as RVI (Rapid Virtualization Indexing) technology, in their third generation Opteron processors codenamed Barcelona.

update

WSL 2 is only available in Windows 10 builds 18917 or higher, upgrade to a WSL 2 compatible version:

configure

In the Windows search box search for "turn windows features on or off"

scroll down and tick:

  • virtual machine platform
  • windows subsystem for linux

install WSL kernel

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

  • if you're adventurous you can use ffs stages

https://area31.host.funtoo.org/ffs/

decompress tarball

  • use 7zip to convert the .tar.xz to .tar:

https://www.7-zip.org/download.html

install

  • 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 # emerge -C debian-sources
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:

uninstall

  • in powershell:
root # wsl.exe --unregister funtoo