First I installed Ubuntu Server 18.04 as a Hyper-V machine on Windows 10.
While creating the virtual machine I selected Generation 1, because Generation 2 resulted in some strange effects.
Then I created a separate user with sudo permission:
sudo useradd -d /home/singh -m --shell "/bin/bash" singh
sudo passwd singh
sudo usermod -aG sudo singh





