LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org 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.

Notices

Reply
 
Search this Thread
Old 03-05-2005, 11:11 AM   #1
KWTm
Member
 
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 "127.0.0.1 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:
127.0.0.1   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:
http://www.linuxquestions.org/questi...80#post1511280
 
  


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


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

Main Menu
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