UTERMINAL
TERMINAL
NEXT
$V1$
PAGETURNER
ENCORE5
ENCORE
BOX
COMMAND
GO
lpinit
SYNTAX
/etc/lpinit
FUNCTION
lpinit is an interactive shellscript
for configuring the printers on UNIX System V.
As you probably have guessed you must have
superuser privileges to configure a printer!
To invoke the lpinit you simply type /etc/lpinit.
Following this the UNIX system will ask you
to which port is the printer that you are
configuring is attached, i.e. (for PC/AT)
The printer is attached to:
1. Main Serial Port (com1)
2. Alternate Serial Port (com2)
3. Parallel Port on Monochrome Card
4. Main Parallel Port
5. Alternate Parallel Port
At this point you must give an answer in
the range of 1 to 5.
Following this the UNIX system will ask you
whether you want to use the default destination
name printer, or chose your own, i.e:
Enter a name for the printer or press <RETURN>
to use the default name printer?
If this is the first or the main printer
that you are configuring, you should enter
<RETURN>, otherwise you may want to enter
print2<RETURN> , this way it will be
easy to specify the destination printer
later on!
Your UNIX system then will ask you the
following questions?
The printer is:
1. dumb printer
2. imagen printer (parallel interface)
3. imagen printer (serial interface)
4. other
Obviously you don't think that your printer
is dumb, but probably it is. Even if your
have a sleek laser printer the choice 1
is probably a correct one. If indeed you have
an Imagen printer then select either choice
2 or 3, depending on the interface. This will
give you typesetting capability through
troff. On the other hand, you may have
purchased a troff-like package for
your laser printer, hopefully with a driver
for it, in that case you enter choice 4 and
follow the instructions from your software package.
If you've made choice 4 then you will be
asked to enter the pathname for an interface
program for your other printer type!
Finally you will be prompted with:
Is this the default printer? (y/n)?
which is self explanatory!
The command syntax for printing a file is:
lpr [-ddestination] filename
where you'd specify the destination if the
output would be sent to non-default printer!
The command to print the file results
on the printer print2 would be:
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, You Understand the Concept.
Please Type lpr -dprint2 results
Please Type lpr -dprint2 results
I will help you this time
$PROMPT$
FORGET1
Observe the result on the terminal!
$ lpr -dprint2 results
request id is print2-2(1 file)
$