Bug#659999: lprng: Cannot print from network client
On 15 Feb 2012, Bernhard R. Link wrote:
> * Anthony Campbell <ac@acampbell.org.uk> [120215 18:38]:
> > Following a recent reinstallation of the system after a hard disk crash
> > I can no longer print from a laptop elsewhere on the LAN. (Previouly
> > this worked perfectly.) Printing from the computer to which the printer
> > is attached does work.
>
> Just to be sure I understand correctly: the laptop is not the one
> with the new lprng installation, but that is a different computer
> and your laptop should send the job to the lprng running on the
> computer with the printer?
>
> > At first I was getting "connection refused". After reading some earlier
> > bug reports I added the following line to /etc/lprng/lpd.conf:
> >
> > lpd_listen_port=515
> >
> > I now get "No connection permissions".
> >
> > There is no firewall running on either host or client. I can ping and
> > ssh in both directions.
>
> AFAIR lprng does not allow remote access by default.
> You have to edit /etc/lprng/lpd.perms and either remove
> (or turn to a comment by prepending #) the line stating
>
> REJECT NOT SERVER
>
> You might also want to edit the following lines. The defaults
> include everyone may print and everyone claiming to be from the
> same host and having the same user name (note that neither is
> verified, it's just the values the client sends) may control
> (including delete) jobs.
>
> Bernhard R. Link
Many thanks to you and Craig for helpful replies. Yes, that was it;
commenting out that line made things work. Perhaps it might be worth
including a note about this in the Debian README?
Incidentally, in order to make lprng work at all I had to add this to
/etc/modules, otherwise there was no /dev/lp0:
parport_c
lp
It took quite a bit of googling to discover this.
Many thanks again,
Anthony
--
Anthony Campbell - ac@acampbell.org.uk
Microsoft-free zone - Using Debian GNU/Linux
http://www.acampbell.org.uk - sample my ebooks at
http://www.smashwords.com/profile/view/acampbell
Reply to: