From owner-freebsd-doc@FreeBSD.ORG Mon Apr 19 09:50:26 2004 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 01C8516A4CE for ; Mon, 19 Apr 2004 09:50:26 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEA3B43D2D for ; Mon, 19 Apr 2004 09:50:25 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i3JGoPbv034930 for ; Mon, 19 Apr 2004 09:50:25 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i3JGoPWK034928; Mon, 19 Apr 2004 09:50:25 -0700 (PDT) (envelope-from gnats) Date: Mon, 19 Apr 2004 09:50:25 -0700 (PDT) Message-Id: <200404191650.i3JGoPWK034928@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: Marc Fonvieille Subject: Re: docs/65766: [printing] Fdescfs needs to be mounted on FreeBSD 5.x X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Marc Fonvieille List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2004 16:50:26 -0000 The following reply was made to PR docs/65766; it has been noted by GNATS. From: Marc Fonvieille To: Simon Barner Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: docs/65766: [printing] Fdescfs needs to be mounted on FreeBSD 5.x Date: Mon, 19 Apr 2004 18:46:20 +0200 On Mon, Apr 19, 2004 at 05:23:41PM +0200, Simon Barner wrote: > > >Fix: > > The following line in /etc/fstab > > fdescfs /dev/fd fdescfs rw 0 0 > > and a mount /dev/fd made my printer work. > [...] Could you try this script: #!/bin/sh printf "\033&k2G" || exit 2 IFS="" read -r first_line first_two_chars=`expr "$first_line" : '\(..\)'` case "${first_two_chars}" in \%\!*) /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=djet500 \ -sOutputFile=- - && exit 0 ;; *) echo "$first_line" && cat && printf "\033&l0H" && exit 0 ;; esac exit 2 You will have to comment the 2nd line if you use an Epson printer (it's your case) and don't forget to use the right device for -sDEVICE. > Furthermore I'd like to add that I had to remove the following line from > the ifhp example filter: > > printf "\033&k2G" || exit 2 > (I am using an Epson Stylus Color 740 via the stcolor driver, GNU > Ghostscript 7.07). It's normal this line is for HP printers Marc