Re: rlpr for OpenBSD?

2008-01-29 Thread Christian Weisgerber
Pau Amaro-Seoane <[EMAIL PROTECTED]> wrote:

> Does any of you have a workaround to print ps w/o resorting to cups?

1. Enable the two-line "rp" example entry in /etc/printcap and replace 
   "printhost" with the hostname of your printer.
2. Start lpd: "sudo lpd"
3. Add "lpd_flags=" to /etc/rc.conf.local, so lpd will be started on
   future reboots.

-- 
Christian "naddy" Weisgerber  [EMAIL PROTECTED]



Re: rlpr for OpenBSD?

2008-01-29 Thread Pau Amaro-Seoane
I found out the sources at http://truffula.com/rlpr/

Now, the Makefile is buggy.

I had to do this to install rlpr properly on OpenBSD. I post it here
just in case
you're interested.

make bsd-symlinks is wrong and ./bin is also wrong. The binaries go
into ./src/bin

spree(p8)| sudo make bsdlinks
cd src && make bsdlinks
installing bsd symlinks...
mv /usr/bin/lpr /usr/bin/lpr.bsd
ln -s ./bin/rlpr /usr/bin/lpr
mv /usr/bin/lpq /usr/bin/lpq.bsd
ln -s ./bin/rlpq /usr/bin/lpq
mv /usr/bin/lprm /usr/bin/lprm.bsd
ln -s ./bin/rlprm /usr/bin/lprm
spree(p8)| ls bin
spree(p8)| cd src/bin
spree(p8)| ls
rlpq  rlpr  rlprd rlprm
spree(p8)| sudo mv rlpr /usr/local/bin
spree(p8)| sudo mv * /usr/local/bin
spree(p8)| sudo mv /usr/bin/lpr.bsd /usr/bin/lpr
spree(p8)| sudo mv /usr/bin/lpq.bsd /usr/bin/lpq
spree(p8)| sudo mv /usr/bin/lprm.bsd /usr/bin/lprm


2008/1/29, Pau Amaro-Seoane <[EMAIL PROTECTED]>:
> Hi,
>
> we got a printer in our office. Now I'd like to use it. I hate
> configurating printers. I don't like cups. 631 is blocked.
>
> Usually I avoid all these problems with a
>
> cat MyVeryInterestingFile.ps | telnet IPaddressOfPrinterHere 9100
>
> since most of the printers have that door open.
>
> It *works*
>
> Now, admin here is taking security a bit too seriously and it's not
> possible to telnet the printer over 9100.
>
> I was thinking of using rlpr, like
>
> rlpr -Plp -HIPaddressOfPrinterHere MyVeryInterestingFile.ps
>
> But I don't find rlpr in ports (4.2)
>
> Does any of you have a workaround to print ps w/o resorting to cups?
>
> Cheers,
>
> Pau



Re: rlpr for OpenBSD?

2008-01-29 Thread Douglas A. Tutty
On Tue, Jan 29, 2008 at 04:44:12PM +0100, Pau Amaro-Seoane wrote:
 
> Now, admin here is taking security a bit too seriously and it's not
> possible to telnet the printer over 9100.
> 
> I was thinking of using rlpr, like
> 
> rlpr -Plp -HIPaddressOfPrinterHere MyVeryInterestingFile.ps
> 
> But I don't find rlpr in ports (4.2)
> 
> Does any of you have a workaround to print ps w/o resorting to cups?

What's wrong with base lpd with a remote printer entry in printcap?
Unless I need wierd access controll, I only use LPD + apsfilter.  Then
again, I never had a printer hanging on the network, I use an old 486 as
a print server running its own LPD and apsfilter.

If you need to spit printer-specific data to the printer from lpr and
need to convert first, you could chain printcap entries: print to one
queue, it's filter does the conversion and spits it to another queue
that sends it out to the remote printer.

Or just install LPRng.

I've never used cups.

Doug.



rlpr for OpenBSD?

2008-01-29 Thread Pau Amaro-Seoane
Hi,

we got a printer in our office. Now I'd like to use it. I hate
configurating printers. I don't like cups. 631 is blocked.

Usually I avoid all these problems with a

cat MyVeryInterestingFile.ps | telnet IPaddressOfPrinterHere 9100

since most of the printers have that door open.

It *works*

Now, admin here is taking security a bit too seriously and it's not
possible to telnet the printer over 9100.

I was thinking of using rlpr, like

rlpr -Plp -HIPaddressOfPrinterHere MyVeryInterestingFile.ps

But I don't find rlpr in ports (4.2)

Does any of you have a workaround to print ps w/o resorting to cups?

Cheers,

Pau