LinuxQuestions.org
Review your favorite Linux distribution.
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 02-01-2008, 08:44 PM   #1
Sheridan
Member
 
Registered: Aug 2007
Location: Hungary
Distribution: Fedora, CentOS
Posts: 89

Rep: Reputation: 21
Question Straightforward way to shut down graphical display on Fedora 7 from command line


Hi Folks,

This has been killing me for some time... begginners question I know, but still.

How do you shut down the graphical display on Fedora 7 from the command line alltogether?

I mean, like in Mandriva, you just type "/etc/init.d/dm stop" and that's it.

Short of changing runlevel, I have no idea. Any help? Thanks!
 
Old 02-01-2008, 10:06 PM   #2
Valik
LQ Newbie
 
Registered: Nov 2007
Posts: 1

Rep: Reputation: 0
as a root user type init 1 or init 3
 
Old 02-01-2008, 10:08 PM   #3
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,305

Rep: Reputation: 205Reputation: 205Reputation: 205
Try as root: init 3.

Oops 2 minutes too slow with my response

Last edited by {BBI}Nexus{BBI}; 02-01-2008 at 10:10 PM.
 
Old 02-02-2008, 06:36 AM   #4
Sheridan
Member
 
Registered: Aug 2007
Location: Hungary
Distribution: Fedora, CentOS
Posts: 89

Original Poster
Rep: Reputation: 21
Thanks guys, thats a solution.

However...

The problem is that if I switch runlevel, some services go offline until I restart them. This comes with a disruption of the service (and lost sessions, uploads, etc etc). I guess the real catch is if I can kill out graphics without changing runlevel in Fedora 7?
 
Old 02-02-2008, 06:54 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Quote:
I mean, like in Mandriva, you just type "/etc/init.d/dm stop" and that's it.
Try /etc/init.d/kdm stop or /etc/init.d/gdm stop
You'll need to be root.
 
Old 02-02-2008, 11:54 AM   #6
Sheridan
Member
 
Registered: Aug 2007
Location: Hungary
Distribution: Fedora, CentOS
Posts: 89

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by tredegar View Post
Try /etc/init.d/kdm stop or /etc/init.d/gdm stop
You'll need to be root.
Unfortunately, there's nothing remotely like that in there. See...

Code:
[root@gepard ~]# ls /etc/init.d/*dm*
/etc/init.d/ipvsadm  /etc/init.d/mdmonitor  /etc/init.d/rpcidmapd  /etc/init.d/sendmail
 
Old 02-02-2008, 12:06 PM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Hmmm. Fedora is different
Try this (as root) /sbin/service --status-all
Look throught the list and identify whatever it is that refers to X
Then /sbin/service servicename {start|stop|status|reload|restart}
eg /sbin/service dm stop
(I am guessing here!)
 
Old 02-11-2008, 04:42 AM   #8
Sheridan
Member
 
Registered: Aug 2007
Location: Hungary
Distribution: Fedora, CentOS
Posts: 89

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by tredegar View Post
Hmmm. Fedora is different
Try this (as root) /sbin/service --status-all
Look throught the list and identify whatever it is that refers to X
Then /sbin/service servicename {start|stop|status|reload|restart}
eg /sbin/service dm stop
(I am guessing here!)
I've since found a not-too-elegant, but simple way to shut it down:

1) Grep for the process "/usr/sbin/gdm-binary -nodaemon"
2) When found, simply kill the process. Everything graphics related will die instantly. It's not enough to just kill Xorg, because it will be respawned immediately - but if you kill this gdm-binary, then all graphics will go away.

Well... it "works for me", but I'm long way from being sure it works for anyone else. At least problem solved.
 
Old 02-11-2008, 11:20 AM   #9
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Thanks for posting a solution.
 
  


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
Graphical Command line without X. Scrob Linux - General 3 11-13-2006 03:48 AM
ImageMagick -- Command line Graphical Suite LinuxLala Linux - News 1 07-20-2005 09:40 AM
PC2TV works in command line but doesn't in graphical domecq Linux - Hardware 1 10-17-2004 12:27 PM
how do i change the graphical res. from command line? justin9 Linux - Newbie 6 03-27-2004 05:16 AM
starting graphical login from command line funkymunky Red Hat 1 02-21-2004 01:28 AM


All times are GMT -5. The time now is 08:57 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration