From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 24 08:38:43 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 968FF106566C; Thu, 24 Jun 2010 08:38:43 +0000 (UTC) (envelope-from gljennjohn@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id E7F1D8FC08; Thu, 24 Jun 2010 08:38:42 +0000 (UTC) Received: by fxm7 with SMTP id 7so4224021fxm.13 for ; Thu, 24 Jun 2010 01:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:reply-to:x-mailer:mime-version :content-type:content-transfer-encoding; bh=ho6qVI2+3uWqYx5NAlOR2f6c+yRbWbK6p9vpCQ5BSs8=; b=kAsArPprJi2AgSVV5y7pp+kc55oOCoXSaCmr7mabXuXuP9KJkX8tJkvY4Xc4yuhpuC T86fF6Q1oA6POfqfuyIqcweSaL/nEpnY6bhxfUFCT/Qbg6tSACFx8ChxxOm5MB2vfVBv Eh52K8pYmSk2HEdkDrVYtTXeTqRGW3Uhg6LsM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; b=PauUETJ7LYXYpAAfdeUSBFFYMvxI29n80aX0//4iWIJilWCog25oM3nGBiqsn/YwA8 XNqsRFaMPrhNqnK5jvZEzvSx9PTOegQt+6P32cEZ4qeiJzKCIDnJ58bliSGdp59TcqWO wi398KxvUtH9oA9XUb1SYtWDXxxT0mKpCZzuA= Received: by 10.87.2.15 with SMTP id e15mr14897944fgi.23.1277368721734; Thu, 24 Jun 2010 01:38:41 -0700 (PDT) Received: from ernst.jennejohn.org (p578E35A0.dip.t-dialin.net [87.142.53.160]) by mx.google.com with ESMTPS id k29sm14900412fkk.45.2010.06.24.01.38.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 24 Jun 2010 01:38:41 -0700 (PDT) Date: Thu, 24 Jun 2010 10:38:39 +0200 From: Gary Jennejohn To: Alban Hertroys Message-ID: <20100624103839.56d77563@ernst.jennejohn.org> In-Reply-To: <6E6E5D74-018C-4E65-80BD-BC9E5A71D4F8@solfertje.student.utwente.nl> References: <201006230238.06831.hselasky@c2i.net> <4C21AE18.4050400@icyb.net.ua> <201006230852.26536.hselasky@c2i.net> <4C21B170.2030903@icyb.net.ua> <4C21B383.2000602@icyb.net.ua> <20100623154531.GB31578@zod.isi.edu> <20100624011509.GI31578@zod.isi.edu> <20100624092337.6bed1f45@ernst.jennejohn.org> <6E6E5D74-018C-4E65-80BD-BC9E5A71D4F8@solfertje.student.utwente.nl> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.7; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: using cupsd instead of base lpr [was Re: [HEADS UP] Kernel modules don't work properly in FreeBSD 8.1-RC1 (solved)] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gljennjohn@googlemail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2010 08:38:43 -0000 On Thu, 24 Jun 2010 10:30:26 +0200 Alban Hertroys wrote: > On 24 Jun 2010, at 9:23, Gary Jennejohn wrote: > > > On Wed, 23 Jun 2010 18:15:09 -0700 > > Ted Faber 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. > That's a valid option, of course. My thought was that the base lp isn't being installed anyway so it's just as simple to use symbolic links. -- Gary Jennejohn