System Administration Guide: Printing

ProcedureHow to Set Up an Alias for a Selectable Character Set

You do not need to perform this procedure if the terminfo names for the selectable character sets are adequate. For more information on using the terminfo database, see Adding a terminfo Entry for an Unsupported Printer.

  1. On the print server, become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Display the names of the selectable character sets for the specified printer type.


    # tput -T printer-type csn
    
    -T printer-type

    Specifies the printer type found in the terminfo database. For information on entries in the terminfo database, see Printer Type.

    n

    Specifies the number (0, 1, 2, 3, 4, 5, and so on) that represents a selectable character set for the specified printer type. The system displays the selectable character set name followed by the prompt symbol. For example, cs1 could cause the system to display english#.

    For more information, see the tput(1) man page.

  3. Set up an alias for a selectable character set.


    # lpadmin -p printer-name -S select-charset1=alias1,select-charset2=alias2...
    
    -p printer-name

    Specifies the printer on which you are setting up aliases for selectable character sets.

    -Sselect-charset

    Specifies the electable character set name. The name can be found in Step 2.

    alias

    Is the alias for the specified selectable character set. This alias can be used in addition to the selectable character set name.

    You can set up more than one alias with this command. Use commas or spaces to separate the aliases. If you use spaces, enclose the list of aliases in quotation marks.

    The alias is added to the print server's /etc/lp/printers/printer-name/configuration file.

  4. On a system that is a print client of the print server, log in as superuser, lp, or assume an equivalent role.

  5. Set up an alias for the selectable character set.


    # lpadmin -p printer-name -S select-charset1=alias1,select-charset2=alias2...
    

    In this command, the variables are the same as the variables in Step 3.

    The alias is added to the print client's /etc/lp/printers/printer-name/configuration file.

  6. Repeat Step 4 and Step 5 for each print client that might need to use the alias.

  7. On the print server and print clients, verify that the selectable character set alias is listed in the output of the following command.


    # lpstat -p printer-name -l
    

    Alternately, submit a print request that uses the alias for the selectable character set and check for output.


Example 10–6 Setting Up an Alias for a Selectable Character Set

The following example shows how to display the names of selectable character sets for the usascii selectable character set on the printer luna. The printer luna is a ln03 printer type. This example also shows how to specify text as an alias for the usascii selectable character set.


# tput -T ln03 cs0
usascii# tput -T ln03 cs1
english# tput -T ln03 csn2
finnish# tput -T ln03 csn3
japanese# tput -T ln03 cs4
norwegian#
# lpadmin -p luna -S usascii=text