Saturday, 22 June 2019

Manually install Ubuntu in Windows 10 WSL without Microsoft Store

https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux
https://blogs.msdn.microsoft.com/commandline/learn-about-windows-console-and-windows-subsystem-for-linux-wsl/
https://docs.microsoft.com/en-us/windows/wsl/about
https://docs.microsoft.com/en-us/windows/wsl/wsl-config
Windows Subsystem for Linux was introduced with the Anniversary Update on August 2, 2016, only an Ubuntu image was available. The Fall Creators Update, released on October 17, 2017, moved the installation process for Linux distributions to the Windows Store, and introduced SUSE images.
WSL is available only in 64 bit versions of Windows 10 from version 1607. It is also available in Windows Server 2019.
Microsoft announced WSL 2 on May 6th, 2019, which features a completely new VM-based backend in lieu of the prior system call adaptation layer, planned for release through the Windows Insider program in June 2019.
Some available Linux distributions are listed in the Manual Installation section of the MS guide:
https://docs.microsoft.com/en-us/windows/wsl/install-manual

The actual manual installation instructions are hidden in the Server Install section of the manual:

https://docs.microsoft.com/en-us/windows/wsl/install-on-server

C:\Users\zoran> curl -L -o ubuntu-1604.appx https://aka.ms/wsl-ubuntu-1604
C:\Users\zoran> curl -L -o Fedora-1.30.1.appx https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL/releases/download/1.30.1/DistroLauncher-Appx_1.30.1.0_x64.appx

C:\Users\zoran> ubuntu-1604.appx
C:\Users\zoran> wsl uname --all

Linux DESKTOP-ABCDEF 4.4.0-17134-Microsoft #706-Microsoft Mon Apr 01 18:13:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux

C:\Users\zoran>wsl cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

C:\Users\zoran> wslconfig /list /all
Windows Subsystem for Linux Distributions:
Ubuntu (Default)
fedoraremix

WSL2 will be released in the first half of 2020. WSL 2 is based on a Linux 4.19 kernel that uses technology built for Azure. Because it uses a real Linux kernel, WSL 2 can run ELF64 Linux binaries on Windows. This changes how Linux binaries interact with Windows and your computer’s hardware. WSL 2 even supports running Linux Docker containers natively, so that VMs are no longer required.

Docker announced that its native Docker Desktop Windows application will soon switch to the Windows Subsystem for Linux 2 (WSL 2) from the Windows-native Hyper-V virtualization it currently uses. Starting with its second installment, WSL2 uses a genuine open-source kernel compiled from the stable 4.19 version release of Linux at Kernel.org, making it no longer necessary to use a translation layer between apps and their normal system calls.

No comments:

Post a Comment