From owner-freebsd-questions@FreeBSD.ORG Wed Mar 5 16:02:39 2008 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 9FD541065673 for ; Wed, 5 Mar 2008 16:02:39 +0000 (UTC) (envelope-from fbsdq@peterk.org) Received: from poshta.pknet.net (poshta.pknet.net [216.241.167.213]) by mx1.freebsd.org (Postfix) with SMTP id 52A0A8FC2D for ; Wed, 5 Mar 2008 16:02:39 +0000 (UTC) (envelope-from fbsdq@peterk.org) Received: (qmail 87553 invoked by uid 98); 5 Mar 2008 16:03:17 -0000 Received: from 216.241.167.213 by poshta.pknet.net (envelope-from , uid 82) with qmail-scanner-2.01 (clamdscan: 0.91.2/5145. spamassassin: 3.2.3. Clear:RC:1(216.241.167.213):. Processed in 0.034697 secs); 05 Mar 2008 16:03:17 -0000 Received: from unknown (HELO webmail.pknet.net) (216.241.167.213) by poshta.pknet.net with SMTP; 5 Mar 2008 16:03:16 -0000 Received: from 63.65.46.186 (SquirrelMail authenticated user fbsdq@peterk.org) by webmail.pknet.net with HTTP; Wed, 5 Mar 2008 09:03:16 -0700 (MST) Message-ID: <1101.63.65.46.186.1204732996.squirrel@webmail.pknet.net> Date: Wed, 5 Mar 2008 09:03:16 -0700 (MST) From: "Peter" To: "freebsd-questions" User-Agent: SquirrelMail/1.4.11 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: Bob Falanga Subject: RE: Printing with a laserjet 1018 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: Wed, 05 Mar 2008 16:02:39 -0000 >First of all, thanks to those who have helped me so far. >I have configured the printer and everything looks OK, but when I do a test >print the test page goes into the printer queue and stays there for ever. >The printer doesn't even squeak. First I had to use the print driver for a >laserjet 1010 as I couldn't kind a driver for the 1018. Second the printer >does work under the alternate OS. >Any ideas? >Thank you, >Bob Here is my config for the HP1018: dsl:#pkg_info| egrep "cups|ghost|foo" cups-base-1.3.4_1 Common UNIX Printing System cups-pstoraster-8.15.4_1 Postscript interpreter for CUPS printing to non-PS printers foo2zjs-20070120_1 Driver for printers that use the ZjStream wire protocol foomatic-db-20070124_1 Foomatic database foomatic-filters-3.0.2_4 Foomatic wrapper scripts ghostscript-gpl-8.60 GPL Postscript interpreter dsl:$cat /root/bin/printer.sh #!/bin/sh export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin cat /usr/local/share/foo2zjs/firmware/sihp1018.dl > /dev/ugen0.1 you might need to change your 'ugen0.1' to whatever USB port your printer is plugged into. Before you can use the printer, you have to do that above 'cat' command to load firmware. make sure regular users can use the printer: [chmod 666] dsl:#ls -l /dev/ugen0.1 crw-rw-rw- 1 root operator 0, 40 Mar 4 23:32 /dev/ugen0.1 and via the cups web interface [localhost:631] just configure a new printer and choose the HP foo drivers,etc.etc. It just works. When you do the 'cat' command for firmware, the printer should make some noise and moving around. After that I'm able to print from konqueror/kprinter/firefox/etc.etc. dsl:#cat /usr/local/etc/cups/printers.conf # Printer configuration file for CUPS v1.3.4 # Written by cupsd on 2008-02-27 18:44 Info HP LaserJet 1018 Location 1018 DeviceURI usb:/dev/ugen0.1 State Idle StateTime 1204163073 Accepting Yes Shared Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 AllowUser root AllowUser peter AllowUser Sanyusha OpPolicy default ErrorPolicy stop-printer ]Peter[