LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-19-2004, 04:23 AM   #1
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Rep: Reputation: 15
from gui to shell


I'm using RH9 .My default boot level is 3 (shell), I can go to gui by typing "GDM" at shell but I want to know how to kill the gui and go back to shell without rebooting the system.

Any help is appreciated.
 
Old 12-19-2004, 04:27 AM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Open a terminal and make it runlevel 3 again

Code:
telinit 3
 
Old 12-19-2004, 04:29 AM   #3
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Original Poster
Rep: Reputation: 15
command not found is the error when i do that.
 
Old 12-19-2004, 04:31 AM   #4
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
init 3

Does that work?
 
Old 12-19-2004, 04:33 AM   #5
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Original Poster
Rep: Reputation: 15
nope, command not found.
 
Old 12-19-2004, 04:35 AM   #6
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Were you root?
 
Old 12-19-2004, 04:36 AM   #7
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Original Poster
Rep: Reputation: 15
tried it both ways, root and normal.
 
Old 12-19-2004, 04:39 AM   #8
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Hmm strange. You can kill gdm but that's not the proper way. With "ps -aux" you can find the process number then you can do "kill (number)". CTRL-ALT-BSP will also kill the xserver but IIRC gdm kept on restarting making it not useful. Other than that I'm out of suggestions.
 
Old 12-19-2004, 04:45 AM   #9
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Original Poster
Rep: Reputation: 15
ctrl-alt-bsp simply logs out and takes back to the gui login screen, killing it is something i could do but I can't find gdm, or the right one in the list.

Thanks for the suggestions though, maybe someone else will have more ideas.

EDIT: Killing the gdm-binary worked, I can use this for now unless someone else gives other suggestions.

Last edited by deWin; 12-19-2004 at 04:52 AM.
 
Old 12-19-2004, 07:16 AM   #10
LasseW
Member
 
Registered: Oct 2004
Distribution: Fedora 7, OpenSuse 10.2
Posts: 108

Rep: Reputation: 15
Init 3 wouldn't have worked anyway because you're launching X without switching runlevel. If you have runlevel 5 (or 4 ?) set up for X in /etc/inittab you should use 'init 5' for GUI and 'init 3' to get back to CLI. init is usually in /sbin, did you use 'su -' to become root ? Just 'su' won't change your path.
 
Old 12-19-2004, 07:42 AM   #11
pcunix
Member
 
Registered: Dec 2004
Location: MA
Distribution: Various
Posts: 149

Rep: Reputation: 23
Maybe this is a silly question

Maybe this is a silly question, but do you really need to kill the GUI?

Would CTRL-ALT-F1 (or F2, F3, whatever) give you what you want?

--
Tony Lawrence
http://aplawrence.com
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to get into shell not gui! dangerousdave Linux - Newbie 7 02-12-2005 05:25 PM
GUI for a Shell Script lazkyr Programming 4 08-18-2004 08:16 AM
Looking for GUI Shell Scripting Editor L1nu*M0m Linux - Software 3 06-08-2004 08:54 PM
Getting in GUI instead of command shell using Mandy 9.2 Boudewijn Linux - Software 4 03-05-2004 09:02 AM
How to tell the shell program is invoked from GUI environment? oldbee Programming 9 01-20-2002 10:17 PM


All times are GMT -5. The time now is 12:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration