User Tools

Site Tools


other:win10wsl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
other:win10wsl [2022/08/12 12:30]
jypeter Added the original WSL1 content back to the page, before updating it for WSL2
other:win10wsl [2022/08/12 15:58]
jypeter [Prerequisites] Started preparing for WSL 2
Line 1: Line 1:
-====== Windows Subsystem for Linux (WSL), and Ubuntu ======+====== Windows Subsystem for Linux (WSL 2), and Ubuntu ======
  
 [[other:​index#​windows_10_notes|Other Windows 10 related notes]] [[other:​index#​windows_10_notes|Other Windows 10 related notes]]
  
-<note warning>​What is described on this page was tested with **WSL v1**, and not WSL +<note warning> 
 +  * What is described on this page was tested with [[https://​docs.microsoft.com/​en-us/​windows/​wsl/​compare-versions#​whats-new-in-wsl-2|WSL 2]].\\ ​**WSL 2** is available in [[https://​docs.microsoft.com/​en-us/​windows/​wsl/​install-manual#​step-2---check-requirements-for-running-wsl-2|Windows 11 or Windows 10, Version 1903, Build 18362 or later]]
  
-[[https://​docs.microsoft.com/​en-us/​windows/​wsl/​wsl2-index|WSL 2]] is available in ''​Windows 10 v2004''​ (April 2020) and more recent, and should also be available in [[https://​devblogs.microsoft.com/​commandline/​wsl-2-support-is-coming-to-windows-10-versions-1903-and-1909/​|1903 and 1909 versions]]+  * You can also check JYP'​s ​[[other:win10_wsl_1|original ​WSL 1 instructions]] 
  
-The user can choose to install Linux using WSL1 or WSL2. Check the [[https://​docs.microsoft.com/​en-us/​windows/​wsl/​compare-versions|differences between WSL1 and WSL2]] before choosing</​note>​+  * The user can choose to install Linux using **WSL 1 or WSL 2** 
 +    * **WSL 2 should be your default choice** 
 +    * If you have doubts, check the [[https://​docs.microsoft.com/​en-us/​windows/​wsl/​compare-versions|differences between WSL1 and WSL2]] and read [[https://​docs.microsoft.com/​en-us/​windows/​wsl/​compare-versions#​exceptions-for-using-wsl-1-rather-than-wsl-2|Exceptions for using WSL 1 rather than WSL 2]] before choosing 
 +</​note>​
  
  
 ===== What is WSL ? ===== ===== What is WSL ? =====
  
-Useful reading: +//Windows Subsystem for Linux// (**WSL**) lets you **run a Linux distribution ​on your Windows computer**, without ​the overhead of traditional virtual machine ​(VMor dual-boot setup
-  * Have a look at the beginning of the [[https://​docs.microsoft.com/​en-us/​windows/wsl/about|Windows Subsystem for Linux Documentation]] for a quick **WSL** ​description on the Microsoft site +
-  ​Read [[https://​wiki.ubuntu.com/​WSL|What is WSL]] on the Ubuntu site +
-    ​There is more useful information on the //​WSL@Ubuntu page//you can read the rest later +
- +
-In few words, WSL is not Linux, it's more a way to [[https://​blogs.msdn.microsoft.com/​wsl/​2016/​06/​15/​wsl-file-system-support/​|share files between Windows and Linux]] ​(it's OK to skip this rather technical link!). [[https://​docs.microsoft.com/​en-us/​windows/​wsl/​faq#​are-files-in-the-linux-drive-different-from-the-mounted-windows-drive|Files under the Linux root (i.e. /) are controlled by WSL which mimics Linux specific behavior [...follow the link for details...]]]. That's why you need //to activate WSL **and then install a Linux distribution**//​.+
  
 +More reading:
 +  * [[https://​docs.microsoft.com/​en-us/​windows/​wsl/​about|What is the Windows Subsystem for Linux?]]
 +  * [[https://​docs.microsoft.com/​en-us/​windows/​wsl/​about#​what-is-wsl-2|What is WSL 2?]]
 +  * [[https://​wiki.ubuntu.com/​WSL#​What_is_WSL.3F|What is WSL?]] on the Ubuntu wiki site
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  ​* A computer running ​at least //Windows 10 Anniversary Update//, that is with a version number of ''​1607''​ (July 2016) or higher+==== Windows version ==== 
 + 
 +  ​* A computer running ​[[https://docs.microsoft.com/en-us/windows/​wsl/​install-manual#​step-2---check-requirements-for-running-wsl-2|Windows 11 or Windows 10Version 1903, Build 18362 or later]]
     * [[other:​win10maintain#​checking_the_installed_version|Check the installed version on your computer]]     * [[other:​win10maintain#​checking_the_installed_version|Check the installed version on your computer]]
-    * [[other:​win10misc#​windows_10_versions|Check the available versions]] +    * [[other:​win10misc#​windows_10_versions|Check the available ​Windows ​versions]] 
-    * [[other:​win10maintain#​updating_windows_10|See if you can update your Windows]] if your installed version is not the most receent ​available version +    * [[other:​win10maintain#​updating_windows_10|See if you can update your Windows]] if your installed version is not the most recent ​available version 
-      * Note: there is sometimes a delay between the official release and the time when Windows Update will actually tell you that a major update is available for **your** computer (e.g. the //September YY09// update may become available for you only in December)+ 
 + 
 +==== Computer memory ==== 
 + 
 +FIXME 
 + 
 + 
 +==== Disk space ==== 
 + 
 +FIXME 
   * //Enough// space on ''​C:​\''​. Microsoft instructions say //The Windows Subsystem for Linux only runs on your system drive (usually this is your C: drive)//   * //Enough// space on ''​C:​\''​. Microsoft instructions say //The Windows Subsystem for Linux only runs on your system drive (usually this is your C: drive)//
     * Exporting a //simple// Ubuntu configuration (after doing everything from //Base installation//​ to //Advanced configuration//​ below) with the [[other:​win10wsl#​creating_a_backup_of_the_linux_running_in_wsl|wsl --export]] command generated a 2.7 Gb tar file (uncompressed),​ so it's probably good to **start with at least 3 Gb of free space on ''​C:​\''​** (and you always need to keep enough free space on ''​C:​\''​ for regular Windows operation)     * Exporting a //simple// Ubuntu configuration (after doing everything from //Base installation//​ to //Advanced configuration//​ below) with the [[other:​win10wsl#​creating_a_backup_of_the_linux_running_in_wsl|wsl --export]] command generated a 2.7 Gb tar file (uncompressed),​ so it's probably good to **start with at least 3 Gb of free space on ''​C:​\''​** (and you always need to keep enough free space on ''​C:​\''​ for regular Windows operation)
other/win10wsl.txt · Last modified: 2023/12/06 13:24 by jypeter