using cupsd instead of base lpr [was Re: [HEADS UP] Kernel
modules don't work properly in FreeBSD 8.1-RC1 (solved)]
Alban Hertroys
dalroi at solfertje.student.utwente.nl
Thu Jun 24 08:30:40 UTC 2010
On 24 Jun 2010, at 9:23, Gary Jennejohn wrote:
> On Wed, 23 Jun 2010 18:15:09 -0700
> Ted Faber <faber at isi.edu> wrote:
>
>> (/usr/local/bin/ preceeds /usr/bin in my path so I can use the lpr
>> commands from cupsd, though it's evidently a bit of a dangerous idea.)
>>
> [trimmed Cc]
>
> I use cupsd and have these settings to get around using the base system
> lp stuff:
>
> in /etc/src.conf - WITHOUT_LPR=yes
>
> and these symbolic links in /usr/bin
> lrwxr-xr-x 1 root wheel 17 Mar 18 2009 /usr/bin/lp -> /usr/local/bin/lp
> lrwxr-xr-x 1 root wheel 24 Mar 18 2009 /usr/bin/lpoptions -> /usr/local/bin/lpoptions
> lrwxr-xr-x 1 root wheel 18 Mar 18 2009 /usr/bin/lpq -> /usr/local/bin/lpq
> lrwxr-xr-x 1 root wheel 18 Mar 18 2009 /usr/bin/lpr -> /usr/local/bin/lpr
> lrwxr-xr-x 1 root wheel 19 Mar 18 2009 /usr/bin/lprm -> /usr/local/bin/lprm
> lrwxr-xr-x 1 root wheel 21 Mar 18 2009 /usr/bin/lpstat -> /usr/local/bin/lpstat
>
> and /usr/bin is _before_ /usr/local/bin in my PATH.
Wouldn't it be easier to alias those commands instead of physically replacing them?
In my .tcshrc I have:
alias lp /usr/local/bin/lp
alias lpq /usr/local/bin/lpq
alias lpr /usr/local/bin/lpr
alias lprm /usr/local/bin/lprm
I only have /usr/local/bin/lpoptions on my system (7-STABLE), so I guess that's exclusive to CUPS, hence no need for me to alias it.
Alban Hertroys
--
Screwing up is an excellent way to attach something to the ceiling.
!DSPAM:909,4c2317ad286211131610927!
More information about the freebsd-current
mailing list