From owner-freebsd-questions@FreeBSD.ORG Thu May 13 22:07:30 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1151216A4CE for ; Thu, 13 May 2004 22:07:30 -0700 (PDT) Received: from auk1.snu.ac.kr (auk1.snu.ac.kr [147.46.100.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74A1743D2D for ; Thu, 13 May 2004 22:07:29 -0700 (PDT) (envelope-from stopspam@users.sourceforge.net) Received: from [147.46.44.181] (stopspam@users.sourceforge.net) by auk1.snu.ac.kr (Terrace Internet Messaging Server) with ESMTP id 2004051413:52:43:685794.15039.2923051952 for ; Fri, 14 May 2004 13:52:43 +0900 (KST) Message-ID: <40A45410.3080102@users.sourceforge.net> Date: Fri, 14 May 2004 14:07:28 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040507 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <200405121019.11429.fbsd-questions@trini0.org> <20040514120030.53b076ef.y2kbug@ms25.hinet.net> In-Reply-To: <20040514120030.53b076ef.y2kbug@ms25.hinet.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-TERRACE-SPAMMARK: NO (SR:17.76) (by Terrace) Subject: Re: Printing to a network printer? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2004 05:07:30 -0000 Robert Storey wrote: > > STEP 2: Creating a Log Directory > Create a directory for the CUPS log files: > > root@sonic:# mkdir /var/log/cups Are you sure this is needed? I don't think I have ever done this, though my CUPS installation is happy and running fine. > STEP 3: FreeBSD-specific Issue > On FreeBSD, CUPS stores its executable files in /usr/local/bin/ whereas the > traditional lp executables are in /usr/bin/. Because /usr/bin/ is in the command > path before /usr/local/bin/, your CUPS files will not be able to execute. For > example: > > root@sonic:# which lpr > /usr/bin/lpr > > This problem is handily solved by making file /usr/bin/lp* non-executable, like > this: > > root@sonic:~> chmod -x /usr/bin/lp* > > Now, let's try the previous command again: > > root@sonic:# which lpr > /usr/local/bin/lpr > > Success! This is what we want. But for those who also rebuild world every now and then, they better add this to /etc/make.conf: CUPS_OVERWRITE_BASE=yes NO_LPR=yes before building world and installing CUPS. > STEP 4: Starting the CUPS Daemon > You need to set up a script that starts the CUPS daemon on bootup. There is a > sample startup script which you can just copy and make executable, like this: > > cd /usr/local/etc/rc.d> > cp cups.sh.sample cups.sh > chmod 755 cups.sh > > You could reboot now to start the daemon, but since you're in this directory > anyway, you could start it manually: > > ./cups.sh start Urgh, a 'reboot' is the very last resort to get this up and running. ./cups.sh {reload|restart|start|status|stop} should be advertised here! Good work to start a CUPS tutorial for newcomers to the OS. Cheers, Rob.