Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Apr 2004 09:50:25 -0700 (PDT)
From:      Marc Fonvieille <blackend@FreeBSD.org>
To:        freebsd-doc@FreeBSD.org
Subject:   Re: docs/65766: [printing] Fdescfs needs to be mounted on FreeBSD 5.x
Message-ID:  <200404191650.i3JGoPWK034928@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/65766; it has been noted by GNATS.

From: Marc Fonvieille <blackend@FreeBSD.org>
To: Simon Barner <barner@in.tum.de>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404191650.i3JGoPWK034928>