Discussion:
How to get out of GNOME?
Jay O'Brien
2004-10-31 00:11:23 UTC
Permalink
Running 4.10.

I added the GNOME package, updated the files it said to edit
when it was installing, and now I can't get out of GNOME,
even with editing (via ftp) the files back as they were in
the first place and rebooting.

How can I get back to a command line terminal?

Jay O'Brien
pete wright
2004-10-31 00:15:11 UTC
Permalink
Post by Jay O'Brien
Running 4.10.
I added the GNOME package, updated the files it said to edit
when it was installing, and now I can't get out of GNOME,
even with editing (via ftp) the files back as they were in
the first place and rebooting.
How can I get back to a command line terminal?
ctl+alt+F1 should bring you to a virtual terminal. i bet gnome is
launching GDM or XDM on boot, if you take that out of your startup
scrips you should be all set.

-p
Post by Jay O'Brien
Jay O'Brien
_______________________________________________
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
--
~~o0OO0o~~
Pete Wright
www.nycbug.org
NYC's *BSD User Group
Jay O'Brien
2004-10-31 00:51:04 UTC
Permalink
Post by pete wright
Post by Jay O'Brien
Running 4.10.
I added the GNOME package, updated the files it said to edit
when it was installing, and now I can't get out of GNOME,
even with editing (via ftp) the files back as they were in
the first place and rebooting.
How can I get back to a command line terminal?
ctl+alt+F1 should bring you to a virtual terminal. i bet gnome is
launching GDM or XDM on boot, if you take that out of your startup
scrips you should be all set.
Pete, Thank you. Now I can get control again. And yes, it had me copy
/X11R6/etc/rc.d/gdm.sh.sample as gdm.sh. I deleted the gdm.sh and now
it doesn't boot into GNOME.

WHERE should I have found the magic ctl+alt+F1? Nowhere in the GNOME
help, is it to be found, Google "exit gnome" and the like didn't find it....

Jay
Matt Navarre
2004-10-31 01:54:48 UTC
Permalink
Post by Jay O'Brien
WHERE should I have found the magic ctl+alt+F1? Nowhere in the GNOME
help, is it to be found, Google "exit gnome" and the like didn't find it....
ctl+alt+F1 doesn't really quit Gnome. It switches to a virtual terminal that
has getty instead of GDM running on it.

For more on virtual terminals:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/consoles.html

For more on xdm/gdm/kdm:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-xdm.html

That doesn't really cover gdm, but the basics are the same.
--
"We all enter this world in the same way: naked, screaming,
and soaked in blood. But if you live your life right, that kind
of thing doesn't have to stop there." -- Dana Gould
Jay O'Brien
2004-10-31 01:58:18 UTC
Permalink
Post by Matt Navarre
Post by Jay O'Brien
WHERE should I have found the magic ctl+alt+F1? Nowhere in the GNOME
help, is it to be found, Google "exit gnome" and the like didn't find it....
ctl+alt+F1 doesn't really quit Gnome. It switches to a virtual terminal that
has getty instead of GDM running on it.
So I see.... hmmmm

Ok, what DO I do to shut down gnome if I don't want it running?

Jay
Subhro
2004-10-31 04:28:34 UTC
Permalink
Post by Jay O'Brien
So I see.... hmmmm
Ok, what DO I do to shut down gnome if I don't want it running?
I guess that would be a very good idea as Gnome DOES consume a
handsome amount of memory.

Regards
S.
--
Subhro Sankha Kar
School of Information Technology
Block AQ-13/1 Sector V
ZIP 700091
India
Andrew Jones
2004-10-31 04:42:09 UTC
Permalink
Post by Jay O'Brien
So I see.... hmmmm
Ok, what DO I do to shut down gnome if I don't want it running?
Jay
_______________________________________________
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
ctrl+alt+backspace. It crashes the xserver though, but it'll exit.
Jay O'Brien
2004-10-31 05:27:41 UTC
Permalink
Post by Andrew Jones
Post by Jay O'Brien
Ok, what DO I do to shut down gnome if I don't want it running?
ctrl+alt+backspace. It crashes the xserver though, but it'll exit.
Nope. It doesn't work for me. With gdm/X running, ctl+alt+bksp goes
first to black screen then comes back with a new logon window. If I
do it enough times, it reports to the virtual terminal "The display
server has been shut down about 6 times in the last 90 seconds, it
is likely that something bad is going on. I will wait for two minutes
before trying again on display :0." and then it comes back on.

If I use ctl+alt+F1 to go from GNOME to a virtual terminal, then try
ctl+alt+backspace, it does nothing (except beep). Top reports that
the processes that come up when I start gdm are XFree86, gdmlogin,
and two gdm-binary processes. KILL seems to have no effect on them.

There's got to be a way to shut GNOME and XFree86 down without
rebooting! At least that works. I wonder if this may be the time
to go to version 5 and the newer version of X?

