LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   remote printing using lpd (RHL) (https://www.linuxquestions.org/questions/linux-hardware-18/remote-printing-using-lpd-rhl-211740/)

akamol 07-31-2004 01:39 AM

remote printing using lpd (RHL)
 
I have one server and one client having red hat linux connected through switch. server is 172.16.4.1 and client 172.16.4.15 . I have a printer that is connected to client now from server i want to give print to client's printer .. please help me how to do it. I am using rlpr.

from server i am giving command :-

#rlpr -H172.16.4.15 -Pprinter1 filename ## printer1 is printer name on 172.16.4.15


and i got the error

rlpr:error connect to 172.16.4.15:515 connection refused.
rlpr: fatal error can not connect to lpd ..

are there some other settings required on server/client .. please help.

osvaldomarques 07-31-2004 04:35 PM

Hi Akamol,
You have 2 points of problem. The first is firewalling. As you see in the error message, the requested port is 515, which is under 1024, which is priviledged. The standard RHL is comming with a firewall configured. Into a local network you could live well without it. Disable the firewall of your client and try the command again.
If it doesn't work yet, you have to see the lpd configuration of your client, which is working as a print server to see how enable remote printing. If you need some more help, please post the version of your distribution and what printing subsystem you are using. The most common are lprng and cups.
Have a nice week end!

jlinkels 09-06-2004 09:01 PM

Akamol,

Two more possible issues:

1. To be able to use a lp queue remotely, you must create a file /etc/hosts.lpd on your box connected to the printer. This file must contain a line for each remote host which submits jobs to this box, like:
+remotehost.mydomain.com

(Perhaps you need to restart the printer on your remote box. I am not sure how to do that, I use CUPS and access the printer thru the web interface, eg. http:/localhost:631)

2. This is a tricky one, and occurs in Debian, not sure about RH. In Debian, the lpd deamon on the printer box is started with the "-s" option. This is checked with the "ps ax | grep lp" command. If "-s" option is active, lpd will NEVER accept any remote jobs! In order to remove this, you should either edit the /etc/init.d/lpd script, or the /etc/default/lpd file (in Debian) and remove the "-s" option.

Good luck
jlinkels


All times are GMT -5. The time now is 07:12 PM.