From owner-freebsd-questions@FreeBSD.ORG Mon Apr 20 15:31:15 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 445BA106564A for ; Mon, 20 Apr 2009 15:31:15 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id EC6EA8FC18 for ; Mon, 20 Apr 2009 15:31:14 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id n3KFPhua096014; Mon, 20 Apr 2009 11:25:43 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id n3KFPh8C096013; Mon, 20 Apr 2009 11:25:43 -0400 (EDT) (envelope-from jerrymc) Date: Mon, 20 Apr 2009 11:25:43 -0400 From: Jerry McAllister To: Keith Seyffarth Message-ID: <20090420152543.GA95954@gizmo.acns.msu.edu> References: <20090420145839.5D396A3DC7@maxine.cjones.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090420145839.5D396A3DC7@maxine.cjones.org> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: Can you ACTUALLY print from FreeBSD? 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: Mon, 20 Apr 2009 15:31:15 -0000 On Mon, Apr 20, 2009 at 08:58:39AM -0600, Keith Seyffarth wrote: > > I'm trying to print from my FreeBSD machine. I've been through a > number of online tutorials and instructions on printing from Unix or > FreeBSD in particular, but they all seem to start with the assumption > that printing from the machine is possible. I'm trying to get to that > starting point. What kind of printing do you need to do? To send files to some either attached or network attached printer, you just need to: set up an entry in /etc/printcap for a printer named myprt, make something like: lp|myprt|HP OfficeJet 4110 N:\ :lp=:rp=myprt:rm=myprt.prt.full.hostname:\ :sh:mx#0:\ :sd=/var/spool/myprt:\ :lf=/var/log/printer.log: (Of course, change myprt.prt.full.hostname to a real address) create a spool directory for it in /var/spool (eg for a printer named myprt in printcap, create a /var/spool/myprt directory create an empty log file for it touch /var/log/printer.log then enable lpd in /etc/rc.conf - lpd_enable="YES" This sets up a 'standard' printer destination (named lp) Then you can print using lpr(1) Some utilities want to use cups and other heavy stuff, but just for regular printing - of a file or from firefox or openoffice, etc you don't need that. ////jerry > > I have installed: > > cups-base-1.3.9_3 Common UNIX Printing System > cups-pdf-2.5.0 A virtual printer for CUPS to produce PDF files > cups-pstoraster-8.15.4_2 Postscript interpreter for CUPS printing to non-PS printers > gutenprint-cups-5.1.7_3 GutenPrint Printer Driver > libgnomecups-0.2.3_1,1 Support library for gnome cups admistration > hplip-2.8.2_4 Drivers and utilities for HP Printers and All-in-One device > > The printer I'm working with is a HP Officejet 4110. > > > There seem to be several issues with printing. First, since this is a > USB printer, the pinter is always owned by root:operator with read > permissions for user, group, and world. > > Adding these lines to /etc/devfs.conf > link ulpt0 printer > own ulpt0 cups:cups > perm ulpt0 0666 > > will set the ownership to cups:cups and the permissions to read and > write for user, group, and world on startup if the printer is already > turned on and plugged in. However, if the printer is not turned on at > startup, or if it is disconnected or turned off after system startup, > ownership and permissions revert. > > Trying chown or chmod to the device at /dev/ulpt0 gives an invalid > path error, and trying to do so following the instructions in the man > page for devfs give 'operation not supported by device' errors. > > When th device is owned by root, attempting to print the test page > generates a 'permission denied' error in CUPS. When the device is > owned by cups, attempting to print the test page generates a "failed" > error in CUPS. > > When the device is owned by cups, this error is reported in the error > log in CUPS, if debug logging is enabled: > > [CGI] /usr/local/share/cups/drivers/pscript5.dll: No such file or directory > > There isn't a drivers directory in /usr/local/share/cups. I can make > one, but where do I get the pscript5.dll, and what else is it going to > rely on? > > CUPS et al were installed using portinstall, and CUPS is working well > to produce .pdf files. I tried portupgrade last night on all the (I > think) relevant ports, but the system thinks they are all up to date. > > So, questions: > > 1. how can I get permissions on the device to stick, so that I do not > have to reboot the machine every time we want to print or have to > power cycle the printer? > 2. Am I correct that the missing .dll (that seems awfully Windows to > me) is the problem in getting a filter to print? If so, what do I > need to do to install it? > > > And, actually, a third printing-related issue: How do I get cupsd to > start on startup? I have these two lines in /etc/rc.conf:\ > > cupsd_enable="YES" # enable cups printing management > devfs_system_ruleset="system" # something else they say cups needs > > but CUPS has to be manually started by root after each reboot. what > else needs to be done to get cupsd to start at startup? > > Keith > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"