Skip to content

Instantly share code, notes, and snippets.

@kevinn
Last active December 8, 2019 12:53
Show Gist options
  • Save kevinn/3fed7bc1c57d3973e586fbb98d1038a7 to your computer and use it in GitHub Desktop.
Save kevinn/3fed7bc1c57d3973e586fbb98d1038a7 to your computer and use it in GitHub Desktop.
Make Windows Subsystem Linux/lxss a bit faster on Win10.

**NOTE: After re-installing WSL, node/npm is spouting errors on permissions on the filesystem
sudo umount /mnt/c sudo mount -t drvfs C: /mnt/c -o metadata

Make Windows Subsystem Linux/lxss a bit faster on Win10.

Seen from here: microsoft/WSL#1932

  1. Go to "Windows Defender Security Center" via start menu or searching after pressing the Windows key.
  2. Click on "Virus & threat protection".
  3. Click on "Virus & thread protection settings".
  4. Scroll down to "Exclusions" then click "Add an exclusion" > "Process".

Add the following (one line, one process exclusion)

Apt
Bash
Dpkg
Init
Sudo

Optional process additions:

Apt-get
Node
Postgres
Python
Ubuntu

You may also add the whole lxss directory as a "folder exclusion", typically located at c:\Users\[youruser]\AppData\Local\lxss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment