[1632] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: remote printing - solved

daemon@ATHENA.MIT.EDU (Sheldon E. Newhouse)
Tue Oct 29 12:01:28 1996

Date: Tue, 29 Oct 1996 10:49:51 -0500
From: "Sheldon E. Newhouse" <sen1@math.msu.edu>
To: redhat-list@redhat.com
In-Reply-To: <32761A1A.25C2B650@wchat.on.ca>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Thanks to all who responded. I found the following solution.

 Say box1 has the printer and one wants to print from box2. 
 Note, they don't have to be on the same subnet.  

Assume the printer on box1 is lp

Assume the /etc/hosts entries are the following on both machines

  /etc/hosts

192.42.100.1	box1.domain.name	box1
199.10.100.2	box2.domain.name	box2

1. /etc/printcap on  box2  (for remote printing on lp-rm)

lp-rm:\
        :sd=/var/spool/lpd/lp:\
        :rm=box1.domain.name:\
        :rp=lp:\
        :lp=/dev/null:\
        :sh:

Note: The following *did not* work

lp-rm:\
        :sd=/var/spool/lpd/lp:\
        :rm=box1:\
        :rp=lp:\
        :lp=/dev/null:\
        :sh:

2. /etc/hosts.lpd on  box1
 
Should contain the line 

box2.domain.name


-sen



Daniel W. Forsyth writes:
 > Sheldon E. Newhouse wrote:
 > > 
 > > I have been trying to remote print from one linux box to another.
 > > 
 > > printcap in first linux box:
 > > 
 > > lp:\
 > >         :sd=/var/spool/lpd/lp:\
 > >         :rm=elsie:\
 > >         :rp=lp:\
 > >         :lp=/dev/null:\
 > >         :sh:
 > > 
 > > printcap in second box (elsie)
 > > 
 > > lp:\
 > >         :sd=/var/spool/lpd/lp:\
 > >         :mx#0:\
 > >         :lp=/dev/lp1:\
 > >         :if=/var/spool/lpd/lp/filter:
 > > 
 > > I also listed the first machine in both /etc/hosts.lpd and
 > > /etc/hosts.equiv
 > > 
 > > When I try to print from box one to box two, things spool up on box
 > > one, but never get sent.
 > > 
 > > Here is lpq on box one:
 > > 
 > > pokie: waiting for queue to be enabled on elsie
 > > Rank   Owner      Job  Files                                 Total Size
 > > 1st    sen1       11   junk                                  68 bytes
 > > 
 > > elsie: lpd: lp: Your host does not have line printer access
 > > 
 > > So, elsie is not letting pokie (box one) get access.
 > > 
 > > Any ideas?
 > 
 > Yes, I just fixed that problem, try putting the full server name instead
 > of the ip address in the hosts.lpd.. Good luck.
 > 
 > 
 > --
 >   PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
 >   ________________________________________________________________________
 >   http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
 >   http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
 >   ------------------------------------------------------------------------
 > To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null
 > 
 > 


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post