docs/65766: [printing] Fdescfs needs to be mounted on FreeBSD 5.x

Marc Fonvieille blackend at FreeBSD.org
Mon Apr 19 16:50:26 UTC 2004


The following reply was made to PR docs/65766; it has been noted by GNATS.

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



More information about the freebsd-doc mailing list