From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FBGbX-0007do-9B for garchives@archives.gentoo.org; Mon, 20 Feb 2006 19:21:51 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1KJIWFm009329; Mon, 20 Feb 2006 19:18:32 GMT Received: from leng.mclure.org (015.191-78-65.ftth.swbr.surewest.net [65.78.191.15]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k1KIxtS7005880 for ; Mon, 20 Feb 2006 18:59:55 GMT Received: from localhost (localhost [127.0.0.1]) by leng.mclure.org (Postfix) with ESMTP id 67F72D243AC for ; Mon, 20 Feb 2006 10:59:54 -0800 (PST) Received: from leng.mclure.org ([127.0.0.1]) by localhost (leng.mclure.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17694-08 for ; Mon, 20 Feb 2006 10:59:53 -0800 (PST) Received: from ulthar.internal.mclure.org (ulthar.internal.mclure.org [10.128.1.2]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by leng.mclure.org (Postfix) with ESMTP id 94631D242A3 for ; Mon, 20 Feb 2006 10:59:52 -0800 (PST) From: "Manuel A. McLure" Organization: mclure.org To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] got lprng? Date: Mon, 20 Feb 2006 10:59:03 -0800 User-Agent: KMail/1.8.3 References: <20060220060902.73054.qmail@web31703.mail.mud.yahoo.com> In-Reply-To: <20060220060902.73054.qmail@web31703.mail.mud.yahoo.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602201059.03727.manuel@mclure.org> X-Virus-Scanned: amavisd-new at mclure.org X-Archives-Salt: f79e6817-5926-4db9-8693-1ee9542b6d65 X-Archives-Hash: dc79ceee038e2f1176c5948543d668f1 On Sunday 19 February 2006 10:09 pm, maxim wexler wrote: > This looks like an elaborate form of > > echo -e "This text should appear on the printer\f" > > /dev/lp0 > > Which works fine. Also, from apsfilter I was able to > print a test page. So the hardware seems to be OK. OK, then. Now, if I remember correctly, you require pure text printing using the printer's built-in bitmap fonts, correct? Is this an absolute requirement, or is the requirement just to be able to print text files? If the latter, then CUPS may still be an option. CUPS will convert the text file to Postscript, then pipe it through Ghostscript and print it out on the printer in graphical mode. The disadvantages of this method are a) it will probably be slower than pure text printing, b) the font used to print the text will be something like Courier instead of the printer's built-in font, and c) if your print file includes printer escape sequences (to change font size, etc.) it won't work correctly. These issues can be worked around by defining a raw CUPS queue and manually filtering the input file through unix2dos or something similar, Now, supposing that you do require pure text printing, you'll want an /etc/printcap entry like the following: lp:sd=/var/spool/lpd/%P :force_localhost :lp=/dev/lp0 :filter=/usr/lib/filters/lpf Once you've created the entry, run "checkpc" to check for any configuration errors, and "/etc/init.d/lprng start" - let's see if that does the trick. I think the "force_localhost" may resolve your hostname issues. -- Manuel A. McLure KE6TAW ...for in Ulthar, according to an ancient and significant law, no man may kill a cat. -- H.P. Lovecraft -- gentoo-user@gentoo.org mailing list