LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 10-10-2008, 01:40 AM   #1
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 315

Rep: Reputation: 34
gdm takes a long time


hi all I am running fedora8 on a hp desktop.
It worked fine to start with ... for few days.
Then I configured squid and iptables with NAT entries. I have put that in a script in /etc/sysconfig
/network-scripts directory and executed the script from /etc/init.d/network script.

All of a sudden it slowed down the machine and it now takes a long time for the login manager to give me the desktop, also the desktop icons and panels show up very late ?!?!?!

so how can I trouble shoot the problem and get back a normal bootup and login which
is quick...
thanks in advance
nishith
 
Old 10-12-2008, 04:54 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,743
Blog Entries: 54

Rep: Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972
Remove custom script from /etc/sysconfig/network-scripts, then restart network service to see if all works fine (or reboot box), then post script here (preferably in BB code tags) for review?
 
Old 10-16-2008, 06:45 AM   #3
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 315

Original Poster
Rep: Reputation: 34
thanks for the suggestion ....
Actually the problem was with the hostname.
Someone had change the servers hostname to bandman in the /etc/hosts file.
I googled around a bit and found out that if the name is not correctly resolved by the host then gdm login takes a long time.
I solved the problem by chaning to a terminal window and using the command
hostname localhost
now my hostname becomes localhost.localdomain and gdm login goes on as expected i.e nicely.
However, the hostname changes back to bandman even though I changed the /etc/hosts file as under:-
127.0.0.1 locahost.localdomain localhost localhost
Can you suggest some solution
thanks
nishith

Last edited by nkd; 10-16-2008 at 07:11 AM.
 
Old 10-16-2008, 07:14 AM   #4
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 315

Original Poster
Rep: Reputation: 34
ok I figured out three ways to change the hostname back to localhost from bandman
first /etc/sysconfig/network file hostname=localhost
second sysctl kernel.hostname=localhost
and lastly
change the /etc/hosts file as in the previous posts.

I check the result by using the hostname --fqdn command and it shows me localhost.localdomain as expected.

Funny thing is still the login is delayed till I changeover to a terminal window with CTRL+ALT+F1 and I do the command
hostname localhost

what is the matter here
nishith
 
Old 10-17-2008, 02:35 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,743
Blog Entries: 54

Rep: Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972
Maybe I'm wrong, but the delay points to it not getting cached (nscd running?).
 
Old 10-17-2008, 06:24 AM   #6
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 315

Original Poster
Rep: Reputation: 34
well I got that sorted out...
I checked out all places for the name of the host
first the sysctl kernel.hostname - it was correct
second the /etc/hosts file - it was correct too
lastly the dns tab in the
network configuration applet - it was misspelt locahost.localdomain ( missing 'l' in
(system-config-network) the word localhost)

I fixed the spelling mistake and bingo! I could log back in a sec.

Thanks anyway for all that support.
nishith
 
Old 10-17-2008, 03:38 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,743
Blog Entries: 54

Rep: Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972Reputation: 2972
ROTFL! At least you found it yourself. Well done.
 
  


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
GDM takes a *long* time to start first time grumpybuffalo Linux From Scratch 2 09-09-2007 01:17 PM
Login takes a very long time Jensens Linux - Networking 2 03-23-2006 04:24 AM
login takes long time doorman007 Linux - Software 2 04-25-2005 01:56 AM
Bzipping takes a really long time sometimes scott_R General 0 10-10-2004 01:47 AM
Mandrake takes a LONG time to boot VinTSS Mandriva 2 01-11-2004 01:36 AM


All times are GMT -5. The time now is 01:45 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