From owner-freebsd-questions@FreeBSD.ORG Mon Mar 31 17:29:55 2003 Return-Path: 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 0A41437B404 for ; Mon, 31 Mar 2003 17:29:55 -0800 (PST) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id 274B243F93 for ; Mon, 31 Mar 2003 17:29:53 -0800 (PST) (envelope-from mwm-dated-1049592592.da47d0@mired.org) Received: (qmail 46408 invoked from network); 1 Apr 2003 01:29:52 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 1 Apr 2003 01:29:52 -0000 Received: by guru.mired.org (tmda-inject, from uid 100); Mon, 31 Mar 2003 19:29:52 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16008.60303.465019.325072@guru.mired.org> Date: Mon, 31 Mar 2003 19:29:51 -0600 To: Konrad Scorciapino In-Reply-To: <200303311816.24823.fallenbr@uol.com.br> References: <200303311816.24823.fallenbr@uol.com.br> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.73 (Jet Pilot) cc: freebsd-questions@freebsd.org Subject: Re: USB Printer X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 01:29:55 -0000 In <200303311816.24823.fallenbr@uol.com.br>, Konrad Scorciapino typed: > > > How can I configure a USB Printer on FreeBSD? Actually I have a Deskjet > 656c > > > from HP and I've tried to send something to /dev/ulpt0, but the system > simply > > > locked up. > > if ulpt0 is showing up in dmesg, then you have the printer > > configured. What to do next depends on what you want to do with the > > printer - and whether or not the deskjet is a winprinter. > ulpt0 is showing and it detects my printer type. Here is the output: > konrad@localhost ~ > dmesg | grep ulpt0 > ulpt0: HEWLETT-PACKARD DESKJET 656C, rev 1.10/1.10, addr 2, iclass 7/1 What did you try sending to /dev/ulpt0 that caused things to lock up? > I want to be able to print all popular kinds of files. How can I proceed? You need to install a printer filter program. The most popular one is apsfilter, because it handles all the details of the setup. The downside is that it's a honking big shell script that treats all printers as if they were winprinters. I prefer magicfilter, which is a C program that interprets filter files to control things, and will handle flat ascii or even PCL reasonably. The downside of it is that you have to set up your printcap and the filter file by hand. I'll be glad to help you with that if you want to go that way. Both magicfilter and apsfilter are available as ports. > And how do I know whether my printer is a winprinter or not? The standard way is by sending it flat ascii text, and seeing if it prints that. If it prints the text you sent, it's not a winprinter. If it does nothing, or prints gibberish, it's probably a winprinter. http://www.mired.org/consulting.html Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.