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

Simon Barner barner at in.tum.de
Mon Apr 19 15:30:20 UTC 2004


>Number:         65766
>Category:       docs
>Synopsis:       [printing] Fdescfs needs to be mounted on FreeBSD 5.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 19 08:30:19 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Simon Barner
>Release:        FreeBSD 5.2.1-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD zi025.glhnet.mhn.de 5.2.1-RELEASE-p5 FreeBSD 5.2.1-RELEASE-p5 #0: Sat Apr 17 12:06:11 CEST 2004 toor at zi025.glhnet.mhn.de:/usr/src/sys/i386/compile/KISTE i386

>Description:

The Handbook, Chapter 11, does not mention that you have to mount
fdescfs in order to use the example filter script (otherwise printing
does not work).

handbook/printing-advanced.html
 -> 11.4.1.3 Simulating PostScript on Non PostScript Printers

>How-To-Repeat:

Print w/o having that file system mounted. Enable logging in
/etc/printcap

:lf=/var/log/myprinter.log:

You will see the following error message:

Error: /invalidfileaccess in --.outputpage--
Operand stack:
   1   true
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   1   3   
%oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--   --nostringva
l--   --nostringval--   2   %stopped_push   --nostringval--   0   4   %oparray_p
op   --nostringval--   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1059/1123(ro)(G)--   --dict:0/20(G)--   --dict:75/200(L)--   --dict:10
6/300(L)--
Current allocation mode is local
Last OS error: 45
GNU Ghostscript 7.07: Unrecoverable error, exit code 1

>Fix:

The following line in /etc/fstab

fdescfs /dev/fd fdescfs rw 0 0

and a mount /dev/fd made my printer work.

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).
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list