Printing Setup On Sys V
199
The command structure:
- stop print scheduler
- use
lpadmin
to describe print queue (often referred to as the
logical Unix printer of the same name)
- start the print scheduler
- enable the print queue
- accept the print queue (allow it to accept print jobs)
- do a test print
Several examples are shown below.
Example 1: Using the dest d1prn (Sun 2.5.x)
lpshut
lpsystem -t bsd lobby
lpadmn -p lobby -v/dev/null
(gives file locking)
lpadmin -p lobby -i/usr/lib/lp/model/netstandard
lpadmin -p lobby -sLJ_PS1!d1prn
lpsched
enable lobby
accept lobby
Example 2: Using the dest d1prn (Sun 2.6, 2.7 and Similar)
lpshut
lpadmn -p lobby -v/dev/null
(gives file locking)
lpadmin -p lobby -i/usr/lib/lp/model/netstandard -o
protocol=bsd
lpadmin -p lobby -sLJ_PS1!d1prn
lpsched
enable lobby
accept lobby
Example 3: Using the raw tcp socket 9100 (Sun 2.1, 2.7 and
Similar):
lpshut
lpadmn -p lobby -v/dev/null
(gives file locking)
lpadmin -p lobby -i/usr/lib/lp/model/netstandard
lpadmin -p lobby -o dest=LJ_PS1:9100 -o protocol=tcp
lpsched
enable lobby
accept lobby
To do a test print for either form using the
/etc/hosts
file:
lp -d lobby /etc/hosts