~ubuntu-branches/ubuntu/jaunty/lpr/jaunty

« back to all changes in this revision

Viewing changes to SMM.doc/4.t

  • Committer: Bazaar Package Importer
  • Author(s): Adam Majer
  • Date: 2004-07-27 16:45:19 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040727164519-fjgr6gmzlkuh53zz
Tags: 1:2003.09.23-7
Remove bash specific syntax in postinst. To make sure permissions are fixed
for the new lpr, rerun permission fixups on /var/spool/lpd/*, again.
(closes: #261590)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.\" $OpenBSD: 4.t,v 1.2 1997/01/17 15:54:17 millert Exp $
 
1
.\" $OpenBSD: 4.t,v 1.5 2003/06/02 23:36:53 millert Exp $
2
2
.\"
3
3
.\" Copyright (c) 1983, 1993
4
4
.\"     The Regents of the University of California.  All rights reserved.
11
11
.\" 2. Redistributions in binary form must reproduce the above copyright
12
12
.\"    notice, this list of conditions and the following disclaimer in the
13
13
.\"    documentation and/or other materials provided with the distribution.
14
 
.\" 3. All advertising materials mentioning features or use of this software
15
 
.\"    must display the following acknowledgement:
16
 
.\"     This product includes software developed by the University of
17
 
.\"     California, Berkeley and its contributors.
18
 
.\" 4. Neither the name of the University nor the names of its contributors
 
14
.\" 3. Neither the name of the University nor the names of its contributors
19
15
.\"    may be used to endorse or promote products derived from this software
20
16
.\"    without specific prior written permission.
21
17
.\"
36
32
.NH 1
37
33
Setting up
38
34
.PP
39
 
The 4.3BSD release comes with the necessary programs 
 
35
OpenBSD comes with the necessary programs 
40
36
installed and with the default line printer queue
41
37
created.  If the system must be modified, the
42
 
makefile in the directory /usr/src/usr.lib/lpr
 
38
Makefile in the directory /usr/src/usr.sbin/lpr
43
39
should be used in recompiling and reinstalling
44
40
the necessary programs.
45
41
.PP
65
61
When a printer is connected via a serial communication line
66
62
it must have the proper baud rate and terminal modes set.
67
63
The following example is for a DecWriter III printer connected
68
 
locally via a 1200 baud serial line.
 
64
locally via a 9600 baud serial line.
69
65
.DS
70
66
.DT
71
67
lp|LA-180 DecWriter III:\e
72
 
        :lp=/dev/lp:br#1200:fs#06320:\e
73
 
        :tr=\ef:of=/usr/lib/lpf:lf=/usr/adm/lpd-errs:
 
68
        :lp=/dev/lp:br#9600:ms=onlcr,oxtabs,-parity:\e
 
69
        :tr=\ef:of=/usr/libexec/lpr/lpf:lf=/var/log/lpd-errs:
74
70
.DE
75
71
The
76
72
.B lp
79
75
The
80
76
.B br
81
77
entry sets the baud rate for the tty line and the
82
 
.B fs
83
 
entry sets CRMOD, no parity, and XTABS (see \fItty\fP\|(4)).
 
78
.B ms
 
79
entry sets NL to CR-NL mapping, expansion of tabs to spaces,
 
80
and disables parity (see \fIstty\fP\|(1)).
84
81
The
85
82
.B tr
86
83
entry indicates that a form-feed should be printed when the queue
93
90
should be used for printing the files;
94
91
more will be said about filters later.
95
92
The last entry causes errors
96
 
to be written to the file ``/usr/adm/lpd-errs''
 
93
to be written to the file ``/var/log/lpd-errs''
97
94
instead of the console.  Most errors from \fIlpd\fP are logged using
98
95
\fIsyslogd\fP\|(8) and will not be logged in the specified file.  The
99
96
filters should use \fIsyslogd\fP to report errors; only those that
111
108
.DS
112
109
.DT
113
110
lp|default line printer:\e
114
 
        :lp=:rm=ucbvax:rp=lp:sd=/usr/spool/vaxlpd:
 
111
        :lp=:rm=ucbvax:rp=lp:sd=/var/spool/output/vaxlpd:
115
112
.DE
116
113
The
117
114
.B rm
124
121
here it could be left out since this is the default value.
125
122
The
126
123
.B sd
127
 
entry specifies ``/usr/spool/vaxlpd''
 
124
entry specifies ``/var/spool/output/vaxlpd''
128
125
as the spooling directory instead of the
129
 
default value of ``/usr/spool/lpd''.
 
126
default value of ``/var/spool/lpd''.
130
127
.NH 2
131
128
Output filters
132
129
.PP
152
149
.DS
153
150
.DT
154
151
va|varian|Benson-Varian:\e
155
 
        :lp=/dev/va0:sd=/usr/spool/vad:of=/usr/lib/vpf:\e
156
 
        :tf=/usr/lib/rvcat:mx#2000:pl#58:px=2112:py=1700:tr=\ef:
 
152
        :lp=/dev/va0:sd=/var/spool/output/vad:of=/usr/libexec/lpr/vpf:\e
 
153
        :tf=/usr/libexec/lpr/rvcat:mx#2000:pl#58:px=2112:py=1700:tr=\ef:
157
154
.DE
158
155
The
159
156
.B tf
160
 
entry specifies ``/usr/lib/rvcat'' as the filter to be
 
157
entry specifies ``/usr/libexec/lpr/rvcat'' as the filter to be
161
158
used in printing \fItroff\fP\|(1) output.
162
159
This filter is needed to set the device into print mode
163
160
for text, and plot mode for printing
164
161
.I troff
165
 
files and raster images (see \fIva\fP\|(4V)).
 
162
files and raster images (see \fIva\fP\|(4)).
166
163
Note that the page length is set to 58 lines by the
167
164
.B pl
168
165
entry for 8.5" by 11" fan-fold paper.
173
170
.DS
174
171
.DT
175
172
va|varian|Benson-Varian:\e
176
 
        :lp=/dev/va0:sd=/usr/spool/vad:of=/usr/lib/vpf:\e
177
 
        :if=/usr/lib/vpf:tf=/usr/lib/rvcat:af=/usr/adm/vaacct:\e
178
 
        :mx#2000:pl#58:px=2112:py=1700:tr=\ef:
 
173
        :lp=/dev/va0:sd=/var/spool/output/vad:of=/usr/libexec/lpr/vpf:\e
 
174
        :if=/usr/libexec/lpr/vpf:tf=/usr/libexec/lpr/rvcat:\e
 
175
        :af=/var/log/vaacct:mx#2000:pl#58:px=2112:py=1700:tr=\ef:
179
176
.DE
180
177
.NH 2
181
178
Access Control