From owner-freebsd-doc@FreeBSD.ORG Wed Oct 30 23:18:57 2013 Return-Path: Delivered-To: freebsd-doc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id F34E243B for ; Wed, 30 Oct 2013 23:18:56 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B95A52BFC for ; Wed, 30 Oct 2013 23:18:56 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id r9UNIt17084365 for ; Wed, 30 Oct 2013 17:18:55 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.7/8.14.7/Submit) with ESMTP id r9UNItWt084362 for ; Wed, 30 Oct 2013 17:18:55 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Wed, 30 Oct 2013 17:18:55 -0600 (MDT) From: Warren Block To: freebsd-doc@FreeBSD.org Subject: Re: TODO item: Add info on USB printers In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="3512871622-631971993-1383175135=:84253" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Wed, 30 Oct 2013 17:18:55 -0600 (MDT) X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2013 23:18:57 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --3512871622-631971993-1383175135=:84253 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT Forgot to send this to the list also... On Wed, 30 Oct 2013, Warren Block wrote: > On Wed, 30 Oct 2013, Juris Kaminskis wrote: >> >> Some first trial to create better coverage for USB printing support in >> FreeBSD documentation. There are some more chapters to revise but this is >> definetly one: >> >> 10.3.1.4.1. Checking a Parallel and USB Printer >> >> This section tells you how to check if FreeBSD can communicate with a >> printer connected to a parallel or USB port. >> >> To test a printer on a parallel port use /dev/lptN on a USB port use >> /dev/ulptN:: >> >> Become root with su(1). >> >> Send data to the printer. >> >> If the printer can print plain text, then use lptest(1). Type: >> >> # lptest > /dev/lptN >> >> Where N is the number of the parallel port, starting from zero. For USB >> port /dev/ulptN, N number identifies how many USB printers are connected, >> if zero then one printer connected. >> >> If the printer understands PostScript® or other printer language, then send >> a small program to the printer. Type: >> >> # cat > /dev/lptN >> >> Then, line by line, type the program carefully as you cannot edit a line >> once you have pressed RETURN or ENTER. When you have finished entering the >> program, press CONTROL+D, or whatever your end of file key is. >> >> Alternatively, you can put the program in a file and type: >> >> # cat file > /dev/lptN >> >> Where file is the name of the file containing the program you want to send >> to the printer. >> >> 10.3.1.4.1.1. Testing printers with special wire protocols >> >> Many printers use different wire protocols instead of PostScript®. To test >> communication create a file first in a format printer understands. Many >> variants exist use Ghostscript and/or foo2zjs to convert PostScript® files. >> >> Example: >> >> HP Laserjet M1120 uses XQX protocol http://foo2xqx.rkkda.com/ >> >> Install foo2zjs port (includes foo2xqx) >> >> Create a test PostScript® file (any decent program will print a PostScript® >> file). Foo2xqx converts pbmraw file into xqx format, thus first >> convert PostScript® >> file to pbmraw format: >> >> gs -sDEVICE=pbmraw -sOutputFile=YourFileName.pbm YourFile >> >> And convert outputfile to xqx wire: >> >> foo2xqx YourFileName.pbm > YourFileName.xqx >> >> Last check if something prints: >> >> cat YourFileName.xqx > /dev/ulptN >> >> You should see something print. Do not worry if the text does not look >> right; we will fix such things later. >> >> >> Is there someone who can help me to review this and put into documentation? >> After that I will take a look what else requires update to cover USB >> printing. > > Thank you for working on this. The entire printing chapter really needs a > rewrite, and I've been meaning to write an outline for what a new printing > chapter should cover. In the meantime, please look at > http://www.wonkity.com/~wblock/docs/html/lpdprinting.html and see if it is > adequate in the meantime. --3512871622-631971993-1383175135=:84253--