Remote Printer problems

Remote Printer problems

Post by William Hatch » Wed, 09 Apr 1997 04:00:00



Hi.  

At work we are trying to set up a Linux machine to act as a print server.
I have set up the Linux box with a HP Laser Jet connected to lp1.  On this
box, I can print fine with "lpr" as root or anyone else.  Here is the
entry in the printcap file:

lp:lp=/dev/lp1:sd=/usr/spool/lp1:if=/usr/bin/addlinefeed:sh

However, I cannot get it to print remote jobs.  

On the other Linux box I wish to print from, the printcap entry is:

lp_remote:lp=:rm=137.249.92.50:rp=lp:sd=/usr/spool/lp1:sh

The ip address is correct.  Lpd is running on the remote and local
machines.  When I try to print remotely, the job enters
the local queue but is never printed.  It is never sent to the remote
machine apparently.  Currently what I get when I do an lpq on the local
machine, I get:

(local machine, not the one with the printer)
# lpq
lp is ready and printing
Rank   Owner      Job  Files                                 Total Size
active root       0    (standard input)                      8 bytes
1st    will       2    (standard input)                      13 bytes

Yesterday it kept saying "waiting for 137.249.92.50 to enable queue" or
somesuch.  Needless to say, I used lpc to make sure the printer queue was
started.  It always says:

("remote" machine, i.e. the one with the printer).
lpc> status
lp:
        queuing is enabled
        printing is enabled
        no entries
        no daemon present

which is what I believe it is supposed to say.

Any help would be appreciated.

Will Hatcher


 
 
 

Remote Printer problems

Post by Ralf Steinmeye » Sat, 12 Apr 1997 04:00:00



> Hi.

> At work we are trying to set up a Linux machine to act as a print server.
> I have set up the Linux box with a HP Laser Jet connected to lp1.  On this
> box, I can print fine with "lpr" as root or anyone else.  Here is the
> entry in the printcap file:

> lp:lp=/dev/lp1:sd=/usr/spool/lp1:if=/usr/bin/addlinefeed:sh

> However, I cannot get it to print remote jobs.

> On the other Linux box I wish to print from, the printcap entry is:

> lp_remote:lp=:rm=137.249.92.50:rp=lp:sd=/usr/spool/lp1:sh

> The ip address is correct.  Lpd is running on the remote and local
> machines.  When I try to print remotely, the job enters
> the local queue but is never printed.  It is never sent to the remote
> machine apparently.  Currently what I get when I do an lpq on the local
> machine, I get:

> (local machine, not the one with the printer)
> # lpq
> lp is ready and printing
> Rank   Owner      Job  Files                                 Total Size
> active root       0    (standard input)                      8 bytes
> 1st    will       2    (standard input)                      13 bytes

> Yesterday it kept saying "waiting for 137.249.92.50 to enable queue" or
> somesuch.  Needless to say, I used lpc to make sure the printer queue was
> started.  It always says:

> ("remote" machine, i.e. the one with the printer).
> lpc> status
> lp:
>         queuing is enabled
>         printing is enabled
>         no entries
>         no daemon present

> which is what I believe it is supposed to say.

> Any help would be appreciated.

> Will Hatcher



Hm,
looks to me as if your remote system was not allowed to print on the
printer system.
This may be a problem of your /etc/hosts.lpd which shold look like:

#
# hosts.lpd     This file describes the names of the hosts which are
#               allowed to use the remote printer services of this
#               host.  This file is used by the LPD subsystem.
#

#

#
#

ip.of_system.you_want_to_print.from

# End of hosts.lpd.

Hope this helps
Ralf

 
 
 

Remote Printer problems

Post by Brian McCaule » Sat, 12 Apr 1997 04:00:00



> lp:lp=/dev/lp1:sd=/usr/spool/lp1:if=/usr/bin/addlinefeed:sh

> However, I cannot get it to print remote jobs.  

> On the other Linux box I wish to print from, the printcap entry is:

> lp_remote:lp=:rm=137.249.92.50:rp=lp:sd=/usr/spool/lp1:sh

Both your entries have the same spool directory.  I think this is bogus.

--

 .  _\\__[oo       from       | Phones: +44 121 471 3789 (home)

.  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
 # ll  l\\  ~~~~ ~   ~ ~    ~ | http://wcl-l.bham.ac.uk/~bam/

 
 
 

1. Remote printer problems using bsdlpd

I am trying to print over a network to a remote printer.  I am using
bsdlpd which came with the latest slackware distribution.  I have a
local printer working to a certain extent already.  By that I mean that
I can print text through it.  The printcap file I am using is included
below.  When I try to enable the remote printer by typing "up brlw1" in
lpc, I get the message "unknown printer brlw1"  I have created a queue
directory for it in the place specified in printcap.  I have also tried
using the same printcap without the colons at the beginning of every
line.  The machine name and printer name are correct.  I have heard that
bsdlpd requires a device called lp to operate, so I made a soft link to
/dev/null called lp.  I have of course killed and restarted bsdlpd every
time I made a change.  I am using kernel version 2.0.33 with all the
important other stuff like gcc from the newest slackware distribution.
If anyone has an idea about how I can fix this, please email me at

time.

lp|printer|DJ672:\
:lp=/dev/lp1:sd=/var/spool/lpd/DJ672LP1:sh:mx#0:if=/usr/local/bin/deskjet-filter:

brlw1:\
:lp=:\
:rm=lpd.rh.uchicago.edu:\
:rp=brlw1:\
:sd=/var/spool/lpd/brlw1:\
:lf=/var/spool/lpd/brlw1/errs:

2. Resizing space of paging space

3. Remote Printer problem

4. num lock

5. Remote printer problems

6. Minicom 1.4 Beta problem

7. lp printing to remote printer problem

8. Outportb

9. Remote printer problem

10. remote printer problem