This example shows how to make a local PostScript printer available for printing on a print server. The commands in this example must be executed on the print server where the printer is connected. The following information is used as an example. The information you provide will vary:
Printer name: luna
Port device: /dev/term/b
Printer type: PS
File content type: postscript
# chown lp /dev/term/b # chmod 600 /dev/term/b 1 # lpadmin -p luna -v /dev/term/b 2 # lpadmin -p luna -T PS 3 # lpadmin -p luna -I postscript 4 # cd /etc/lp/fd # for filter in *.fd;do > name=`basename $filter .fd` > lpfilter -f $name -F $filter > done 5 # accept luna destination "luna" now accepting requests # enable luna 6 printer "luna" now enabled # lpadmin -p luna -D "Room 1954 ps" 7 # lpstat -p luna 8 printer luna is idle. enabled since Jul 12 11:17 1999. available. |
Gives lp ownership and sole access to a port device.
Defines the printer name and the port device the printer will use.
Sets the printer type of the printer.
Specifies the file content types to which the printer can print directly.
Adds print filters to the print server.
Accepts print requests for the printer and enables the printer.
Adds a description for the printer.
Verifies that the printer is ready.