LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-15-2005, 03:19 AM   #1
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Question KPrinter-CUPS-hosts file conflict


Greetings fellow Slackers!

I am stuck on dial-up. Boo hoo.

To help improve my connection performance, I use a hosts file that contains the IP addresses of all of my browser bookmarks, but also contains a huge list of domain names that I do not want my box connecting to, such as ad servers and p0rn sites (with all addresses pointing to 127.0.0.1 of course). The system is simplistic but works like a charm for me. I've been doing this in Windows for years and I migrated my hosts file to my Slack box.

While online the large hosts file creates no performance problems whatsoever in Slack-KDE. One significant irritation, however, is when I use the KDE KPrinter (my dial-up connection status is irrelevant). KPrinter is configured to use CUPS and CUPS insists upon querying the entire hosts file. This file is huge because of all the 127.0.0.1 redirects. KPrinter pauses for about 55 seconds waiting for CUPS to finish reading the hosts file. I otherwise have no issues with printing but this delay is a toe tapper.

Browsing is disabled in cups.conf.

Is there a way to stop CUPS from reading this large hosts file? This is a locally connected parallel port printer on a stand-alone box. There is no network.

FWIW, I realize there are other solutions to reduce the size of my hosts file. One day I'll look into those ideas. Right now I'd like to know how to get CUPS to stop reading the hosts file.

Thoughts and ideas are appreciated!

TIA
 
Old 10-16-2005, 02:52 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Check if you've HostNameLookups On in your cupsd.conf file.
Another one to try would be adding Deny from All and Allow from 127.0.0.1.
 
Old 10-17-2005, 09:25 PM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
Check if you've HostNameLookups On in your cupsd.conf file.
Another one to try would be adding Deny from All and Allow from 127.0.0.1.
Oh well, those options are already set as you recommended. Sometime in the next few weeks I hope to install Squid. Then I'll configure an ACL deny list and transfer the bulk of my hosts file to that ACL. Squid then can deny access to those web sites the same as I currently do with the hosts file. I've already satisfactorily tested the shorter hosts file with KPrinter and CUPS and the KPrinter dialog box once again is responsive.

Regardless, I'd like to know why CUPS browses the hosts file when configured specifically not to do that.
 
  


Reply



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
CUPS and Xine conflict SlowMindThinkin SUSE / openSUSE 5 07-10-2005 09:44 PM
Conflict between CUPS and Xine SlowMindThinkin Linux - Software 2 07-06-2005 09:21 AM
CUPS and LPRng on the same sytem: conflict. JZL240I-U Linux - Software 2 05-17-2005 07:42 AM
OOo, DL Envelopes, Kprinter, (CUPS?) mbeattie74 Linux - Software 2 03-03-2005 06:43 PM
oops! BSD and CUPS conflict esteeven Linux - Software 1 11-01-2002 04:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:08 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
Open Source Consulting | Domain Registration