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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-09-2004, 11:25 AM
|
#1
|
LQ Newbie
Registered: Nov 2004
Posts: 6
Rep:
|
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
|
|
|
12-09-2004, 11:35 AM
|
#2
|
Member
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405
Rep:
|
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,
|
|
|
12-09-2004, 12:18 PM
|
#3
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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).
|
|
|
12-09-2004, 12:20 PM
|
#4
|
LQ Newbie
Registered: Nov 2004
Posts: 6
Original Poster
Rep:
|
using init 3 kills my system however so I can not run that command.
|
|
|
12-09-2004, 12:24 PM
|
#5
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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.
|
|
|
12-09-2004, 01:16 PM
|
#6
|
LQ Newbie
Registered: Nov 2004
Posts: 6
Original Poster
Rep:
|
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
|
|
|
12-09-2004, 03:03 PM
|
#7
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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.
|
|
|
02-04-2005, 09:34 AM
|
#8
|
LQ Newbie
Registered: Feb 2005
Location: Edinburgh!
Distribution: Fedora, SuSe
Posts: 1
Rep:
|
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.
|
|
|
02-13-2005, 11:44 AM
|
#9
|
Member
Registered: Apr 2004
Posts: 49
Rep:
|
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...
|
|
|
02-13-2005, 11:53 AM
|
#10
|
Member
Registered: Apr 2004
Posts: 49
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:27 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|