Re: Disable X-Server temporary
On Wed 19 Sep 2012 at 02:21:00 -0600, Bob Proulx wrote:
> Pietro Paolini wrote:
> > How disable the X-Server temporary ?
>
> It all depends upon how you are starting X. Are you using one of the
> xdm/gdm/kdm/lightdm X display managers? I will assume so since that
> is most typical.
>
> Do you really need to disable it? Ctrl-Alt-F1 gets you to the
> first text console and Alt-F2, F3, and so forth for the next few linux
> virtual consoles.
>
> I often use 'service gdm stop' (substitute the name of your xdm
> program in place of gdm) to stop the running X server. But that won't
> disable it for a reboot if that is the type of disabling that you are
> asking about. Something that survives a reboot.
>
> In that case you can simply prevent those from running. They use a
> file /etc/X11/default-display-manager to control which one starts. I
> often hack that file and change the name to /usr/sbin/lightdm.disabled
> to prevent it from starting and then remove the ".disabled" to allow
> it to start again afterward.
Without hunting down and editing files there is:
update-rc.d gdm disable
Reply to: