WSL2: Difference between revisions
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
# Restart | # Restart | ||
# Install Ubuntu from Microsoft Store | # Install Ubuntu from Microsoft Store | ||
== Using New Windows Terminal == | |||
* profiles.json | |||
** set defaultProfile to Ubuntu | |||
** for linux home dir | |||
<blockquote> | |||
<pre> | |||
"commandline" : "wsl.exe ~ -d Ubuntu-18.04", | |||
</pre> | |||
</blockquote> | |||
== Running Linux Commands == | == Running Linux Commands == |
Revision as of 17:53, 25 October 2019
Installation
- Activate Windows-Subsystem for Linux
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Restart
- Install Ubuntu from Microsoft Store
Using New Windows Terminal
- profiles.json
- set defaultProfile to Ubuntu
- for linux home dir
"commandline" : "wsl.exe ~ -d Ubuntu-18.04",
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"'