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
other:win10wsl [2019/04/05 17:38]
jypeter [ssh, agent and keys related questions] added weasel-pageant
other:win10wsl [2019/06/03 15:56] (current)
jypeter Clarified the "used disk space" and mentioned WSL v2
Line 1: Line 1:
 ====== Windows Subsystem for Linux, and Ubuntu ====== ====== Windows Subsystem for Linux, and Ubuntu ======
  
-Read 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+<note warning>​What is described on this page was tested with **WSL v1**, and not WSL2 (that will be introduced mid-2019). It will be possible to install both WSL v1 and v2 on the same computer and WSL v2 will theoretically have faster I/O, but we recommend you use WSL v1 for now</​note>​ 
 + 
 +Read just the top 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
  
 In a 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!). That's why you need //WSL **and** a Linux distribution//​. In a 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!). That's why you need //WSL **and** a Linux distribution//​.
Line 7: Line 9:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * Windows 10 64-bit ​ (ideally ​[[other:​win10misc#​windows_10_versions|build 16215 or later]]) +  * [[other:​win10misc#​windows_10_versions|up-to-date Windows 10 64-bit]]: this should automatically be the case. This page is based on a laptop running the //Fall (September) 2018 edition//, and Microsoft is starting to push the March 2019 (aka //1903//edition ​ 
-  * 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)// 
-    * The initial installation of Ubuntu ​seems to use 555 Mo of disk space, but you will get a basic Linux with no graphics, and you may need space for installing more applications +    * The initial installation of Ubuntu ​does not //​seem// ​to use much disk space (< 1 Gb), but you will get a basic Linux with no graphics, and you may need space for installing more applications 
-    * ''/''​ and ''/​home''​ will be on ''​C:'',​ but the data files can be on any disk/​partition of the computer, and all the partitions will be available and accessible in ''/​mnt/'',​ so you can store things ​on other partitions +    * ''/''​ and ''/​home''​ will be on ''​C:'',​ but the data files can be on any disk/​partition ​(or external drive) ​of the computer, and all the partitions will be available and accessible in ''/​mnt/'',​ so you can store data on other partitions 
-    * The files will be installed in hidden partitions of the user's directory on ''​C:''​. Other users of the same Windows 10 computer would have to install Ubuntu again, in their own directory+    * The files will be installed in **hidden partitions of the current ​user's directory on ''​C:​''​**:​ e.g. ''​C:​\Users\johndoe''​. Other users of the same Windows 10 computer would have to install Ubuntu again, in their own user directory 
 +      * Checking the properties of ''​C:​\Users\johndoe''​ will **not** report an accurate size and number of files, because lots of files and directories are hidden! On the test laptop, the reported size of the user backed up directory (with [[other:​win10apps#​syncbackfree|SyncBackFree]]) was ~20 Gb (user data, WSL+Ubuntu, custom install of the CDAT 8.1 python distribution) 
 +      * Be sure to monitor the remaining free space on ''​C:''​!
  
 ===== Installation ===== ===== Installation =====
Line 18: Line 22:
   * Follow closely the steps listed in [[https://​docs.microsoft.com/​en-us/​windows/​wsl/​install-win10|WSL Windows 10 Installation Guide]]   * Follow closely the steps listed in [[https://​docs.microsoft.com/​en-us/​windows/​wsl/​install-win10|WSL Windows 10 Installation Guide]]
     * In the **Microsoft Store**, just search //Linux// and select Ubuntu (Ubuntu 16.04 LTS was available when this page was created)     * In the **Microsoft Store**, just search //Linux// and select Ubuntu (Ubuntu 16.04 LTS was available when this page was created)
- 
-Disk space used in the Windows directory of the user installing Ubuntu (''​C:​\users\johndoe''​):​ 
- 
-^ Step ^ Size ^ Number of files ^ Number of directories ^ 
-| Before installing Ubuntu | 443 Mb |  2507  |  1974  | 
-| After getting Ubuntu from Microsoft Store |  445 Mo  |  2515  |  1989  | 
-| After Launching Ubuntu the first time |  998 Mo  |  30851  |  4931  | 
-| After [[#​updating_linux|updating Ubuntu]] |  1.14 Gb  |  31054  |  4947  | 
-| After adding some [[#​adding_useful_packages|Useful packages]] |  1.47 Gb  |  35918  |  5108  | 
-| After updating from 16.04 to 18.04\\ and running ''​do-release-upgrade''​ |  1.75 Gb  |  40043  |  5872  | 
-| After adding CDAT 8.1\\ etc... | 2.67 Gb |  28463 ?  |  2738 ?  | 
  
 ===== After the installation ===== ===== After the installation =====
other/win10wsl.txt · Last modified: 2019/06/03 15:56 by jypeter