PDA

View Full Version : [ubuntu] gdm will not stop



Bre Ntt
July 10th, 2011, 04:36 AM
I've been trying to stop gdm and quite the x server, so I can start a fluxbox session. but

sudo /etc/init.d/gdm stop

will not work, and the command line gives me some advice to use stop(8) because it's been converted to an upstart job. Have no idea what that means, but nothing like

sudo stop gdm
or
sudo stop /etc/init.d/gdm

works either.

I installed fluxbox, but it is not giving me the option to run it on the session start up in lieu of the regular GNOME (as the Ubuntu docs say it should.)

What is going on here?

matt_symes
July 10th, 2011, 04:38 AM
Hi

Try



sudo service gdm stop

Kind regards

Bre Ntt
July 10th, 2011, 06:01 AM
Thank you, but Doesn't work.

Oddly, the only thing that seems to sort of work is

pgrep Xorg
then taking the number from that and put it into a kill

Although, it leaves just a blinking cursor, and no terminal. (Didn't try ctrl-z on it though, maybe that would have gotten back to the terminal)

And I think that it doesn't actually kill the process because doing another pgrep gives me a procss number. I don't know, thought, maybe it does and I just don't understand how pgrep works.

BicyclerBoy
July 10th, 2011, 06:14 AM
You are running those commands from a console login ??
<ctrl>+<alt>+<f1>
And not a X screen terminal..

matt_symes
July 10th, 2011, 06:22 AM
Hi

That is the correct command i gave you to stop gdm and hence X.

Follow BicylerBoys advice and run it from the console and not from a gnome-terminal.

Kind regards

koleoptero
July 10th, 2011, 11:11 AM
You can also use a tool like top or preferably htop to terminate the gdm process. But again from a tty.

Michielc
July 10th, 2011, 12:34 PM
if the xserver is not configured correctly, zenity will start up an display a popup. You can't stop gdm while the popup is up.

fastest way to stop gdm:


ps aux | grep -i X | less

find the PID of usr/bin/X (usually the at the top of the list)


kill -9 PID

matt_symes
July 10th, 2011, 01:17 PM
Hi


if the xserver is not configured correctly, zenity will start up an display a popup. You can't stop gdm while the popup is up.


An interesting point and one that i was not aware of.

I have a question though.

Does it have to be a sigkill signal sent or can you send a sigterm ? sigkill's are, obviously, messy.


sudo pkill -f /usr/bin/X

Would this work ?

Kind regards