Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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!
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.