Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Installation

Visit the Microsoft Store and install Ubuntu.

...

Code Block
USER@HOST:~$ uname -a
Linux N-CND1042RH7 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Common Tasks 

Mount your windows home folder

Code Block
$ cd ~
$ ln -s /mnt/c/Users/mehan home


Disable visual and audio bell/beep in WSL on Windows 10

Code Block
$ vi ~/inputrc


Add the following

Code Block
set bell-style none


Turn off Command Prompt Sounds

Open up Sound Settings


Scroll down to Advances Sound options and click it.

...

Set Console Window Host volume to 0

Advanced Tasks

Adding Kubernetes Support

See https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/

...

Code Block
# download
$ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

#install
$ sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl


Adding VPN Support

Record your current nameserver

...

Get-NetAdapter | Where-Object {$_.InterfaceDescription -Match "Cisco AnyConnect"} | Set-NetIPInterface -InterfaceMetric 6000


References

...