LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 09-12-2003, 11:35 AM   #1
QmanV2
LQ Newbie
 
Registered: Sep 2003
Location: /dev/null
Distribution: Redhat 7.3
Posts: 13

Rep: Reputation: 0
Linux Redhat 7.3 Hangs When Loading the GUI Login


Greetings all - I am having a problem with a Dell Poweredge 4600 Server running Redhat 7.1.

Originally we had the system up and running for a day and a half with no problems. Halfway through the second day, while I was getting familiar with the layout of the system (Im a Windows person...dont hate me....) the mouse started "skipping" across the screen, then it just froze completely.

Since then, I have been unable to get it to boot successfully back in to the GUI. It starts to launch the StartX GUI and it will freeze up. Sometimes I can switch the command line (Ctrl+Alt+F1) and try to enter login information there, but it freezes here as well.

Dell swapped out the motherboard, RAM and the RAID controller, but it is still doing the same thing. I have tried doing an interactive startup to try to prevent the GUI from launching automagically, but it seems to set the runlevel to init5 before I can do anything about it. About the only CLI I can get into is grub, but Im not sure if that would help or not.

As a troubleshooting step, I tried using a different monitor than the Dell one (Dell M782) and using my flat panel monitor (Gateway FPD1520) and I got an error that said "Frequency out of range", so Im guessing that there may be something funky in the settings of the machine (although I dont recall changing any of that...Im not even sure HOW to change it!) that control the monitor refresh rate, etc.

Does anyone know if GRUB can help me out here or not? Any other suggestions are welcome, and if you need further information about the system, please let me know how to find it - Im relatively new to Linux and still learning as I go....

Thanks!!!!
 
Old 09-12-2003, 09:09 PM   #2
r00tnuke
Member
 
Registered: Aug 2003
Location: /earth/usa/texas/houston
Distribution: Fedora C2
Posts: 64

Rep: Reputation: 15
Edit your /etc/inittab to default to init 3 instead of 5. Make sure all daemons (services) are running that you would otherwise want to run are also selected to run in init 3.

this is done with

chkconfig --list | less

Observe how long it runs.

What will you gain from this exercise?...

The answer is, You will determine what the problem isn't.
 
Old 09-15-2003, 11:04 AM   #3
QmanV2
LQ Newbie
 
Registered: Sep 2003
Location: /dev/null
Distribution: Redhat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for the help - I did manage to get it to a command prompt (thanks to single user mode...) and from there the inittab file was fairly easy to edit. Everything is set to runlevel 3 now just so I can gain control of the system. The "Dell Dudes" walked me through changing my GUI environment to GNOME instead of KDE, however I notice that I am missing some functionality as a result of this.
For example, I cannot change the root password from the GUI - something that I think needs to be done asap since there are several people who know what it is. Also, as part of our database software (Informix SQL) we need to be able to add users via the KUSER feature, and this is not working either. I *prefer* the KDE desktop, but when I try to load it, I run into the same "hanging" problem as before - possibly due to the desktop theme associated with it (I changed it last week and I think this may be part of the problem...) - is there anyway to reset the desktop theme to use the default settings instead of "Lorenz Attractor" which is what I believe it is set to use. Additionally, I cannot remember how to specify which environment to use when running "startx" - as I stated before, it is set to use the GNOME desktop instead of KDE thanks to Dell's editing of a system file...

Thanks for the help!
 
Old 09-15-2003, 01:41 PM   #4
r00tnuke
Member
 
Registered: Aug 2003
Location: /earth/usa/texas/houston
Distribution: Fedora C2
Posts: 64

Rep: Reputation: 15
You need to double check me on this. In the past I have resolved corrupt issues with kde by going into the /root or /home/username directory and renaming the hidden kde items. They consist of .kde and .kderc. Once you rename them then log back into that same user but pick KDE and the files will be rebuilt.

Obviously do this on a non production machine first. Just create a bogus user, log under kde, logout, login as root delete the files in the user directory, then log in as the bogus user under kde. Then go take a lokk as to whether the "stock" kde files were recreated.

Once you feel good about it then try it on your real box.
 
Old 09-15-2003, 02:05 PM   #5
QmanV2
LQ Newbie
 
Registered: Sep 2003
Location: /dev/null
Distribution: Redhat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
Oooo...good idea, except for one thing - we only have one box and it IS the production box. *grin*
I dont know if this makes a difference, but Im not logged in as anyone when the problem presents itself. Originally (when the machine was set to runlevel 5) it would launch a GUI login - this is where the problem would occur as far as system slowness/hanging. Im not sure if there is a file that tells it how to load the GUI login window or not, but I think the problem may reside there...of course, I have no problem admitting that Im wrong if thats the case. *grin*
 
Old 09-15-2003, 02:40 PM   #6
r00tnuke
Member
 
Registered: Aug 2003
Location: /earth/usa/texas/houston
Distribution: Fedora C2
Posts: 64

Rep: Reputation: 15
Well it's just going to effect the bogus user so you could do it on the prod machine.
As far as the login manager, you can dictate which login manager you want in prefdm located /etc/X11/prefdm

Just put what you want in preferance = whatever

"whatever" could be kde or gdm or xdm etc... you'll see it there in the prefdm program.

I cannot recal how to do it with startx
 
Old 09-15-2003, 03:32 PM   #7
QmanV2
LQ Newbie
 
