Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General > Member Success Stories
User Name
Password Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.


  Search this Thread
Old 03-05-2005, 12:11 PM   #1
Registered: Jan 2004
Distribution: Kubuntu 10.04 (Dell Linux-preinstalled laptop + a desktop); Maemo 5 (N900 phone computer)
Posts: 116

Rep: Reputation: 21
KDE/CUPS printer slow to start up; fixed with " localhost" in /etc/hosts

I was going to start a thread about how frustratingly slow it was to print stuff from my KDE (Mandrake) system. Every time I tried to print (from KWrite, Konqueror, or any other KDE program, really), I had to wait 20 seconds before my computer found my printer and said, "Okay, I'm ready. What did you want to print?"

I also had a complaint about KDE being slow, so I posted about that, too. One of the responses was to make sure that the file "/etc/hosts" contained the following line:

Code:   localhost
I did that, and magically, poof! Now when I print, my computer can find my printer instantly!

It looks like CUPS (Common Unix Printer System) looks for a server at "localhost", and it searches for this mysterious computer everywhere before realizing that it's referring to itself. By including this line in the /etc/hosts file, I short-circuit this process by making it glaringly obvious which computer we're talking about.

Now, waiting 20 seconds before eventually having CUPS figure things out is not exactly an "error", but it is certainly a *problem*, and I wonder what other things my computer is doing inefficiently, eventually muddling through it but generating no errors/warnings and making me think that Linux is just plain slower than Windows. I have no idea where to even start, since KDE has next to zero documentation. (Don't try to tell me that the "KDE Handbook" is real documentation; it says useless things like "To bring up the File Menu, click on File." Duhhh...) Maybe KDE should have some repository of warnings in /var/log/KDEinefficiencies or something.

In any case, thanks to cadj for pointing this out. The actual thread is at:


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
How do I start a "not ready" cups printer ? Joe Franek Linux - Newbie 6 06-05-2012 01:48 AM
CUPS problem! "localhost:631, connection refused"!!! robbow52 Debian 5 03-04-2009 02:27 PM
"Unable to create printer" from KDE Wizard when setting up SMB printer Happy2Bme SUSE / openSUSE 1 01-18-2005 08:30 AM
How to start KDE automaticlly without typing "startx" then "startkde" Jonescity Slackware 8 10-29-2004 10:32 PM
CUPS keeps "forgetting" my USB printer! JazzMastaJim Linux - Hardware 3 06-17-2004 12:40 AM

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration