From owner-freebsd-questions Tue Oct 1 5: 2: 3 2002 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 2A15437B406 for ; Tue, 1 Oct 2002 05:02:01 -0700 (PDT) Received: from mail.speakeasy.net (mail15.speakeasy.net [216.254.0.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4670643E65 for ; Tue, 1 Oct 2002 05:02:00 -0700 (PDT) (envelope-from metrol@metrol.net) Received: (qmail 20114 invoked from network); 1 Oct 2002 11:55:18 -0000 Received: from unknown (HELO metlap.priv.metrol.net) ([66.92.40.27]) (envelope-sender ) by mail15.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 1 Oct 2002 11:55:18 -0000 Content-Type: text/plain; charset="us-ascii" From: Michael Collette To: Carl-Johan Kihlbom Subject: Re: Printing with CUPS Date: Tue, 1 Oct 2002 04:55:09 -0700 User-Agent: KMail/1.4.3 Cc: FreeBSD Mailing Lists MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200210010455.09074.metrol@metrol.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Carl-Johan Kihlbom wrote: > Hi! > > I'm trying to get my FreeBSD computer to act as a print server. I'm not > having much success though. > > I'm running 4.6.2-STABLE and I've installed cups-base-1.1.14 via > /stand/sysinstall. I started cupsd manually with /usr/local/sbin/cupsd, > and I can access the web interface at http://localhost:631/. There I > added my HP Deskjet 970 CXi connected via USB successfully, and was > able to print a test page from the web interface. > > However, I seem to be missing a lot of important files. I have almost > none of the lp* binaries in /usr/sbin/. I.e. no lpstat, lpinfo, > lpadmin, etc. All I have is: When you're looking in /usr/sbin, what you're seeing are the default lpr tools that came with FreeBSD. Cups is all in /usr/local/bin. The easiest way to correct your problem is to remove execute permissions from the /usr/sbin files. > lp lpd lpr lptcontrol > lpc lpq lprm lptest > > I tried printing from the command line using: > $ echo "test" > testfile.txt > $ lp -d Dozer testfile.txt > lpr: Unable to connect to /var/run/printer: No such file or directory > lpr: Check to see if the master 'lpd' process is running. > jobs queued, but cannot start daemon. > > So I can't even print locally. Not much of a print server, is it? > > So my question is short and sweet: What's wrong? This is one of those VERY common buggies due to two different subsystems trying to do the same thing. The Cups install could change the permissions of all the appropriate files on install... BUT there's no good way to get things back if you were to go and uninstall. A pretty good article on Cups with FreeBSD can be found over on BSD Today's site... http://www.bsdtoday.com/2001/January/Features396.html Later on, -- "Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read." - Groucho Marx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message