LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-31-2004, 01:39 AM   #1
akamol
LQ Newbie
 
Registered: Jul 2003
Location: India
Posts: 12

Rep: Reputation: 0
Angry 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.
 
Old 07-31-2004, 04:35 PM   #2
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
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!
 
Old 09-06-2004, 09:01 PM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
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
 
  


Reply



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
Printing problem - lpd freaks out tbraun Linux - General 0 02-14-2005 03:57 PM
Cups and lpd printing problem visu Linux - General 0 02-02-2004 02:31 PM
Linux LPD Printing Problems pnh73 Linux - Hardware 4 12-14-2003 03:21 PM
lpd samsung 1710 redhat9.0 redhat8.0 remote printing niverson Linux - Networking 0 07-26-2003 01:50 PM
Printing problem: with lpd? bazell Linux - General 0 04-10-2001 09:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:38 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration