LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-26-2004, 06:14 PM   #1
nazarioz
LQ Newbie
 
Registered: Sep 2004
Posts: 25

Rep: Reputation: 15
CUPS: Cannot print to remote printer


Hi,

I am using RedHat 9 and I have 3 computers depending on the same printer (it's a HP LaserJet 4). I am using CUPS and can print everything perfectly in the computer which is functioning as the printer server (to which the printer is directly attached). So printing to a local printer is ok. What I am having troubles with is printing from the clients. I cannot print from the other 2 computers on which I try to add the printer as a remote printer. Here is what I am doing:

I add the remote printer on the client computers using:

/usr/sbin/lpadmin -p lp -E -v ipp://computername.domain.edu/printers/lp

Then I go to the server and create a file /etc/xinetd.d/printer containing the following:
service printer
{
socket_type = stream
protocol = tcp
wait = no
user = lp
server = /usr/lib/cups/daemon/cups-lpd
}

I also modify the cups.conf file on /etc/cups (on the server) by uncommenting the following lines

Listen:631
Browsing On
BrowseProtocols cups
BrowseAddress @LOCAL
BrowseShortNames Yes
BrowseAllow ALL
BrowseInterval 30
BrowsePort 631

<Location /printers/lp>
AuthType None
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From nameof2ndcomputer.domain.edu
Allow From nameof3rdcomputer.domain.edu
</Location>

Ok, this is it for the server. Now, on each of the other 2 computers (clients) I modify the cups.conf file by uncommenting the following lines

Browsing On
BrowseProtocols cups
BrowseAddress @LOCAL
BrowseShortNames Yes
BrowseAllow ALL
BrowseInterval 30
BrowseOrder allow,deny
BrowsePoll nameofprintersever.domain.edu:631

But when I type lpq on the 2 clients I get an error message from one of them saying:

Printer 'lp@localhost' - cannot open connection - No such file or directory
Make sure the remote host supports the LPD protocol

I get no error from the second client, but it sends the jobs to print to the lp printer as if it were a local printer, not a remote one. Of course, nothing prints, for there is no local printer on that machine! It was suppose to send it to the remote printer!

Ok, I am confused. I am doing the same thing in both clients yet both of them are trying to do different things.

How can I fix this mess?
I need to get those client computers to print!
Can someone help me?
 
Old 09-26-2004, 06:49 PM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

The twin to this post can be found here Please post any replies to it -- J.W.
 
  


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
CUPS: Cannot print to remote printer nazarioz Linux - General 16 01-12-2005 09:11 PM
Can't print to remote printer using CUPS pfunk Linux - General 1 10-22-2004 12:51 PM
remote client can't print using cups wilcsnyder Linux - Networking 0 10-01-2004 02:41 AM
CUPS: Cannot print to remote printer nazarioz Linux - Hardware 1 09-26-2004 07:23 PM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 08:31 AM


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