The following steps should be run to add a new facetwin printer (printer connected to a pc) to the system.  These steps were performed  on a UnixWare 7 machine but should be identical for all platforms.


Start by changing directory to facetwin's bin directory.

Setting interrupt key to DELETE key
#
# cd /usr/local/facetwin/bin
#
# lc
fct_adm             fct_licedit         fct_rlpadmin        pl_fct_rlpadmin
fct_client          fct_licinfo         fct_wall            unstall.fwmanpg
fct_encrypt         fct_name            fct_winsinfo        unstall.sh
fct_instal          fct_remprt_restart  install.fwmanpg

Get a status of the printers before this, to know where you stand right now.

#
# lpstat -t
scheduler is running
system default destination: LP00
device for LP00: /dev/tty1a
device for LP10: /dev/null
character set character_set_1
character set character_set_2
LP00 accepting requests since Tue Mar 30 13:33:00 EST 1999
LP10 accepting requests since Tue Mar 30 19:42:05 EST 1999
printer LP00 is idle. enabled since Wed Apr 21 11:12:38 EDT 1999. available.
printer LP10 is idle. enabled since Tue Mar 30 19:42:06 EST 1999. available.

Make sure that the pc is accessible from unix by NAME.  Look for the "SUCCESS" line.

#
# cd /usr/local/facetwin/bin
#
# ./fct_name -n paul

Contents of '/etc/resolv.conf':
-------------------------------
domain edumet.com
nameserver 189.0.1.20
hostresorder  local bind
-------------------------------

GetHostByName(paul) SUCCESS:
Official host name -> PAUL
        IP address -> 189.0.1.128

#

Make sure that the pc share is also accessible from unix.  Look for the printer line.

#
# cd /usr/local/facetwin/bin
#
# ./fct_client

          Enter "help" or "?" for list of commands
fct_client: \> lsh paul

Sharename     Type    Comment
----------------------------------------------------------------------
ADMIN$        Disk
HP4L          Print   HP 4L in Paul's Office
RWIN          Disk
CONVERSIONS   Disk
HPW           Disk    HP LaserJet 6L

fct_client: \>

Add the new printer, using the "fct_rlpadmin" command or the "pl_fct_rlpadmin" version.  We need to create the queue name, use the pc name,  the pc printer share name, and find a usable username (use guest if possible).. {The pl_fct_rlpadmin is different from fct_rlpadmin becuase I "hacked" it to remove the "fct_" prefix that facetwin likes to add to all of its printers.  We dont like the way that looks, so pl_fct_rlpadmin offers a workaround for that condition.}

#
# ./pl_fct_rlpadmin -a LP99 -n PAUL -r HP4L -u guest
Creating directory "/usr/local/facetwin/printers" .
Creating directory "/usr/local/facetwin/fct_pipes" .
Creating Pipe "/usr/local/facetwin/fct_pipes/LP99" .
Adding printer      "LP99" .
UX:lpadmin: WARNING: "/usr/local/facetwin/fct_pipes/LP99" is accessible by others.
UX:lpadmin: TO FIX: If other users can access it you may get
        unwanted output. If this is not what you
        want change the owner to "lp" and change
        the mode to 0600.
        Processing continues.
Causing printer   "LP99" to accept requests.
UX:accept: INFO: destination "LP99" now accepting requests
Enabling printer "LP99" .

UX:enable: ERROR: The printer 'LP99' is not ready for printing.
UX:enable: TO FIX: The printer may be off-line.  Check that the printer
        is plugged in and turned on, as well as for other common printer
        problems.
Starting remote printer process for printer LP99 .
SUCCESSFUL.

When I went to add the above printer, it told me it wasnt enabled.  I did an lpstat to see.

#
# lpstat -t
scheduler is running
system default destination: LP00
device for LP00: /dev/tty1a
device for LP10: /dev/null
device for LP99: /usr/local/facetwin/fct_pipes/LP99
character set character_set_1
character set character_set_2
LP00 accepting requests since Tue Mar 30 13:33:00 EST 1999
LP10 accepting requests since Tue Mar 30 19:42:05 EST 1999
LP99 accepting requests since Thu Apr 22 08:26:15 EDT 1999
printer LP00 is idle. enabled since Wed Apr 21 11:12:38 EDT 1999. available.
printer LP10 is idle. enabled since Tue Mar 30 19:42:06 EST 1999. available.
printer LP99 disabled since Thu Apr 22 08:26:15 EDT 1999. available.
        new printer

As it turns out, it was NOT enabled, so do so manually.

#
# enable LP99
UX:enable: INFO: printer "LP99" now enabled

Do another lpstat to make sure it is now enabled and accepting.

#
# lpstat -t
scheduler is running
system default destination: LP00
device for LP00: /dev/tty1a
device for LP10: /dev/null
device for LP99: /usr/local/facetwin/fct_pipes/LP99
character set character_set_1
character set character_set_2
LP00 accepting requests since Tue Mar 30 13:33:00 EST 1999
LP10 accepting requests since Tue Mar 30 19:42:05 EST 1999
LP99 accepting requests since Thu Apr 22 08:26:15 EDT 1999
printer LP00 is idle. enabled since Wed Apr 21 11:12:38 EDT 1999. available.
printer LP10 is idle. enabled since Tue Mar 30 19:42:06 EST 1999. available.
printer LP99 is idle. enabled since Thu Apr 22 08:26:26 EDT 1999. available.

Test the connectivity by sending a request to the printer, and checking its output.

#
# ls -l | lp -dLP99
request id is LP99-252 (standard input)

As you can see from the output, the "standard" interface/model doesnt work to well.  What we need to do is get a better one.  Go to the interfaces directory ....

#
# cd /usr/spool/lp/admins/lp/interfaces
#
# l
total 110
-rwxrwxr-x    1 lp       lp            25699 Mar 30 20:12 LP00
-rwxr-xr-x    1 lp       lp             2504 Apr  7  1998 LP10
-rwxrwxr-x    1 lp       lp            25758 Apr 22 08:26 LP99
drwxrwxr-x    2 lp       lp               96 Mar 30 19:42 model.orig
#
# pwd
/usr/spool/lp/admins/lp/interfaces

.... and copy the interface for an existing laser printer over to the new one.  If this is the first laser printer on the system, copy the HP6L model (from /usr/lib/lp/model/HP6L) to the new laser printer interface script.

#
# cp model.orig/LP10 ./LP99

Send a final test, and all should look ok.  Now, the model that we are using (HP6L) has an option called "edumet", so sending a request as "ls -l  / | lp -dLP99 -o edumet" will submit that job as a landscape, 13 cpi, and 8 lpi, with a top-margin of 0 lines.

#
# ls -l / | lp -dLP99
request id is LP99-253 (standard input)
#


This page last updated 04-22-1999.