Jay O'Brien

Specs: FreeBSD V4.10, GNOME package obtained today via the Internet
using pkg_add -r gnome2.
Jonathan Chen
2004-10-31 06:09:47 UTC
Permalink
Post by Jay O'Brien
Post by Andrew Jones
Post by Jay O'Brien
Ok, what DO I do to shut down gnome if I don't want it running?
ctrl+alt+backspace. It crashes the xserver though, but it'll exit.
Nope. It doesn't work for me. With gdm/X running, ctl+alt+bksp goes
first to black screen then comes back with a new logon window. If I
do it enough times, it reports to the virtual terminal "The display
server has been shut down about 6 times in the last 90 seconds, it
is likely that something bad is going on. I will wait for two minutes
before trying again on display :0." and then it comes back on.
Turn the gdm entry in /etc/ttys to "off". kill -HUP 1. Then kill the
gdm process.
--
Jonathan Chen <***@chen.org.nz>
----------------------------------------------------------------------
"Opportunity does not knock,
it presents itself when you beat down the door" - W.E. Channing
Jay O'Brien
2004-10-31 06:51:07 UTC
Permalink
Post by Jonathan Chen
Post by Jay O'Brien
Post by Andrew Jones
Post by Jay O'Brien
Ok, what DO I do to shut down gnome if I don't want it running?
ctrl+alt+backspace. It crashes the xserver though, but it'll exit.
Nope. It doesn't work for me. With gdm/X running, ctl+alt+bksp goes
first to black screen then comes back with a new logon window. If I
do it enough times, it reports to the virtual terminal "The display
server has been shut down about 6 times in the last 90 seconds, it
is likely that something bad is going on. I will wait for two minutes
before trying again on display :0." and then it comes back on.
Turn the gdm entry in /etc/ttys to "off". kill -HUP 1. Then kill the
gdm process.
There is no gdm entry in /etc/ttys. kill -HUP 1 doesn't seem to have
any effect. However.....

In top, killing XFree86 or gdmlogin restarts GNOME. killing them both
results in a "No such process" error on gdmlogin process and GNOME
restarts. However, killing the gdm binary that is in "poll" state
does the job; killing it causes all four of the processes to drop
out of the top display.

Interesting. Thanks everyone, your suggestions helped me find an
answer that works. I don't think it should be this difficult, tho!

Jay
yuri van Overmeeren
2004-10-31 07:37:26 UTC
Permalink
Post by Jay O'Brien
Post by Jonathan Chen
Post by Jay O'Brien
Post by Andrew Jones
Post by Jay O'Brien
Ok, what DO I do to shut down gnome if I don't want it running?
ctrl+alt+backspace. It crashes the xserver though, but it'll exit.
Nope. It doesn't work for me. With gdm/X running, ctl+alt+bksp goes
first to black screen then comes back with a new logon window. If I
do it enough times, it reports to the virtual terminal "The display
server has been shut down about 6 times in the last 90 seconds, it
is likely that something bad is going on. I will wait for two minutes
before trying again on display :0." and then it comes back on.
Turn the gdm entry in /etc/ttys to "off". kill -HUP 1. Then kill the
gdm process.
There is no gdm entry in /etc/ttys. kill -HUP 1 doesn't seem to have
any effect. However.....
In top, killing XFree86 or gdmlogin restarts GNOME. killing them both
results in a "No such process" error on gdmlogin process and GNOME
restarts. However, killing the gdm binary that is in "poll" state
does the job; killing it causes all four of the processes to drop
out of the top display.
Interesting. Thanks everyone, your suggestions helped me find an
answer that works. I don't think it should be this difficult, tho!
Jay
When you started with a login manager the ctrl-alt-backspace=restart X.
I use kdm, If for some reason I want to exit to terminal I use a
terminal (logged in as root) and type:

killall kdm

You could try that for gdm.

-yuri
Jay O'Brien
2004-11-08 06:36:32 UTC
Permalink
Post by Jay O'Brien
There's got to be a way to shut GNOME and XFree86 down without
rebooting! At least that works. I wonder if this may be the time
to go to version 5 and the newer version of X?
Manually?
To stop Gnome: /usr/X11R6/etc/rc.d/gdm.sh stop
To start Gnome: /usr/X11R6/etc/rc.d/gdm.sh start
Permanently? Remove the gdm.sh file.
Regards,
Frank
Frank, that works perfectly. However, copying gdm.sh.sample as
gdm.sh so that "stop" will work also starts gdm on boot, and I
don't want that.

However, I now see what gdm.sh is doing. The command, from that
file, is 'killall -m gdm 2' and that is much simpler than running
top, identifying the PID and then killing the gdm binary.

Thanks for showing me the way!

Jay O'Brien

Continue reading on narkive:
Loading...