LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-04-2007, 04:35 AM   #1
alyoshak19
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Rep: Reputation: 0
Long KDE boot time (~10 mins) on Debian Etch


Hello, this is my first post, so please let me know if you need more information.

I'm running Debian Etch (4.0) on a PIII 1GHz w/ 256MB RAM and I have recently switched to using KDE (version 3.5.5) for my desktop (from Gnome, which worked fine). I mainly want to use KDE because I can get Amarok running fine from there. However, it is taking me FOREVER to load up KDE, on the order of 10 minutes. I went and ate breakfast once, came back and it still hadn't loaded, not kidding. Once KDE is up, it's running quite well (though using all but 7MB of my RAM).

I have read extensively (4 hrs of googling) about various startup problems, and the main culprit seems to be networking difficulties (some DNS lookups timing out). I run an iptables firewall on this system and I have a two-computer LAN (just using a crossover cable). I run Samba (the other box is WinXP) and I have a crappy little USB ADSL modem (the Speedtouch 330), which took some work to set up. I've done most of this manually, so I certainly could have messed something up. This is my first Linux box, so I'm quite a newbie.

Any help you can provide would be really appreciated. This is driving me nuts! Thanks in advance.
 
Old 11-04-2007, 06:41 AM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 995

Rep: Reputation: 128Reputation: 128
After I changed in the file "/etc/conf.d/hostname" the value...
Code:
HOSTNAME="localhost"
...to something different than "localhost", X used to take 30 seconds longer to boot returning after waiting a message like "Host XXXX not found" or something similar. Perhaps you have this kind of problem?
Don't know if "/etc/conf.d/hostname" is specific only for my distribution (Gentoo)... .
 
Old 11-04-2007, 12:45 PM   #3
alyoshak19
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for your reply. Unfortunately, /etc/conf.d doesn't even exist on my system. I have tried various permutations of hostname, 127.0.0.1, 192.168.1.1 (the local net addr for this box) in the /etc/hosts file, and I've checked that loopback is running (it is), but none of these seem to make a difference.
Is there some sort of diagnostic tool I can run (or even an error log I can look at) which might help me out? Thanks.
 
Old 11-05-2007, 05:27 PM   #4
AlyoshaK
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Rep: Reputation: 0
Anyone? Please help!
 
Old 11-07-2007, 01:20 PM   #5
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 995

Rep: Reputation: 128Reputation: 128
And what happens if you just type in the shell
Code:
hostname
? And if you try to ping what you get back, does it ping to it quickly?
 
Old 11-08-2007, 03:07 AM   #6
alyoshak19
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the reply. Here's what happens:
Code:
$hostname
LINUX
$ping hostname
ping unknown host hostname
$ping LINUX
ping LINUX (192.168.1.1) 56(84) bytes of data ... (Ctrl-C)
--- LINUX ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3010 ms
LINUX is my very uncreative name for this box. My /etc/hosts file is:
Code:
127.0.0.1 localhost
192.168.1.1 LINUX server
192.168.1.2 WINXP
The WINXP is, well, just my WinXP machine. My iptables -L command returns the following (I've substituted **** for my IP address)
Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     udp  --  anywhere             anywhere            udp spt:domain dpts:1024:65535
ACCEPT     icmp --  anywhere             *******             icmp echo-reply state RELATED,ESTABLISHED
ACCEPT     icmp --  anywhere             LINUX               icmp echo-reply state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     0    --  192.168.1.0/24       anywhere
LOG        0    --  anywhere             anywhere            LOG level warning prefix `Dropped In '
DROP       0    --  anywhere             anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             WINXP               tcp spts:1024:65535 dpt:3724 state NEW
ACCEPT     tcp  --  anywhere             WINXP               tcp spts:1024:65535 dpt:6112 state NEW
ACCEPT     0    --  anywhere             anywhere            state NEW,RELATED,ESTABLISHED
ACCEPT     0    --  anywhere             anywhere            state RELATED,ESTABLISHED
LOG        0    --  anywhere             anywhere            LOG level warning prefix `Dropped Fwd '
DROP       0    --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     udp  --  anywhere             anywhere            udp spts:1024:65535 dpt:domain
ACCEPT     tcp  --  anywhere             anywhere            state NEW,RELATED,ESTABLISHED
ACCEPT     icmp --  *******              anywhere            icmp echo-request state NEW,RELATED,ESTABLISHED
ACCEPT     icmp --  LINUX                anywhere            icmp echo-request state NEW,RELATED,ESTABLISHED
ACCEPT     0    --  anywhere             192.168.1.0/24
LOG        0    --  anywhere             anywhere            LOG level warning prefix `Dropped Out '
DROP       0    --  anywhere             anywhere

Last edited by alyoshak19; 11-08-2007 at 04:11 AM.
 
Old 11-08-2007, 03:34 AM   #7
alyoshak19
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Original Poster
Rep: Reputation: 0
I should also say that I've run "top" while KDE is loading and CPU usage is at about 0.3% (99.7% free) for the whole ten minutes. So, I highly suspect a networking problem.
 
Old 11-08-2007, 01:43 PM   #8
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 995

Rep: Reputation: 128Reputation: 128
You might be right.
You have 100% packet loss when trying to ping your hostname (LINUX).
It might be that your X client is trying to reach your X server using the the hostname you set (LINUX), which cannot be reached internally using the ip number you set (192.168.1.1 - does ifconfig return that IP number for your eth device?).
On the other side, by typing ifconfig you should see 127.0.0.1 for your "lo" device.

So, try to change in your /etc/hosts file the entry...
Quote:
127.0.0.1 localhost
192.168.1.1 LINUX server
192.168.1.2 WINXP
...to...
Quote:
127.0.0.1 localhost
127.0.0.1 LINUX server
192.168.1.2 WINXP
...and see afterwards if pinging LINUX works. If it does, see if you still experience the delay.
Hope it helps - sorry, don't know much about networking...

Last edited by Pearlseattle; 11-08-2007 at 01:45 PM.
 
Old 11-09-2007, 09:09 AM   #9
alyoshak19
LQ Newbie
 
Registered: Nov 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks, Pearlseattle. I do get the 192.168.1.1 address from my eth0 device after running ifconfig. But I realized that I don't have a lo device! I had one earlier, but not now. There's also something funny with my iptables setup which is not permitting me to ping 127.0.0.1 (consequently, changing the /etc/hosts file in the way you suggested didn't work), so I've moved my questions to the networking forum (since it's clear this is no longer about KDE!). Thanks again for helping.

Edit: That new thread is here

Last edited by alyoshak19; 11-09-2007 at 09:11 AM. Reason: added link to thread
 
  


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
Time changes by 10-30 mins on boot redbook Linux - Laptop and Netbook 1 05-12-2007 12:35 PM
takes long time to load the KDE bruse Linux - Newbie 14 10-03-2005 04:29 PM
long time to boot rpb Linux - General 10 05-04-2005 02:31 AM
hard crash after 20 mins. every time on first boot reboot and it will run ok bejamin1 Mandriva 5 02-02-2004 01:42 PM
why it is so long time to boot bajaj Linux - Software 6 08-11-2003 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:19 PM.

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