I am looking to run Ubuntu/Xubuntu in a complete non-GUI mode.
Like, when the system starts it needs to log in into console.
That is all, no loading of any display manager, x server, GUI-based app support, nothing in the background either for GUI.
Ubuntu – How to run ubuntu/xubuntu in a complete non-gui mode
bootgui
Best Answer
What you want is can be achieved by installing Ubuntu Server Edition which does not has a display manager, X server etc. But if you do have an Ubuntu or a Xubuntu installation in your computer and want to work in a non-GUI environment, you can use virtual consoles which are called tty.
sudo service lightdm stop
command.To restart GUI,
sudo service lightdm start
command is enough.And you are ready to work in an environment as you described in your post.
Another workaround you can use to remove a lot of packages to obtain "pure Ubuntu" as described in this blog post. For Xubuntu, the command that will leave you with "pure Ubuntu" is
I removed the last command, which is
apt-get install ubuntu-desktop
, that installs packages like Unity and turn your Xubuntu to Ubuntu. As you can see, there are a lot of packages that is very hard to track and you may need some packages. Since I do not use Xubuntu, I can not say which packages must be kept.