[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Remote Printer Refuses to print



On Mon, Mar 09, 1998 at 05:33:18PM +0200, Daniel Mashao wrote:
> I have set up a printer on a Debian Linux box and I have a tough time
> getting it to accept jobs from other machines. lpr seems to work fine but
> lpq shows that the job did not go through because  I have no line printer
> access.
> 
> This is the etc/printcap on machine 1
> 
> raw2|com5p:\
>         :lp=:\
>         :rm=machine.away:\
>         :rp=lp3:\
>         :sd=/var/spool/lpd/dpl:\
>         :lf=/var/spool/lpd/dpl/log:\
>         :af=/var/spool/lpd/dpl/acct:\
>         :mx#0:\
>         :sh:

Make shure that printing works locally on machine 1.
 
> Now on machine machine.away I have added (in /etc/hosts.equiv) my machine
> that I am trying to
> print from
> 
> +machine.where.iam myname

According to my expirience this has _no_ effect on remote printing.
 
> I cannot see the format of /etc/hosts.lpd in any manual or documentation.
> I assume its just the machine address.

Yes. That's true. Sometimes ago I had the same problems.
There have to be fully qualified domain names in /etc/hosts.lpd (as e.g. 
in /etc/hosts). Something like this:

# /etc/hosts.lpd: list of hosts that are allowed to use the printing
#                 services of this machine.  See lpd(8).
machinex.where.iam
machiney.where.iam

> Anyway anyone printing remotely? What am I missing?
> 
> lpq says:
> com5: /usr/sbin/lpd: raw: Your host does not have line printer access

This is the typical response if you don't have a valid /etc/hosts.lpd
It will start printing immediately when you have changed it as shown 
above. At least it did it for me ;-)

> Please help,
> 
> /-------------------------------------------------------------------/
> Daniel J. Mashao	      	
> Electrical Engineering                daniel@comgate.ee.uct.ac.za
> University of Cape Town	       	    http://www.ee.uct.ac.za/~daniel 
> Rondebosch, 7700, S. Africa    (w) 27+21+650 2816   (h) 27+21+705 1233
> /-------------------------------------------------------------------/

Mfg  K.-W. Schulte

--
                             O##O            O##O     O##O           O##O
==The famous "Schwebebahn"====AA==suspension==AA=======AA===railway===AA====
Dr. Karl-Wilhelm Schulte      AA              AA       AA             AA
Bergische Univ.-GH/HRZ     ,__AA______________AA_______AA_____________AA___.
Gaussstr. 20               | || ||           || |X| |X| ||           || || |  
D-42097 Wuppertal          | || ||           || |X| |X| ||           || || |
Tel 0202/4392807,Fax -2910 |_|| ||___________|| |X|_|X| ||___________|| ||_|
schulte@uni-wuppertal.de   |  | |             | |X   X| |             | |  |
                           `==+=+=============+=+X===X+=+=============+=+=='






--
E-mail the word "unsubscribe" to debian-user-request@lists.debian.org
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble?  E-mail to listmaster@debian.org .


Reply to: