LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 06-07-2005, 07:57 AM   #1
qtran2
LQ Newbie
 
Registered: Jun 2005
Posts: 2

Rep: Reputation: 0
Question inittab not working correctly with X


Hello All,

I'm running RHEL ES3, Update 4. I recently installed gtk+2.4.4 and all of it's dependencies. I'm having an issue were it is weird and I can't seem to locate what the issue is.

Situation: If I change the inittab to use id:3: it will boot to command line correctly. I then can type in "startx" and the GUI will come up fine. However, if I change the inittab to use id:5: it will not boot to GUI it will keep giving me an error "There seems to be an X Server already running on display :0. Do you want to ....Yes or No".

My question is why can I start X from the command line with "startx", but not with the inittab set to id:5: ?

I tried installing gimp 2.0 and re-install gtk+2.4.4, but not luck, still same issue.

Any help would be appreciated.

Thanks,
Q
 
Old 06-07-2005, 09:51 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
Maybe you have two ways to start the X server on :0 that are active at the same time. For example, you could have (I'm not on Linux right now, so be kind with me on syntax and paths):
- in /etc/inittab: X:5:/usr/X11R6/bin/startx -- :0
- in /etc/inittab: X:5:/usr/sbin/prefdm (which will start X)
- in /etc/rc.d/rc5.d/ : S55dm -> ../init.d/dm (which will start X)
- ... other possibilities depending on patches/updates you applied.

I speak theory here, though, as I'm a Mandrake user, not a RedHat one. I hope this helps anyway.

Yves.
 
Old 06-13-2005, 02:58 AM   #3
qtran2
LQ Newbie
 
Registered: Jun 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Well I did so trial and error and have come to a conclusion that is has to deal with the GNOME desktop/login GUI. I traced the init and inittab and other scripts and found out that by Default Linux will load GNOME. I changed this to Default to XDM and it will come up all the time, but when I change it back to GNOME I get the above error.

I also tried to see if X was already started, but I could not find it. Or atleast maybe I'm not looking correctly. The process I would take would be to boot to Text (inittab set to 3). Then I would look at all process with "ps - ef", but could not see an X process running. The funny thing is if I type in "startx", GNOME login GUI will come up correctly, though it starts with a black background instead of the usually blue. But, if I type in "gdm" it will get the above error stating X is already running. I have also noticed that it sometimes complain/errors about the Bluecurve theme. So it is possible that the themes could have been corrupted. I tried re-installing GNOME, but still same results.

So my question then is how does "startx" process differ from "gdm". I tried tracing the two different process, but I would get confused and loose track. So if someone could explain it to me that would be awesome.

So for the time being I'm using XDM until I can sort the GNOME out.

Thanks,
QT
 
  


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
still trying to get kernel 2.6.9 working correctly nebukazar Slackware 5 11-10-2004 03:18 PM
Nvidia Working Correctly SML Linux - Newbie 9 03-12-2004 10:47 PM
search not working correctly -- i think mrtwice LQ Suggestions & Feedback 7 06-30-2003 02:10 PM
dmesg not working correctly?? zLinuxz Linux - General 4 05-05-2002 09:30 PM
Graphical login not working? Edited inittab... streamalot Linux - General 6 02-22-2002 09:24 AM


All times are GMT -5. The time now is 10:30 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration