Secure Global Desktop 4.40 Administration Guide > Printing > Printing From a UNIX or Linux System Application Server
To print from a UNIX or Linux system application server, you have to install at least one SGD printer queue on the application server. This printer queue redirects print jobs to an SGD server and the SGD sends the print jobs to the client device. If your array contains more than one SGD server, you install a printer queue for each SGD server in the array.
You configure printer queues with the SGD printer queue installation script.
This script also installs replacement lp
or lpr
scripts.
These are used instead of the standard scripts to ensure that print jobs contain enough information
for SGD to be able to identify the user who printed them.
/opt/tarantella/bin/scripts/prtinstall.en.sh
script from
an SGD server to a temporary directory on the application server.See the SGD printer queue installation script for details of all the command options.
If the array consists of a single SGD server, use the following command:
# sh prtinstall.en.sh
When prompted, type the full DNS name of the SGD server.
If the array contains more than one SGD server, create a printer queue for each SGD server in the array. Use the following command:
# sh prtinstall.en.sh --ttahost DNS_name --appprinter name
The DNS_name is the full DNS name of an SGD server. The name of each printer queue (as specified by the
--appprinter
argument) can be anything you like but it must be unique.
If you use the Common UNIX Printing System (CUPS), you might have to use the --cups
option to indicate
that you are using CUPS. You might also have Configuring Printing for CUPS.
If you use the SGD server as an application server, a printer queue is automatically created when you install the software.
SGD printing only works with CUPS version 1.1.19 or later. The following configuration changes might needed to enable printing with CUPS:
If you have any LPD clients on your application server, you must enable the CUPS LPD compatibility mode so that CUPS can accept remote print jobs from LPD clients. The CUPS Software Administrators Manual explains how you enable LPD compatibility mode.
On the host on which SGD is installed, enable 'raw printing'
in CUPS by editing the /etc/cups/mime.convs
and
/etc/cups/mime.types
files.
These files contain comments explaining how to do this (search for 'raw').
Note After making changes to your CUPS configuration, you might have to restart the CUPS daemon.
To use CUPS for printing, users must use the /opt/tarantella/bin/lp
script.
lp
and lpr
ScriptsThe prtinstall.en.sh
script also installs the SGD
lp
or lpr
replacement scripts.
Users must use these scripts when they print from a UNIX or Linux system application server to ensure that
print jobs contain enough information for SGD to be able to identify the user who printed them.
The SGD login scripts set the user's PATH
to ensure that
the replacement scripts take precedence over the system scripts. However, if the application uses a full path name,
for example /usr/bin/lp
, or modifies PATH
itself,
you must reconfigure the application to use /opt/tarantella/bin/lp
or /opt/tarantella/bin/lpr
.
Users print with the replacement scripts as follows:
$ lp -d printer file $ lpr -P printer file
If the -d
or -P
argument is omitted, the output goes to the client's default printer.
How you specify the printer depends on the client device.
Note An alternative to the configuration described below is to use SGD PDF printing.
When printing to a Microsoft Windows client device, users can specify the printer they print to by using any of the following:
$ lp -d '\\\\PRTSERVER\\HPLJ5' filename
$ lpr -P label-printer filename
$ lpr -P LPT1: filename
To use a UNC name, you must enclose the printer name in quotes and escape every backslash with an extra backslash (see the example above). As different shells process backslashes differently, you might need to experiment with the number of backslashes. Users can also use underscores instead of backslashes, for example:
$ lp -d __PRTSERVER_HPLJ5 filename
Note Using underscores only works if the first two characters of the printer name are underscores.
You can avoid problems with UNC names by using a "friendly" name. You configure "friendly" names in the
/opt/tarantella/etc/data/printernamemap.txt
file.
The entries in this file map "friendly" names to UNC names, for example:
"label-printer"="\\PRTSERVER\HPLJ5"
Note You do not have to escape any backslashes.
When printing to a UNIX, Linux or Mac OS X system client device,
users can specify any printer listed in the [UNIX]
section of either of the following files:
/opt/tarantella/etc/data/default.printerinfo.txt
- this is the global configuration file$HOME/.tarantella/printerinfo.txt
- this is a user-specific configuration fileThe following are examples of print commands:
$ lp -d A4-printer filename $ lpr -P color-printer filename
See Configuring Printing for UNIX, Linux and Mac OS X System Client Devices for details of how to configure printer names.
Copyright © 1997-2007 Sun Microsystems, Inc. All rights reserved.