Work demands that I run a Windows 10 laptop but I no longer need to run a Linux VM on the side.

  • Windows key > “features”
  • Enable “Windows Subsystem for Linux”
  • Probably restart
  • Windows key > store
  • Install Ubuntu 20
  • And you’re away!

A very strange problem encountered in Kali on WSL: if sleep doesn’t work you might get really bizarre libc6 errors whilst installing packages.

$ sleep 1
sleep: cannot read realtime clock: Invalid argument

Simply remove the sleep from the end of this file: /var/lib/dpkg/info/libc6:amd64.postinst

    if [ "$TELINIT" = "yes" ]; then
        telinit u 2>/dev/null || true ; #sleep 1
    fi

References