I need a solution like those of MS Windows 3.x and MS DOS, where you boot up the computer using DOS and if you want the GUI you just type the command win
.
I need something like that with Ubuntu Server and any GUI environment. In other words, I need the computer boot up by default using Ubuntu server and works using the shell and if needed a GUI to do some tasks visually, I just type a command to load the GUI and then I could able to close (release resources used by GUI) it while the server shell still works.
Indeed, my first experience with Ubuntu was Ubuntu Server, from many years, but when I followed advises such as sudo apt-get install ubuntu-desktop
, I always finished with a computer boots up the GUI by default and I don't want that. I need GUI on demand. Even editing grub
will lead to need to reboot again.
I ask this question because I need to safe resources using the Ubuntu Server, but I need the ease of GUI during make major settings, such as, settings network, editing config files, etc.
sudo apt-get install ubuntu-desktop
is a sufficient solution, but it requires you to alter grub settings so that you boot into console mode by default. According to answers on https://askubuntu.com/a/92279/295286 you need to edit /etc/default/grub
to have the following line:
# Stops the ubuntu purple screen
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console
For changes to take effect, remember to run sudo update-grub
Alternatively, if you don't mind using minimalistic desktop environment instead of whole desktop, install openbox
or blackbox
only.Installing these doesn't affect which mode your computer boots into. I use this exact same approach on my Arch Linux virtual machine.
No comments:
Post a Comment