Ubuntu Desktop disable GUI
I am running Ubuntu 18.04 in Oracle VM VirtualBox and I set up a shared folder to my host OS. To have the shared folder I need to install guest additions which I can’t seem to set up when I’m using Ubuntu Server.
What I did is, I install Ubuntu Desktop, set up the shared folder and within the GUI I configured my static IP. After that, I turn off the GUI. Use the commands below to do that.
# To disable GUI sudo systemctl set-default multi-user.target # To re-enable GUI sudo systemctl set-default graphical.target # To run GUI temporarily after disabling GUI sudo systemctl start gdm3.service
Permission to the shared folder
The shared folder is under the group vboxsf. Assuming my username is ubuntu. I’ll need to run the below command to gain access to my folder.
sudo adduser ubuntu vboxsf