Registered: Sep 2003
Location: /dev/null
Distribution: Redhat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
Interesting turn of events here...I tried logging out of GNOME and running "startkde" and it gives me a bunch of errors-do they make sense to you?

rm: cannot remove '.' or '..'
rm: cannot remove '.' or '..'
xsetroot: unable to open display ''
xset: unable to open display ''
xset: unable to open display ''
xset: unable to open display ''
ksplash: cannot connect to X server
kdeinit: Aborting. $DISPLAY is not set
Warning: connect() failed: No such file or directory
ksmserver: cannot connect to X server
Error: Cant open display
Warning: connect() failed: : No such file or directory
Error: Cant contact kdeinit!
unix_connect: cant connect to server (unix:/tmp/mcop-root/central-0983-3f6226d1)

Im guessing that this cant be good....
 
Old 09-15-2003, 05:33 PM   #8
r00tnuke
Member
 
Registered: Aug 2003
Location: /earth/usa/texas/houston
Distribution: Fedora C2
Posts: 64

Rep: Reputation: 15
Were there any changes made or did you just try to get into KDE without making any changes?
 
Old 09-15-2003, 07:54 PM   #9
QmanV2
LQ Newbie
 
Registered: Sep 2003
Location: /dev/null
Distribution: Redhat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
This entire problem seemed to start when I changed to a different desktop theme. I dont know WHY this would cause the issue, since the graphics driver was already loaded and AFAIK all the themes do is change the color settings and wallpaper.
I asked the guy who installed the Linux OS and he said that changing to a different desktop theme shouldnt have caused it. What I would like to do, if possible, is just restore the default settings for KDE so that I can log back in to that desktop instead of GNOME. Is there a way to do this?
 
Old 09-16-2003, 07:56 AM   #10
r00tnuke
Member
 
Registered: Aug 2003
Location: /earth/usa/texas/houston
Distribution: Fedora C2
Posts: 64

Rep: Reputation: 15
So I take it that not matter what user name you log in under and or no matter if you create a new user and log to kde your system locks in kde?

I don't want to send you on a "rabbit chase" with this one but you may consider a KDE upg/reinstall from www.kde.org.

http://download.kde.org/download.php...RedHat/9/i386/

( I dont't know if this is the case but...) I have to tell you that installation of not well supported, beta themes is a big no-no in root.

I usually like to browse www.kde-look.org for themes.

Another thing, If this is a server, Why are you running init 5?

Your going to find as time goes on that looks don't mean anything.

Gear that bad-boy down to init 3. If you need GUI to do some type of admin then pop into init 5. Or better yet...

Download and install www.webmin.com.

You can install that on your server and administer your server via html browser from your desk without apache running on the server.

It's easy to use and a great learning tool for newbies and darn handy for anyone.
 
Old 09-17-2003, 03:23 PM   #11
QmanV2
LQ Newbie
 
Registered: Sep 2003
Location: /dev/null
Distribution: Redhat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
Sorry for the delay in answering - Ive been on the phone with Dell, as well as trying a couple of things suggested by my application developer...none of them seem to work...

I created an account called "kdetest" and logged in (via command line...) as this user. I ran "startx" which launched the KDE desktop, and an interesting thing happened - it ran through a KPersonalizer wizard - I accepted the defaults on everything and it loaded a KDE desktop that is running and stable!

I guess the next question I have is how do I tell the system that this needs to be run for root next time root tries to start KDE? Oh please tell me there is a way to do this...if it means losing all of root's current settings, then so be it. I can live with it - honest!
 
Old 09-17-2003, 04:59 PM   #12
QmanV2
LQ Newbie
 
Registered: Sep 2003
Location: /dev/null
Distribution: Redhat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
Sheesh - talk about a roundabout way to fix this problem - I cant guarantee that this is THE fix for it, but this is what I found out:

There are two hidden directories under /root that control the desktop: .kde and .mcop. I did an rm on both of these, adding _old to them and tried to log into KDE again...it didnt work - I got an error that it couldnt connect to the Xserver...

About that time the Dell rep called me back and I got him up to speed on what I had tried...he suggested that we use MY account (not root) to log in to the system, then use the "su" command to impersonate root. Once we did that and launched the desktop, I got the Kpersonalizer wizard which sets up your desktop environment - this went through just fine and the desktop was up and running in no time.

The best part is that it saved the settings in roots directory so that when I logged completely out of my user account and logged in as root, it launched the desktop with the newly configured settings. Not being one to sit back and relax just yet, I rebooted the server (yes, one of my hobbies IS pressing my luck....) and lo - it once again launched the newly configured, stable, happy KDE desktop.

All is well now - hopefully this helps someone else out!

:Moral of the story: Dont change your root desktop theme! EVER!
 
  


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
GUI Login Hangs gsoft Fedora 1 06-10-2005 06:10 PM
GUI would not load, stops loading before login screen jeffshen Mandriva 8 05-13-2005 01:51 PM
After Ubuntu Login splash screen with box, no icons loading, system hangs Combano Linux - General 1 03-29-2005 10:56 PM
FC3 GUI Login then hangs gibbylinks Fedora 1 12-21-2004 02:37 PM
RedHat 8.0 hangs on loading ohci1394. Brian1 Linux - Distributions 7 08-21-2003 06:35 AM


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