From owner-freebsd-questions@FreeBSD.ORG Fri Jul 22 06:06:19 2005 Return-Path: X-Original-To: questions@freebsd.org 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 6E04016A41F for ; Fri, 22 Jul 2005 06:06:19 +0000 (GMT) (envelope-from service@fixer.com) Received: from nocmailsvc001.allthesites.org (host201.cisp.com [65.196.203.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DB7743D8A for ; Fri, 22 Jul 2005 06:06:05 +0000 (GMT) (envelope-from service@fixer.com) Received: from yourykcpkzegys (unverified [64.48.192.190]) by icop.cc (Rockliffe SMTPRA 6.1.17) with SMTP id for ; Fri, 22 Jul 2005 06:06:04 +0000 Message-ID: <000801c58e83$72d8adb0$bec03040@yourykcpkzegys> From: To: Date: Fri, 22 Jul 2005 00:06:05 -0600 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Printer won't work 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: Fri, 22 Jul 2005 06:06:19 -0000 uname -a FreeBSD localhost 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Wed Jul 20 = 22:10:32 UTC 2005=20 root@:/usr/src/sys/i386/compile/VIL i386 ---------------------------------------------------------------- Can't get printer to work.=20 I have a P4 compter with SCSI drives and 1 gig of memmory. It runs = Mozilla, apache2,=20 mysql and php5 perfect. When I try to print something, it doesn't work. I have a Hewlett-Packard Deskjet-500 printer. I followed the = instructions in the Handbook.=20 I tested it with the 'lptest > /dev/lpt0' function. It printed one line, = stalled for a few=20 seconds like it didn't know what to do, then it ejected the sheet and = then ran two more=20 sheets without trying to print anything. The manual says if it prints = something, it okay,=20 you can fix the errors later. I did install the 'ifhp filter' from the /usr/share/examples to = /usr/local/libexec/ifhp.=20 The 'ifhp filter' is designed for the Deskjet-500 and will also work on = most Hewlett-Packards. My printcap file is: lp|hp|local line printer:\ :sh:\ :lp=3D/dev/lpt0:sd=3D/var/spool/output/lpd:lf=3D/var/log/lpd-errs:\ :if=3D/usr/local/libexec/ifhp: My print spool is: /var/spool/output/lpd I chowned lpd for deamon,deamon and I also chmoded 770 like the book = says. I used 'lpr file' to try and print something and all I received was: lp: no daemon to abort printing enabled lpc: Unable to connect to /var/run/printer: Socket operation on = non-socket lpc: Check to see if the master 'lpd' process is running. couldn't restart daemon This tells you theres no socket and the daemon isn't running. I also = checked to see=20 if /var/run/printer existed. I cd'd to /var/run and that was it. I ran = ls and printer=20 did not come up. I also ran # lptcontrol -i -d /dev/lpt0 for interrupt-driven mode and=20 # lptcontrol -p -d /dev/lpt0 for polled-mode. It failed both times. I know how to use ps -aux the see if apache and mysql are running, but I = don't how to find out if the 'printing daemon" is running.=20 I think we need to somehow find a way to get the 'printing daemon' to = run. This is about a far as I can go, hopefully, someone can tell me the = steps to get the daemon going and how to tell if its going. I also tried this on the same computer with FreeBSD 5.4 without any = applications installed. I also=20 tried it on Dell-P3 with IDE drives. Both of these produced the same = results. Thanks in advance, bruce