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-09-2004, 11:25 AM   #1
slammers
LQ Newbie
 
Registered: Nov 2004
Posts: 6

Rep: Reputation: 0
How to stop X in Fedora Core 3


I am trying to get Fedora to run under VMWare. I have Fedora installed and running fine under VMWare. However, to install some VMWare tools I have to run a script that will ONLY run when XFree is not running.

How can I shut down the X server? In the past I have jsut used init 3 to shutdown X but unfortunatley this locks up the system under VMWare.

Is it possible to shutdown X in a different way?

Is there a file I can edit to prevent X from starting the next time I boot Fedora?

Thanks
Shawn
 
Old 12-09-2004, 11:35 AM   #2
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
X can be stopped with cntl-alt-backspace

to stop from booting into X, edit /etc/inittab and change the line that begins with

id:5:blahblahblah

to

id:3:blahblahblah

and reboot. NOw you'll boot into runlevel 3, and to start X use:

startx

Good luck,
 
Old 12-09-2004, 12:18 PM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
ctrl - alt - f1 then login as root and do "init 3". That totally kills the xserver. To get back into X, just do "init 5" as root. The method described does not totally kill X, it just restarts it if you are running your system on runlevel 5 (init 5).
 
Old 12-09-2004, 12:20 PM   #4
slammers
LQ Newbie
 
Registered: Nov 2004
Posts: 6

Original Poster
Rep: Reputation: 0
using init 3 kills my system however so I can not run that command.
 
Old 12-09-2004, 12:24 PM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
i don't understand what you mean when you say init 3 kills your system. It should kill the xserver, then you are left in text mode with a login prompt.
 
Old 12-09-2004, 01:16 PM   #6
slammers
LQ Newbie
 
Registered: Nov 2004
Posts: 6

Original Poster
Rep: Reputation: 0
I am running Fedora with VMWare. It s a way to running multiple operating systems under windows. For some reason VMware is crashing fedora after I type the init 3 command. It locks up part through trying to switch to that run mode. I do not know why.

So I am looking for and alternate way of stopping the Xserver.

I modified the inittab like jeffreybluml suggested and it worked out great.

Thanks
 
Old 12-09-2004, 03:03 PM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I see so it could be a vmware problem and not Fedora problem coz the method i posted above works fine on native Fedora installations.
 
Old 02-04-2005, 09:34 AM   #8
Stevo_w
LQ Newbie
 
Registered: Feb 2005
Location: Edinburgh!
Distribution: Fedora, SuSe
Posts: 1

Rep: Reputation: 0
Hi.

I'm pretty new to Fedora but I'm a fairly competent Linux user but I'm having the exact same problems as described above.

I'm trying to install the latest NVidia driver in which I need to quit the X server to do. When I do Ctrl + Alt + Backspace, The computer crashes and never recovers. Now ... I tried the init 3 thing and now my linux installation wont even boot! It gets stuck at the login page which I'm sure its attemping to run some form of command line interface.

I'm just wondering if theres any way I can recover from this?

Cheers

Steve.
 
Old 02-13-2005, 11:44 AM   #9
jobless_joe
Member
 
Registered: Apr 2004
Posts: 49

Rep: Reputation: 15
I am having a similar problem, but when i type init 3, it hangs after anacron. I just need to stop x server! shouldnt be this hard...
 
Old 02-13-2005, 11:53 AM   #10
jobless_joe
Member
 
Registered: Apr 2004
Posts: 49

Rep: Reputation: 15
ok, well...when I try ctrl alt f1, it goes to text, but the nvidia driver install still tells me that xserver is running and that i need to shut it down.
 
  


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
Severe problems with Fedora Core 1 and Fedora Core 2 installatiom TheOneKEA Fedora - Installation 2 07-14-2004 02:12 PM
No floppy, make core 2 stop looking Perspective Linux - Laptop and Netbook 2 06-13-2004 11:54 PM
Upgrading via Internet Fedora Core 1 to Fedora Core 2 cdean Linux - Newbie 2 05-30-2004 11:14 PM
Fedora Core 2 - Just days away! Final comments on Fedora Core 1 lrt2003 Fedora 3 05-12-2004 02:09 AM
Will Fedora Core 1 RPMs still be compatable with Fedora Core 2? yarjar Linux - Software 1 05-02-2004 01:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:01 AM.

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