36
CONFIGURING THE M204 FOR TCP/IP: Host Configuration
To create the necessary entries for this example, these commands are needed:
cd /usr/spool/lpd
mkdir spike
mkdir spike/ps
touch spike/ps/log spike/ps/acct
chown -R daemon.daemon spike
chmod -R g+rwX,o+rX spike
Once this is done, you can then start this printer.
lpc start ps
To send a print job, use this syntax:
lpr -P
printername filename
BSD Interface Script Printing
If you decide not to go with a remote printer setup, you can use an interface file
instead. This interface script is specified in /etc/printcap with the if= entry instead of
the rm= and rp= entries. The script is called by the lpd daemon with the following
syntax:
nprbsd.if -w
width -llength -iindent -nlogin -hhost acct_file
where:
nprbsd.if
Name of the interface script.
width
Width of page in characters.
length
Length of page in lines.
indent
Number of characters of indent from left margin.
login
Login name of person originating the print request.
host
Name of host where the print job originates.
acct_file
File where accounting data is stored.
Setting up an Interface Script
To manually set up your host with an interface file, you need to add an entry to the
/etc/printcap file and then create and edit its associated files and directories.
Here is an example of what the printcap entry should look like followed by a descrip-
Syntax
Syntax
Содержание M204
Страница 8: ...vi LIST OF TABLES...
Страница 12: ...4 PREFACE Computer Entry and Display Conventions...
Страница 22: ...14 GETTING TO KNOW THE M204 Overview of Print Server Installation...
Страница 70: ...62 CONFIGURING THE M204 FOR NOVELL Host Configuration...
Страница 124: ...116 USING NPWIN Starting a NPWin Session With An Unconfigured Unit...
Страница 125: ...117...
Страница 126: ...118...
Страница 154: ...146 USING THE M204 S ADDITIONAL OPTIONS IP Routing...
Страница 166: ...156 TROUBLESHOOTING THE M204 Windows Problems...
Страница 192: ...182 GLOSSARY B A C...
Страница 196: ...186 APPENDIX A Planning Your Print Setup...
Страница 204: ...194 INDEX...