WSL2: Difference between revisions

From Wiki
No edit summary
No edit summary
Line 1: Line 1:
== Installation ==
# Activate Windows-Subsystem for Linux
<blockquote>
<pre>
<pre>
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
</pre>
</pre>
 
</blockquote>
# Restart
# Install Ubuntu from Microsoft Store


== Running Linux Commands ==
== Running Linux Commands ==

Revision as of 17:51, 25 October 2019

Installation

  1. Activate Windows-Subsystem for Linux
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  1. Restart
  2. Install Ubuntu from Microsoft Store

Running Linux Commands

  • using bash.exe
bash.exe -c "jupyter-notebook ; /bin/bash"


  • using wsl
wsl jupyter-notebook &

fstab

z: /mnt/z drvfs rw,relatime 0 0


Nmap

  • Install Nmap for Windows
  • .bashrc:
alias nmap='"/mnt/c/Program Files (x86)/Nmap/nmap.exe"'