I installed ubuntu server 20.04 on a VM; Then i tried $ startx but it said X could not be found, so i installed it;
$ sudo apt install xinit
Now every time it boots, i get the GNOME Gui (gdm3);
How do I exit the Gui, and back into a plain shell?
What I tried didn't work:
$ sudo service gdm3 stop
, this does exit the GUI into a black screen, no $ prompt; (just a blinking cursor, looks hanged, so after 5 mins I just re-booted the VM)