login is slow without network

Asked by Guillaume ARCHAMBAUD

I have a laptop with Edgy Eft installed, and this laptop is connected in my home network.
If I start the laptop without the network (the switch is off), It takes very long time after login.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Guillaume ARCHAMBAUD
Solved:
Last query:
Last reply:
Revision history for this message
davee (davee-sungate) said :
#1

Where exactly is the delay: is it *before* the login screen appears, or after you have logged-in?

Revision history for this message
Guillaume ARCHAMBAUD (drarchy) said :
#2

Just after I enter my password.
I see the Gnome splash screen . And It takes very long time between each icon.

Evolution use an imap server in my network. And I have some nfs share.

Revision history for this message
davee (davee-sungate) said :
#3

Do you have Evolution set to startup automatically for your Gnome session? If so, when the network is absent it may be timing out.

Revision history for this message
Guillaume ARCHAMBAUD (drarchy) said :
#4

I have unset evolution startup for Gnome session. This makes no effects.

If I do that :
- Crtl+Alt+F1
- Login
- sudo /etc/ini.d/networking stop
- Ctrl+Alt+F7

The speed becomes normal.

I have a static IP on eth0, so no DHCP time out...

Revision history for this message
davee (davee-sungate) said :
#5

OK: not Evolution then. A few other things to check:

"And I have some nfs share." - Can you elaborate on what you mean here? Do you mean that the affected system is mounting remote NFS shares (I assume you don't mean that the affected system is acting as an NFS server)? Are those NFS shares mounted automatically at boot up time, manually or something else?

Are there any other applications which start automatically in your Gnome session?

Revision history for this message
Guillaume ARCHAMBAUD (drarchy) said :
#6

Yes, I have somtehing like that in /etc/fstab

192.168.2.2:/home/tux1/Divx /home/tux2/Divx nfs rw 0 0

I will try tonight without this line.

Revision history for this message
Guillaume ARCHAMBAUD (drarchy) said :
#7

I tried without the NFS share at boot. This made no changes. This is very slow.

An other idea ?

Thanks

Revision history for this message
davee (davee-sungate) said :
#8

Running out of suggestions ... however, a further question. When the PC is "being slow" after your login, does it seem like it's (a) sitting there doing nothing or (b) crunching away doing something?

Revision history for this message
Guillaume ARCHAMBAUD (drarchy) said :
#9

a : doing nothing.

I just want to know if it is a bug, or if my laptop is misconfigured.

Having a network is not automatic for a laptop, I just want the system is able to work fine with or without network.

Is there an option or a package to install to say at boot : "I am at home", or "I am at work" or "I am without network" ?

Thanks

Revision history for this message
Guillaume ARCHAMBAUD (drarchy) said :
#10

I just see this bug : https://launchpad.net/distros/ubuntu/+bug/69941

Maybe I have the same problem.

Revision history for this message
davee (davee-sungate) said :
#11

There certainly shouldn't be a general problem with logging in when the network is down - for example, on my laptop, the wireless connection only comes up *after* I've logged-in and have been prompted for the WPA passphrase.

You shouldn't find yourself in a position of having to say "I am without network", because it should just work.

Just a thought: have you looked at your system logs? Perhaps there is something there which might give a clue. Particularly, since this sounds like a network timeout, are there any references to timeouts, failed name resolutions or similar?

Revision history for this message
davee (davee-sungate) said :
#12

After reading the comments on https://launchpad.net/distros/ubuntu/+bug/69941 another possibility is perhaps you could see if the problem goes away if you select, say, the 386 kernel at boot-up. Might determine whether the problem is kernel-specific.

Revision history for this message
Best Guillaume ARCHAMBAUD (drarchy) said :
#13

I have seen this message in .xsession-errors

"host name lookup failure on localhost"

So, I've added this line in the /etc/hosts file.

127.0.0.1 localhost mylaptop

and delete an other line like that : 127.0.1.1