From owner-freebsd-questions@FreeBSD.ORG Mon Apr 20 19:55:56 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 B14101065670 for ; Mon, 20 Apr 2009 19:55:56 +0000 (UTC) (envelope-from prvs=354945319=pschmehl_lists@tx.rr.com) Received: from ip-relay-002.utdallas.edu (ip-relay-002.utdallas.edu [129.110.20.112]) by mx1.freebsd.org (Postfix) with ESMTP id 7CC768FC0C for ; Mon, 20 Apr 2009 19:55:56 +0000 (UTC) (envelope-from prvs=354945319=pschmehl_lists@tx.rr.com) X-Group: RELAYLIST X-IronPort-AV: E=Sophos;i="4.40,219,1238994000"; d="scan'208";a="9703017" Received: from smtp3.utdallas.edu ([129.110.20.110]) by ip-relay-002.utdallas.edu with ESMTP; 20 Apr 2009 14:55:55 -0500 Received: from utd65257.utdallas.edu (utd65257.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTPSA id 7A95A8E92; Mon, 20 Apr 2009 14:55:55 -0500 (CDT) Date: Mon, 20 Apr 2009 19:55:55 +0000 From: Paul Schmehl To: weif@weif.net, Paul Schmehl Message-ID: <62CFD48735EA944E20668C98@utd65257.utdallas.edu> In-Reply-To: <20090420192048.40290A3D2E@maxine.cjones.org> References: <20090420145839.5D396A3DC7@maxine.cjones.org> <86fxg3gwny.fsf@nowhere.org> <20090420173603.8CF7EA3DC7@maxine.cjones.org> <9B2BDFC5F4D9083916FFE187@utd65257.utdallas.edu> <20090420192048.40290A3D2E@maxine.cjones.org> X-Mailer: Mulberry/4.0.6 (Linux/x86) X-Munged-Reply-To: Figure it out MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 Reply-To: Paul Schmehl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2009 19:55:57 -0000 --On Monday, April 20, 2009 14:20:48 -0500 Keith Seyffarth wrote: > > > >> This makes no sense at all. DLLs are a Windows version of a library. >> FreeBSD > > That's what I thought. Here's the line in question: > D [20/Apr/2009:13:07:46 -0600] [CGI] > /usr/local/share/cups/drivers/pscript5.dll: No such file or directory > Googling that shows it to be a file shared with Windows boxes when you're running samba. I don't know if you set up samba or not, but I would ignore this error for now. It's likely unrelated to the printing problem that you're having. > >> Do you have the startup script: >> /usr/local/etc/rc.d/cupsd ? > > yes > >> If so, what is the output of /usr/local/etc/rc.d/cupsd status? > > currently it's: > cupsd is running as pid 721. > > but I did start cups manually since my last reboot. > Cupsd was started automatically on reboot by the script. So that part is working fine. > > $ ls /usr/local/etc/cups/ > classes.conf cupsd.conf.default printers.conf > classes.conf.O interfaces printers.conf.O > command.types mime.convs pstoraster.convs > cups-pdf.conf mime.convs.N snmp.conf > cups-pdf.conf.sample mime.types snmp.conf.N > cupsd.conf mime.types.N ssl > cupsd.conf.O ppd > > >> What's the output of this command? >> # grep -v "#" /usr/local/etc/cups/cupsd.conf > > LogLevel debug > SystemGroup wheel > Listen localhost:631 > Listen /var/run/cups.sock > Browsing On > BrowseOrder allow,deny > BrowseAllow all > DefaultAuthType Basic > > Order allow,deny > > > Encryption Required > Order allow,deny > > > AuthType Default > Require user @SYSTEM > Order allow,deny > > > Purge-Jobs Set-Job-Attributes Create-Job-Subscription > Renew-Subscription Cancel-Subscription Get-Notifications > Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job > CUPS-Move-Job> > Require user @OWNER @SYSTEM > Order deny,allow > > CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default> > AuthType Default > Require user @SYSTEM > Order deny,allow > > Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs > Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer > Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs > CUPS-Reject-Jobs> > AuthType Default > Require user @SYSTEM > Order deny,allow > > > Require user @OWNER @SYSTEM > Order deny,allow > > > Order deny,allow > > > All of that looks perfectly normal. >> What's the output of this command? >> # cat /usr/local/etc/cups/printer.conf > > $ cat /usr/local/etc/cups/printers.conf ># Printer configuration file for CUPS v1.3.9 ># Written by cupsd on 2009-04-20 12:51 > > Info HP Officejet 4100 > Location wherever > DeviceURI usb:/dev/ulpt0 > State Idle > StateTime 1240253002 > Accepting Yes > Shared Yes > JobSheets none none > QuotaPeriod 0 > PageLimit 0 > KLimit 0 > OpPolicy default > ErrorPolicy stop-printer > > > Info Creates PDF files in /var/spool/cups-pdf/ > Location Internal > DeviceURI cups-pdf:/ > State Idle > StateTime 1231089826 > Accepting Yes > Shared Yes > JobSheets none none > QuotaPeriod 0 > PageLimit 0 > KLimit 0 > OpPolicy default > ErrorPolicy stop-printer > > >> Have you read the CUPS documentation? >> http://www.cups.org/documentation.php/overview.html > > Most of that, plus the information in the FreeBSD handbook and FAQ, > and several sites instructions on setting up CUPS, and several pages > specifically on getting an OfficeJet 4110 working on Unix in general > or FreeBSD in particular, with or without CUPS, and a bunch of the > stuff in the online documentation in CUPS (from the Documentation/Help > tab; which seems to be the same as the documentation from CUPS.org). > > It works well for creating .pdf files, but, from what I've seen so far > (with only one piece of hardware to try to work with), not very well > for getting a hardcopy directly. It appears the problem is the printer. Try changing the perms to 0777 for testing purposes. If you're able to print, the problem is permissions. You'll have to figure out what permissions you need to get it working. One person mentioned that you should be using the ugen device instead of /dev/ultp0. This thread might be relevant - http://foo2zjs.rkkda.com/forum/read.php?9,546,547 You might have to abandon using cupsd for this printer. If so, this might be helpful: http://www.onlamp.com/pub/a/bsd/2004/07/08/FreeBSD_Basics.html?page=last -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* Check the headers before clicking on Reply.