LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-10-2004, 08:35 PM   #1
hairydan
LQ Newbie
 
Registered: Jan 2004
Posts: 20

Rep: Reputation: 0
sharing CUPS printer between Linux machines


Hi:

I'm trying to share an HP printer between several Linux computers, all running RH9. Unfortunately, I haven't been able to get the sharing to work. I'm trying to proof the sharing on two computers: A and B.

First, the printer is an HP printer locally installed to the parallel port on computer A.
Although I added the local printer queue on computer A using redhat-config-printer,
I didn't use redhat-config-printer to share the printer - I've seen reports that the software is somehow broken. So I'm trying to add the printer by hand.

On Computer A, I've added the following information to /etc/cups/cupsd.conf, and restarted cupsd.
<Location /printers/ComputerAPrinter>
Order Allow,Deny
Allow From All
Allow From 127.0.0.1
AuthType None
</Location>
Browsing On
BrowsePort 631
BrowseAllow from IP.Add.for.CompB
BrowseAddress IP.Add.for.CompB
Listen 127.0.0.1:631
Listen IP.Add.for.CompB:631

On Computer A, I've also poked a hole in the firewall and restarted iptables.
This is the line from iptables:
-A RH-Lokkit-0-50-INPUT -p udp -m udp -s IP.Add.for.CompB/24 --source-port 631 -d
IP.Add.for.CompB/24 --destination-port 631 -i eth0 -j ACCEPT

On Computer B, redhat-config-printer was used to add a networked CUPS(IPP) printer
with IP.Add.for.CompA as the server located at /printers/ComputerAPrinter

Also on Computer B, I poked a hole in the firewall and restarted iptables. This is the line from iptables:
-A RH-Lokkit-0-50-INPUT -p udp -m udp --source-port 631
--destination-port 631 -j ACCEPT

Printing on Computer A is fine - no problems.
When I try to print on Computer B, I get a message "Connecting to IP.Add.for.CompA on port 631...". After 30 seconds, the message changes to "Network host 'IP.Add.for.CompA' is busy; will retry in 30 seconds...", etc etc.

Does anybody have an idea of what I missed in this setup?

Thanks!
 
  


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
sharing CUPS printer with SAMBA shellcode Linux - General 14 07-30-2005 09:15 AM
Sharing a printer in Fedora Core 1 for use on Windows machines. nevetsrd Linux - Networking 1 02-18-2005 05:06 PM
cups sharing printer quarry_06 Linux - Networking 1 11-21-2004 05:08 PM
Samba printer sharing and CUPS subaruwrx Linux - Networking 5 08-27-2004 11:37 AM
sharing a Windows Printer with Linux machines tthai01 Linux - Networking 5 11-22-2002 02:32 PM


All times are GMT -5. The time now is 09:10 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