You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: WSL/about.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,16 +10,16 @@ ms.localizationpriority: high
10
10
11
11
# What is the Windows Subsystem for Linux?
12
12
13
-
The Windows Subsystem for Linux lets developers run a GNU/Linux environment -- including most command-line tools, utilities, and applications -- directly on Windows, unmodified, without the overhead of a virtual machine.
13
+
The Windows Subsystem for Linux lets developers run a GNU/Linux environment -- including most command-line tools, utilities, and applications -- directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup.
14
14
15
15
You can:
16
16
17
17
* Choose your favorite GNU/Linux distributions [from the Microsoft Store](https://aka.ms/wslstore).
18
18
* Run common command-line tools such as `grep`, `sed`, `awk`, or other ELF-64 binaries.
19
19
* Run Bash shell scripts and GNU/Linux command-line applications including:
Copy file name to clipboardExpand all lines: WSL/file-permissions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,4 +103,4 @@ Any files created, modified, or accessed in the Linux root file system follow st
103
103
104
104
You can configure your file permissions inside of your Windows drives using the mount options in wsl.conf. The mount options allow you to set `umask`, `dmask` and `fmask` permissions masks. The `umask` is applied to all files, the `dmask` is applied just to directories and the `fmask` is applied just to files. These permission masks are then put through a logical OR operation when being applied to files, e.g: If you have a `umask` value of `023` and an `fmask` value of `022` then the resulting permissions mask for files will be `023`.
105
105
106
-
Please see the [Configure launch settings with wslconf](./wsl-config.md#configure-launch-settings-with-wslconf) article for instructions on how to do this.
106
+
Please see the [Configure per distro launch settings with wslconf](./wsl-config.md#configure-per-distro-launch-settings-with-wslconf) article for instructions on how to do this.
Copy file name to clipboardExpand all lines: WSL/install-win10.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ To only install WSL 1, you should now restart your machine and move on to [Insta
23
23
24
24
## Update to WSL 2
25
25
26
-
To update to WSL 2, you must meet the follow criteria:
26
+
To update to WSL 2, you must meet the following criteria:
27
27
28
28
- Running Windows 10, [updated to version 2004](ms-settings:windowsupdate), **Build 19041** or higher.
29
29
@@ -49,7 +49,7 @@ Run the following command in PowerShell to set WSL 2 as the default version when
49
49
wsl --set-default-version 2
50
50
```
51
51
52
-
You might see this message after running that command: `WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel` please follow the link and install the MSI from that page on our documentation to install a Linux kernel on your machine for WSL 2 to use. Once you have the kernel installed, please run the command again and it should complete successfully without showing the message.
52
+
You might see this message after running that command: `WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel`. Please follow the link ([https://aka.ms/wsl2kernel](https://aka.ms/wsl2kernel)) and install the MSI from that page on our documentation to install a Linux kernel on your machine for WSL 2 to use. Once you have the kernel installed, please run the command again and it should complete successfully without showing the message.
53
53
54
54
> [!NOTE]
55
55
> The update from WSL 1 to WSL 2 may take several minutes to complete depending on the size of your targeted distribution. If you are running an older (legacy) installation of WSL 1 from Windows 10 Anniversary Update or Creators Update, you may encounter an update error. Follow these instructions to [uninstall and remove any legacy distributions](https://docs.microsoft.com/windows/wsl/install-legacy#uninstallingremoving-the-legacy-distro).
Copy file name to clipboardExpand all lines: WSL/release-notes.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,17 @@ ms.localizationpriority: high
10
10
11
11
# Release Notes for Windows Subsystem for Linux
12
12
13
+
## Build 20150
14
+
For general Windows information on build 20150 visit the [Windows blog](https://blogs.windows.com/windowsexperience/2020/06/17/announcing-windows-10-insider-preview-build-20150/).
15
+
16
+
* WSL2 GPU compute see [Windows blog](https://blogs.windows.com/windowsexperience/2020/06/17/announcing-windows-10-insider-preview-build-20150/) for more information.
17
+
* Introduce wsl.exe --install command line option to easily set up WSL.
18
+
* Introduce wsl.exe --update command line option to manage updates to the WSL2 kernel.
19
+
* Set WSL2 as the default.
20
+
* Increase WSL2 vm graceful shutdown timeout.
21
+
* Fix virtio-9p race condition when mapping device memory.
22
+
* Don't run an elevated 9p server if UAC is disabled.
23
+
13
24
## Build 19640
14
25
For general Windows information on build 19640 visit the [Windows blog](https://blogs.windows.com/windowsexperience/2020/06/03/announcing-windows-10-insider-preview-build-19640/).
Copy file name to clipboardExpand all lines: WSL/troubleshooting.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,41 @@ Lastly, if your issue is related to the Windows Terminal, Windows Console, or th
36
36
37
37
## Common issues
38
38
39
+
### Cannot access WSL files from Windows
40
+
A 9p protocol file server provides the service on the Linux side to allow Windows to access the Linux file system. If you cannot access WSL using `\\wsl$` on Windows, it could be because 9P did not start correctly.
41
+
42
+
To check this, you can check the start up logs using: `dmesg |grep 9p`, and this will show you any errors. A successfull output looks like the following:
43
+
44
+
```
45
+
[ 0.363323] 9p: Installing v9fs 9p2000 file system support
46
+
[ 0.363336] FS-Cache: Netfs '9p' registered for caching
47
+
[ 0.398989] 9pnet: Installing 9P2000 support
48
+
```
49
+
50
+
Please see [this Github thread](https://github.com/microsoft/wsl/issues/5307) for further discussion on this issue.
51
+
52
+
### Can't start WSL 2 distro and only see 'WSL 2' in output
53
+
If your display language is not English, then it is possible you are seeing a truncated version of an error text.
54
+
55
+
```powershell
56
+
C:\Users\me>wsl
57
+
WSL 2
58
+
```
59
+
60
+
To resolve this issue, please visit `https://aka.ms/wsl2kernel` and install the kernel manually by following the directions on that doc page.
61
+
62
+
### Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
63
+
64
+
1. Check the [Hyper-V system requirements](https://docs.microsoft.com/windows-server/virtualization/hyper-v/system-requirements-for-hyper-v-on-windows#:~:text=on%20Windows%20Server.-,General%20requirements,the%20processor%20must%20have%20SLAT.)
65
+
2. If your machine is a VM, please enable [nested virtualization](https://docs.microsoft.com/windows/wsl/wsl2-faq#can-i-run-wsl-2-in-a-virtual-machine) manually. Launch powershell with admin, and run:
3. Please follow guidelines from your PC's manufacturer on how to enable virtualization. In general, this can involve using the system BIOS to ensure that these features are enabled on your CPU.
72
+
4. Restart your machine after enabling the `Virtual Machine Platform` optional component.
73
+
39
74
### Bash loses network connectivity once connected to a VPN
40
75
41
76
If after connecting to a VPN on Windows, bash loses network connectivity, try this workaround from within bash. This workaround will allow you to manually override the DNS resolution through `/etc/resolv.conf`.
# GPU accelerated machine learning training in the Windows Subsystem for Linux
11
+
12
+
Support for GPU compute, the #1 most requested WSL feature, is now available for preview via the Windows Insider program. [Read the blog post](https://blogs.windows.com/windowsdeveloper/?p=55781).
13
+
14
+
## What is GPU compute?
15
+
16
+
Leveraging GPU acceleration for compute-intensive tasks is generally referred to as "GPU compute". GPU computing leverages the GPU (graphics processing unit) to accelerate math heavy workloads and uses its parallel processing to complete the required calculations faster, in many cases, than utilizing only a CPU. This parallelization enables significant processing speed improvements for these math heavy workloads then when running on a CPU. Training machine learning models is a great example in which GPU compute can significantly accelerate the time to complete this computationally expensive task.
17
+
18
+
## Install and set up
19
+
20
+
Learn more about WSL 2 support and how to start training machine learning models in the [GPU Accelerated Training guide](https://docs.microsoft.com/windows/win32/direct3d12/gpu-accelerated-training) inside the DirectML docs. This guide covers:
21
+
22
+
* Guidance for beginners or students to set up TensorFlow with DirectML
23
+
* Guidance for professionals to start running their exisiting CUDA ML workflows
Copy file name to clipboardExpand all lines: WSL/tutorials/wsl-git.md
+26-4Lines changed: 26 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,13 +31,32 @@ You will need to install Git on each file system that you intend to use it with.
31
31
32
32
## Installing Git
33
33
34
-
Git comes already installed with most of the Windows Subsystem for Linux distributions, however, you may want to update to the latest version and you will need to set up your git config file.
34
+
Git comes already installed with most of the Windows Subsystem for Linux distributions, however, you may want to update to the latest version. You also will need to set up your git config file.
35
35
36
-
To install Git, see the [Git Download for Linux](https://git-scm.com/download/linux) site. Each Linux distribution has their own package manager and install command. For example, to install Git on the Alpine distribution, use: `apk add git`. You also may want to [install Git for Windows](https://git-scm.com/download/win) if you haven't already.
36
+
To install Git, see the [Git Download for Linux](https://git-scm.com/download/linux) site. Each Linux distribution has their own package manager and install command.
37
+
38
+
For the latest stable GIt version in Ubuntu/Debian, enter the command:
39
+
40
+
```bash
41
+
sudo apt-get install git
42
+
```
43
+
44
+
> [!NOTE]
45
+
> You also may want to [install Git for Windows](https://git-scm.com/download/win) if you haven't already.
37
46
38
47
## Git config file setup
39
48
40
-
To set up your Git config file, open a command line for the distribution you're working in and enter: `git config --global user.name "Your Name"` and then, `git config --global user.email "[email protected]"`. Replacing the content in quotations with the name and email address that you used to create your Git account.
49
+
To set up your Git config file, open a command line for the distribution you're working in and set your name with this command (replacing "Your Name" with your Git username):
50
+
51
+
```bash
52
+
`git config --global user.name "Your Name"`
53
+
```
54
+
55
+
Set your email with this command (replacing "[email protected]" with the email you use on your Git account):
> If you don't yet have a Git account, you can [sign-up for one on GitHub](https://github.com/join). If you've never worked with Git before, [GitHub Guides](https://guides.github.com/) can help you get started. If you need to edit your git config, you can do so with a built-in text editor like nano: `nano ~/.gitconfig`.
Now any git operation you perform within your WSL distribution will use the credential manager. If you already have credentials cached for a host, it will access them from the credential manager. If not, you'll receive a dialog response requesting your credentials, even if you're in a Linux console.
58
77
78
+
> [!NOTE]
79
+
> If you are using a GPG key for code signing security, you may need to [associate your GPG key with your GitHub email](https://help.github.com/en/github/authenticating-to-github/associating-an-email-with-your-gpg-key).
80
+
59
81
## Adding a Git Ignore file
60
82
61
-
We recommend adding a [.gitignore file](https://help.github.com/en/articles/ignoring-files) to your projects. GitHub offers [a collection of useful .gitignore templates](https://github.com/github/gitignore) with recommended .gitignore file setups organized according to your use-case.
83
+
We recommend adding a [.gitignore file](https://help.github.com/en/articles/ignoring-files) to your projects. GitHub offers [a collection of useful .gitignore templates](https://github.com/github/gitignore) with recommended .gitignore file setups organized according to your use-case. For example, here is [GitHub's default gitignore template for a Node.js project](https://github.com/github/gitignore/blob/master/Node.gitignore).
62
84
63
85
If you choose to [create a new repo using the GitHub website](https://help.github.com/articles/create-a-repo), there are check boxes available to initialize your repo with a README file, .gitignore file set up for your specific project type, and options to add a license if you need one.
0 commit comments