LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 02-01-2008, 07:44 PM   #1
Sheridan
Member
 
Registered: Aug 2007
Location: Hungary
Distribution: Mandriva, Fedora
Posts: 86

Rep: Reputation: 17
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, 09: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, 09:08 PM   #3
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mandriva 2011 / Mageia 1 / Linux Mint 12 / CrunchBang Linux 10 Statler / Easy Peasy
Posts: 4,274

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

Oops 2 minutes too slow with my response

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

Original Poster
Rep: Reputation: 17
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, 05:54 AM   #5
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 5,995

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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, 10:54 AM   #6
Sheridan
Member
 
Registered: Aug 2007
Location: Hungary
Distribution: Mandriva, Fedora
Posts: 86

Original Poster
Rep: Reputation: 17
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, 11:06 AM   #7
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 5,995

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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, 03:42 AM   #8
Sheridan
Member
 
Registered: Aug 2007
Location: Hungary
Distribution: Mandriva, Fedora
Posts: 86

Original Poster
Rep: Reputation: 17
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, 10:20 AM   #9
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 5,995

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Graphical Command line without X. Scrob Linux - General 3 11-13-2006 02:48 AM
ImageMagick -- Command line Graphical Suite LinuxLala Linux - News 1 07-20-2005 08:40 AM
PC2TV works in command line but doesn't in graphical domecq Linux - Hardware 1 10-17-2004 11:27 AM
how do i change the graphical res. from command line? justin9 Linux - Newbie 6 03-27-2004 04:16 AM
starting graphical login from command line funkymunky Red Hat 1 02-21-2004 12:28 AM


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

Main Menu
 
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
Open Source Consulting | Domain Registration