From owner-freebsd-questions@FreeBSD.ORG Tue Feb 10 15:45:04 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 076A2106566B for ; Tue, 10 Feb 2009 15:45:04 +0000 (UTC) (envelope-from prvs=285a0d01c=a@jenisch.at) Received: from mgaterz2.oekb.co.at (mgaterz2.oekb.co.at [143.245.5.112]) by mx1.freebsd.org (Postfix) with ESMTP id 842508FC16 for ; Tue, 10 Feb 2009 15:45:03 +0000 (UTC) (envelope-from prvs=285a0d01c=a@jenisch.at) Received: from vsrv33.oekb.co.at ([143.245.2.59]) by mgaterz2.oekb.co.at with ESMTP; 10 Feb 2009 16:41:50 +0100 Received: from MAIL1.oekb.co.at ([143.245.2.187]) by vsrv33.oekb.co.at with Microsoft SMTPSVC(6.0.3790.1830); Tue, 10 Feb 2009 16:41:50 +0100 Received: from aurora.oekb.co.at ([143.245.9.16]) by MAIL1.oekb.co.at with Microsoft SMTPSVC(6.0.3790.3959); Tue, 10 Feb 2009 16:41:50 +0100 Received: from aurora.oekb.co.at (localhost [127.0.0.1]) by aurora.oekb.co.at (8.14.3/8.14.3) with ESMTP id n1AFforq016674; Tue, 10 Feb 2009 16:41:50 +0100 (CET) (envelope-from a@jenisch.at) Received: (from ej@localhost) by aurora.oekb.co.at (8.14.3/8.14.3/Submit) id n1AFfoes016673; Tue, 10 Feb 2009 16:41:50 +0100 (CET) (envelope-from a@jenisch.at) X-Authentication-Warning: aurora.oekb.co.at: ej set sender to a@jenisch.at using -f Date: Tue, 10 Feb 2009 16:41:50 +0100 From: Ewald Jenisch To: Pieter Donche Message-ID: <20090210154150.GB16526@aurora.oekb.co.at> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-OriginalArrivalTime: 10 Feb 2009 15:41:50.0616 (UTC) FILETIME=[1720F180:01C98B96] Cc: freebsd-questions@freebsd.org Subject: Re: CUPS, initial PATH environment X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2009 15:45:04 -0000 On Mon, Feb 09, 2009 at 01:46:46PM +0100, Pieter Donche wrote: > If one installs CUPS as the printing system, one must use the > /usr/local/bin versions of lp, lpr, lpq and lprm instead of the > FreeBSD versions in /usr/bin, otherwise you get errors when using > the command line interface... > > I could rename /usr/bin/lp, lpr, lpq, lprm to e.g. lp.origfreebsd, etc.. > forcing the use of the /usr/local/bin versions > but this would oblige me to do that again after every FreeSBD upgrade. > > Or I could put /usr/local/bin before /usr/bin in the path. > Two questions: > - is this a save thing to do (won't other things go wrong then?) > - if OK to do that, where can I change the path for every user, whatever > shell (csh, sh, bash, tcsh, rbash) he uses? Hi, Having installed CUPS only recently here's what helped me: http://www.csua.berkeley.edu/~ranga/notes/freebsd_cups.html http://www.freebsd.org/doc/en/articles/cups/article.html http://www.math.colostate.edu/~reinholz/freebsd/cups_setup.html Make sure cups is fired up upon boot: /etc/make.conf: WITH_CUPS=YES CUPS_OVERWRITE_BASE=yes Make sure System lpr doesn't get built/installed when you build a new system/kernel: /etc/src.conf: WITHOUT_LPR=YES Replace system lpr-things with a link to the CUPS equivalents: cd /usr/bin for i in lp* ; do mv $i $i.freebsd-original ; ln -s /usr/local/bin/$i $i ; done Hope this helps, -ewald