After Ubuntu Server 12.04 installation, I installed Xubuntu just to have a minimal GUI:
sudo apt-get install x-window-system-core
sudo apt-get install --no-install-recommends xubuntu-desktop gparted
But now I want to start X just on certain ocasions. Before 12.04, I just issue:
sudo update-rc.d -f gdm remove
But this command does not work anymore.
How can I stop X from init on Ubuntu 12.04 ?
And how can I start it when I need it ?
I have tried both of these questions but I don't have a gdm.conf:
Best Answer
In recent versions of Ubuntu,
gdm
has been replaced withlightdm
- this is why you don't have agdm.conf
. To setlightdm
to be started manually, create an 'override' file for its init configuration:(this just creates a file, called
/etc/init/lightdm.override
, containing a single line that saysmanual
)This way, lightdm will only be started when you invoke:
and to stop it: