How to remove the graphical user interface?
Solution 1:
It is not needed to remove the GUI (unity, lightdm, compiz, etc.) from the system.
You can leave it and just make your default boot as a text mode and if once you need a GUI you can restore it easily.
open /etc/default/grub
as root in your favourite text editor, for example sudo vi /etc/default/grub
And change the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
To GRUB_CMDLINE_LINUX_DEFAULT="text"
and update Grub.sudo update-grub
Your system will then always boot to text mode.
If you once want to use GUI you can easly start lightdm, the GUI:
sudo service lightdm start
Here are some hints that you may use to increase performance of your system.
Solution 2:
None of these answers answers the user's question.
- Advising how to disable the GUI is not removing it.
- Advising how to use a different GUI is not removing it.
- Advising to use a different Linux distro is not removing it.
The commands to remove the GUI are:
sudo apt-get remove ubuntu-desktop
sudo apt-get autoremove
This will remove the Ubuntu Desktop meta-package and all associated packages.
If you're going to answer the question, answer the question.
Solution 3:
Alternatively you can install openbox, one of the most lightweight window managers available:
sudo apt-get install openbox openbox-themes obconf obmenu
This automatically adds an openbox session to the login menu. And this is its GUI:
Yep, that's it. Nothing more but a right-click menu. A GUI with an incredibly low RAM footprint, just like you want it.