Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
15
rated 0 times [  15] [ 0]  / answers: 1 / hits: 52674  / 1 Year ago, sat, january 28, 2023, 12:59:50

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:




More From » server

 Answers
3

In recent versions of Ubuntu, gdm has been replaced with lightdm - this is why you don't have a gdm.conf. To set lightdm to be started manually, create an 'override' file for its init configuration:



echo 'manual' | sudo dd of=/etc/init/lightdm.override


(this just creates a file, called /etc/init/lightdm.override, containing a single line that says manual)



This way, lightdm will only be started when you invoke:



sudo service lightdm start


and to stop it:



sudo service lightdm stop

[#37535] Saturday, January 28, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rieency

Total Points: 299
Total Questions: 116
Total Answers: 111

Location: Wales
Member since Tue, Dec 14, 2021
2 Years ago
;