Re: LPRng and remote printers

2002-05-04 Thread Alvin Oga

hi ya keith

all lines should start with : and end with :\
except first and last lines

for aragon
   lp:HP Deskjet:\
   :sd=/var/spool/lpd/lp:\
   :sh:\
   :ml=0:\
   :mx=0:\
   :af=/var/spool/lpd/lp/acct:\  
   :lf=/var/spool/lpd/lp/log:\
   :cd=/var/spool/lpd/lp:\
   :lp=/dev/lp0:\
   :if=/usr/share/lprngtool/master-filter:

   aragon# /etc/init.d/lpd  stop - start
   aragon#  lpr /etc/printcap
   aragon#  lpc status
- should list the remote printer


for machines wanting access to that remote printer...

   aragon:Remote DeskJet:\
   :sd=/var/spool/lpd/aragon:\
   :rm:aragon:

   foo# /etc/init.d/lpd  stop - start
   foo#  lpr -Paragon /etc/printcap
   foo#  lpc status
- should list the remote printer

- make sure your firewall does not block lpd connections

c ya
alvin

On Sat, 4 May 2002, Keith O'Connell wrote:

 Hi,
 
 I have 3 machines here all running Woody and a HP Deskjet attached to one of 
 them. I obviously want all of them to be able to print to the printer. I have 
 spent way to much time trying to get it to work and now am just making the 
 same mistakes over and over. I cannot see the wood for the trees, and would 
 appreciate some guidance.
 
 First off I have the printcap for the machine to which the printer is 
 attached aragorn. It works perfectly. Local printing is fine. The printcap 
 was built by lprngtool;
 
   lp
   :sd=/var/spool/lpd/lp
   :sh
   :ml=0
   :mx=0
   :af=/var/spool/lpd/lp/acct
   :lf=/var/spool/lpd/lp/log
   :cd=/var/spool/lpd/lp
   :lp=/dev/lp0
   :if=/usr/share/lprngtool/master-filter
   :
 
 The print cap I am trying to use for each of the other machines is:
 
   rlp
   :lp=:\
   :rm=aragorn:\
   :rp=lp:\
   :sd=/var/spool/lpd/remote:\
   :mx#0:\
   :sh:
 
 Something is fundamentally wrong, and it is me, but I could appreciate a 
 point in the right direction. Thanks
 
 Keith
 -- 
 
   Keith O'Connell.
   Maidstone, Kent. (UK)
   [EMAIL PROTECTED]
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: LPRng and remote printers

2002-05-04 Thread Hans Gubitz
Have a look at 
/etc/lprng/lpd.perms


Du you have a line in it like:
REJECT NOT SERVER

Hans

On Sat, May 04, 2002 at 11:38:24AM +0100, Keith O'Connell wrote:
 Hi,
 
 I have 3 machines here all running Woody and a HP Deskjet attached to one of 
 them. I obviously want all of them to be able to print to the printer. I have 
 spent way to much time trying to get it to work and now am just making the 
 same mistakes over and over. I cannot see the wood for the trees, and would 
 appreciate some guidance.
 
 First off I have the printcap for the machine to which the printer is 
 attached aragorn. It works perfectly. Local printing is fine. The printcap 
 was built by lprngtool;
 
   lp
   :sd=/var/spool/lpd/lp
   :sh
   :ml=0
   :mx=0
   :af=/var/spool/lpd/lp/acct
   :lf=/var/spool/lpd/lp/log
   :cd=/var/spool/lpd/lp
   :lp=/dev/lp0
   :if=/usr/share/lprngtool/master-filter
   :
 
 The print cap I am trying to use for each of the other machines is:
 
   rlp
   :lp=:\
   :rm=aragorn:\
   :rp=lp:\
   :sd=/var/spool/lpd/remote:\
   :mx#0:\
   :sh:
 
 Something is fundamentally wrong, and it is me, but I could appreciate a 
 point in the right direction. Thanks
 
 Keith
 -- 
 
   Keith O'Connell.
   Maidstone, Kent. (UK)
   [EMAIL PROTECTED]
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]

-- 
Hans Gubitz [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: LPRng and remote printers

2002-05-04 Thread Keith O'Connell
On Sat, 4 May 2002 14:05:34 +0200
Hans Gubitz [EMAIL PROTECTED] wrote:

Hans,

 Have a look at 
 /etc/lprng/lpd.perms
 
 Du you have a line in it like:
 REJECT NOT SERVER

Yes I do!
Is this good or bad?
Are we making progress here?

Keith
-- 

  Keith O'Connell.
  Maidstone, Kent. (UK)
  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: LPRng and remote printers

2002-05-04 Thread Noah Meyerhans
On Sat, May 04, 2002 at 01:49:51PM +0100, Keith O'Connell wrote:
  Have a look at 
  /etc/lprng/lpd.perms
  
  Du you have a line in it like:
  REJECT NOT SERVER
 
 Yes I do!
 Is this good or bad?
 Are we making progress here?

Well, it's a good default, but it prevents you from doing what you're
trying to do!  It basically restricts all printing to the localhost.
You probably should add something like this:

REJECT NOT REMOTEIP=192.168.0.0/255.255.255.0

Where 192.168.0.0 is replaced with the real address range that you want
to be able to print from, and the netmask is appropriate for it.

noah

-- 
 ___
| Web: http://web.morgul.net/~frodo/
| PGP Public Key: http://web.morgul.net/~frodo/mail.html 


pgpsCemorpY7e.pgp
Description: PGP signature