Unix Technical Forum

'Emacs' and 'startx' start so slowly.

This is a discussion on 'Emacs' and 'startx' start so slowly. within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> =====Env===== Slackware 12.0 2.6.21.5-smp KDE 3.5.7 Emacs 22.1.1 ============ I use the router to connect the Internet, so I ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 04:40 AM
vvoody
 
Posts: n/a
Default 'Emacs' and 'startx' start so slowly.

=====Env=====
Slackware 12.0
2.6.21.5-smp
KDE 3.5.7
Emacs 22.1.1
============

I use the router to connect the Internet, so I can just plug the rj45
line to my laptop. I found that if I didn't connect the Internet, it
took so much time to start the Emacs(about 1 minute!) and startx(about
20 seconds to see the KDE startup interface).

But they started in few seconds when I'm online. I'm confused about
that. Someone told me to add 'timeout=1' into the /etc/resolv.conf,
but that didn't make better. They two still start so slowly.

What's up?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 04:40 AM
Martin
 
Posts: n/a
Default Re: 'Emacs' and 'startx' start so slowly.

vvoody wrote:
> =====Env=====
> Slackware 12.0
> 2.6.21.5-smp
> KDE 3.5.7
> Emacs 22.1.1
> ============
>
> I use the router to connect the Internet, so I can just plug the rj45
> line to my laptop. I found that if I didn't connect the Internet, it
> took so much time to start the Emacs(about 1 minute!) and startx(about
> 20 seconds to see the KDE startup interface).
>
> But they started in few seconds when I'm online. I'm confused about
> that. Someone told me to add 'timeout=1' into the /etc/resolv.conf,
> but that didn't make better. They two still start so slowly.
>
> What's up?


what's your machine's hostname?
do you have your hostname entry as well as localhost in /etc/hosts?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 04:40 AM
vvoody
 
Posts: n/a
Default Re: 'Emacs' and 'startx' start so slowly.

> what's your machine's hostname?
> do you have your hostname entry as well as localhost in /etc/hosts?


vvoody@vvhostname:~$ cat /etc/hosts
#
# hosts This file describes a number of hostname-to-address

# For loopbacking.
127.0.0.1 localhost
192.168.2.101 slackware12.0 slackware12.0
#192.168.2.101 vvhostname.vvdomain vvhostname

# End of hosts.

-----------------------
vvoody@vvhostname:~$ hostname
vvhostname
-----------------------

I should use '192.168.2.101 vvhostname.vvdomain vvhostname' ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 04:40 AM
Thomas Overgaard
 
Posts: n/a
Default Re: 'Emacs' and 'startx' start so slowly.


vvoody wrote :

> # For loopbacking.
> 127.0.0.1 localhost
> 192.168.2.101 slackware12.0 slackware12.0


Try this instead:
# For loopbacking.
127.0.0.1 localhost
127.0.0.1 slackware12.invalid slackware12
--
Thomas O.

This area is designed to become quite warm during normal operation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 04:40 AM
vvoody
 
Posts: n/a
Default Re: 'Emacs' and 'startx' start so slowly.

The original content of /etc/hosts is:

# For loopbacking.
127.0.0.1 localhost
192.168.2.101 vvhostname.vvdomain vvhostname

# End of hosts.n
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 04:40 AM
Thomas Overgaard
 
Posts: n/a
Default Re: 'Emacs' and 'startx' start so slowly.


vvoody wrote :

> # For loopbacking.
> 127.0.0.1 localhost
> 192.168.2.101 vvhostname.vvdomain vvhostname


Then try:
127.0.0.1 localhost
127.0.0.1 vvhostname.vvdomain vvhostname

This line:
192.168.2.101 vvhostname.vvdomain vvhostname
should be used on other computers at your network so they can contact
your computer as "vvhostname" instead of 192.168.2.101.
--
Thomas O.

This area is designed to become quite warm during normal operation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 04:40 AM
vvoody
 
Posts: n/a
Default Re: 'Emacs' and 'startx' start so slowly.

On Nov 17, 8:16 pm, Thomas Overgaard <tho...@post2.tele.dk> wrote:
> vvoody wrote :
>
> > # For loopbacking.
> > 127.0.0.1 localhost
> > 192.168.2.101 vvhostname.vvdomain vvhostname

>
> Then try:
> 127.0.0.1 localhost
> 127.0.0.1 vvhostname.vvdomain vvhostname
>
> This line:
> 192.168.2.101 vvhostname.vvdomain vvhostname
> should be used on other computers at your network so they can contact
> your computer as "vvhostname" instead of 192.168.2.101.


That's it.

Regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 04:40 AM
Ayaz Ahmed Khan
 
Posts: n/a
Default Re: 'Emacs' and 'startx' start so slowly.

Thomas Overgaard wrote:

> Then try:
> 127.0.0.1 localhost
> 127.0.0.1 vvhostname.vvdomain vvhostname
>
> This line:
> 192.168.2.101 vvhostname.vvdomain vvhostname should be used on
> other computers at your network so they can contact your computer as
> "vvhostname" instead of 192.168.2.101.


I've similar settings on all of my Slackware boxes. However, if I SSH
into any of them with the DSL shut off, the username prompt shows up
immediately, but takes anywhere from five to ten seconds for the password
prompt to come.

--
Ayaz Ahmed Khan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 04:40 AM
Joost Kremers
 
Posts: n/a
Default Re: 'Emacs' and 'startx' start so slowly.

Ayaz Ahmed Khan wrote:
> I've similar settings on all of my Slackware boxes. However, if I SSH
> into any of them with the DSL shut off, the username prompt shows up
> immediately, but takes anywhere from five to ten seconds for the password
> prompt to come.


have you tried 'ssh -v -v -v' to see what is happening? perhaps it doesn't
have to do anything with resolv.conf at all...


--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2008, 04:40 AM
Robby Workman
 
Posts: n/a
Default Re: 'Emacs' and 'startx' start so slowly.

On 2007-11-17, Martin <martin@slackware.com> wrote:


There is no martin@

-RW
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:38 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com