LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-03-2008, 04:02 AM   #1
LonelyStar
LQ Newbie
 
Registered: Sep 2007
Posts: 10

Rep: Reputation: 0
CUPS - having network AND local printers


How,

I have a Laptop with cups and a printer installed on it. Now I have a different computer with cups and sharing a printer of the network.

To access the shared printer, I put this into the /etc/cups/client.conf of the Laptop:
Code:
# Servername
ServerName 172.20.22.74

# Encryption
Encryption IfRequested
I now can access the network printer, but the local disappeared and also the pdf printer. What do I have to do, to have both?

Thank!
Nathan
 
Old 09-05-2008, 05:49 AM   #2
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: SLED, openSUSE
Posts: 1,021

Rep: Reputation: 172Reputation: 172
Is the IP address 172.20.22.74 that of one physical printer or is the address of a CUPS server which advertises a queue for one or more network printers?

If 172.20.22.74 is just one physical printer then revert your /etc/cups/client.conf so that the server is 127.0.0.1 then you should be able to see your local printer again. Then use whatever tools your distro provides to add a new printer and say that the address of the printer is 172.20.22.74.

If however 172.20.22.74 is the address a CUPS server which advertises a queur for one or more network printers and you want access to all those pritners then it's a bit trickier. Unfortunately CUPS does not seem to have been designed with the scenario that people might want to have both a locally connected printer and printers advertised by a remote CUPS server available at the same time in mind. Or at least if it has I have never worked out how to do it nicely. The best solution I know is to use BrowsePoll. This means that you run a CUPS server locally on your machine and periodically asks other CUPS servers for a list of available printers. Look in cupsd.conf for mention of BrowsePoll and add the lines

BrowsePoll 172.20.22.74
BrowsePoll 127.0.0.1

Then find the reference to BrowseInterval and set it to something higher than the default 30 seconds. Unless you think asking the remote CUPS server for a list of printers every 30 seconds is sensible in which case leave that setting at the default. If you change the value of BrowseInterval then you will need to also change the value of BrowseTimeout to something higher than what you set BrowseInterval to.
You should then be able to see any printers set up locally and any printers available on the server at 172.20.22.74.
 
  


Reply

Tags
cups, network printing


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
CUPS and HP printers barn63 Slackware 4 07-26-2010 06:12 PM
CUPS printers disable turbo_acura Linux - Software 1 07-04-2007 10:41 PM
CUPS & Network Printers un115622 Linux - Enterprise 4 06-22-2005 04:16 AM
Suse 9.2 Sharing Printers over local network via CUPS gherikill Suse/Novell 4 01-10-2005 12:50 PM
Printers and cups Pedroski Linux - Hardware 1 10-05-2003 06:50 PM


All times are GMT -5. The time now is 01:27 PM.

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