I'm forwarding the heads-up for the new /usr/sbin/ppdmgr utility.  In the 
heads-up, I neglected to instruct bfu users who do not have swan access how to 
install the needed SUNWfppd packages.  

The SUNWfppd packages have been posted on the OpenSolaris Printing community 
page.

Here are the links to the SUNWfppd packages from last night's nightly build:

  http://www.opensolaris.org/os/community/printing/files/SUNWfppd-i386.pkg
  http://www.opensolaris.org/os/community/printing/files/SUNWfppd-sparc.pkg

To remove the old package and install the new one

  # yes y | pkgrm SUNWfppd
  # pkgadd -d 
http://www.opensolaris.org/os/community/printing/files/SUNWfppd-`uname -p`.pkg 
all

>----------------Begin Forwarded Message----------------<

Date: Thu, 8 Mar 2007 17:33:26 -0800 (PST)
From: "Cynthia Eastham" <[email protected]>
Subject: Heads-up: ppdmgr
To: onnv-gate at onnv.eng.sun.com, on-all at sun.com

The putback of

        PSARC 2006/647 PPD Manager
        6236968 No documented way to add PPD file to ppdcache

adds a new utility, /usr/sbin/ppdmgr, to manage the PostScript Printer
Definition (PPD) files used with the print subsystem.  See ppdmgr(1M)
for details.

This putback will be coordinated with the putback of CR 6524150 "The
delivery location of PPD files should be /usr/share/ppd (sfw)" to the
SFW consolidation.

Bugs against ppdmgr can be filed under solaris/solaris_print/ppdmgr

***** Only those who have already installed local or network   *****
***** printers, or plan to in the future, need to read further *****

bfu users will need to perform some extra steps as these changes
cross consolidations:

        1) Add SUNWfppd from the sfwnv gate to get the changes to
        PPD files as they are now delivered to /usr/share/ppd.
        The changes to this package are being delivered at the
        same time as the fix for CR 6236968 is delivered to onnv.
        It will be available as soon as the sfwnv gate's build
        completes (normally around 2:30am PST):

        pkgadd -d /ws/sfwnv-gate/packages/sparc/nightly-nd/SUNWfppd

        2) Update the ppdcache file to include information
        about the PPD files at their new location .  The ppdcache
        is now generated by the new ppdmgr utility, thus you must
        either run, as root,
                /usr/sbin/ppdmgr -u -Rall -Lall 
        or
                svcadm enable print/ppd-cache-update

        Note: the first time this is run this may take a while
        to complete as cache entries are generated for all PPD
        files delivered in the "system" repository (/var/lp/ppd).

        3) For any printers you have installed that use PPD files
        from the old location, you will want to modify the
        configuration file for those printers otherwise you will
        not see the correct configuration from the ppdmgr and
        lpstat will display the incorrect PPD file location.
        For each printer in /etc/lp/printers, edit the
        configuration file to change the old delivery location
        to the new delivery location as follows:
                    old                                   new
                    ---                                   ---
          /usr/lib/lp/model/ppd/system/foomatic /usr/share/lp/ppd/SUNWfoomatic
          /usr/lib/lp/model/ppd/system/hpijs    /usr/share/lp/ppd/SUNWhpijs
          /usr/lib/lp/model/ppd/system/gimp     /usr/share/lp/ppd/SUNWgimp

        4) If PPD files from a location other than the old
        delivery location (/usr/lib/lp/model/ppd/system) were used
        with lpadmin -n, and you want that PPD file to be visible
        from the printmgr, you will need to modify the printer:
         lpadmin -p <printer name> -n /etc/lp/ppd/<printer name>.ppd

        This will add the PPD file to the system in "user" repository
        (/var/lp/ppd) under the "user" label, i.e.,
        if <printer name>.ppd is an HP PPD file, then the final
        destination of the copied PPD file would be
        /var/lp/ppd/user/HP/<printer name>.ppd.gz

        If you then wanted to add or modify a printer to use this PPD file,
        the Printer Driver field from the add or modify a local or network
        attached printer selection would be displayed as:
                user(U): <printer driver>
        where "user" is the label and "U" is the one letter abbreviation
        for the PPD file repository the PPD file was found under.

*** Additional information ***

Here is a highlight of this project, however, for additional information
regarding this putback, please see the arc case:
http://sac.sfbay.sun.com/arc/PSARC/2006/647/

When adding or modifying a local or networked attached printer using the
Solaris Print Manager GUI (printmgr), a cache file (ppdcache) is used to
generate Printer Make, Printer Model and Printer Driver display fields.
Prior to this putback, this static cache file contained printer information
from PPD files delivered with Solaris under a single PPD file repository.
With this putback, this cache file will no longer be static, and will
be updated to reflect the printer information from a specified PPD file

        1) automatically when ppdmgr -a is used to add the PPD file
        2) automatically when lpadmin -n is used to add the PPD file
        3) when ppdmgr -u (update) or -r (rebuild) is used after manually
        copying a PPD file to a PPD file repository.

In addition, PPD files can be added to the system in a number of
different PPD file repositories.  These repositories align with the PPD
file delivery locations specified by the FSG OpenPrinting Group.
The following are the specified repositories, project identified names for
each of of the repositories, and a description of what each repository
is for:

Repository Name         Repository Location             Description
---------------         -------------------             -----------
system                  /usr/share/ppd                  PPD files delivered
                                                        with Solaris.  This
                                                        repository should not
                                                        be modified by users.
vendor                  /opt/share/ppd                  PPD files from vendors.
                                                        This repository should
                                                        not be modified by
                                                        users.
admin                   /usr/local/share/ppd            For use, as needed, by
                                                        system administrators.

In addition to the above repositories, one additional repository will be
recognized by the ppdmgr to allow users to add PPD files to an updatable
repository:

Repository Name         Repository Location             Description
---------------         -------------------             -----------
user                    /var/lp/ppd                     For use, as needed, by
                                                        administrators/users
                                                        with privilege (Printer
                                                        Management)

The "user" PPD file repository is default when lpadmin -n or ppdmgr -a
is used to add a specified PPD file to the system.

All PPD files will reside in the following location under each PPD file
repository:  <PPD file repository>/<label>/<manufacturer>/<PPD file>
Therefore, whereas a PPD file used to be delivered to
        /usr/lib/lp/model/ppd/system/foomatic/HP/hp.ppd.gz
it will now be delivered to
        /var/lp/ppd/SUNWfoomatic/HP/hp.ppd.gz
having a repository name of "system" and a label name "SUNWfoomatic".

Users can group PPD files by specifying a label name using the
ppdmgr -L <label name> option, and can specify which repository to
copy the the PPD file under using the ppdmgr -R <repository name> option.

Another important note to make is that printmgr users will notice a change
in the Printer Driver field when adding or modifying local attached or
network attached printers.  Allowing the user to distinguish between PPD
file information from different labels in different repositories, in
addition to the printer driver, the label name along with a one letter
abbreviation for the PPD repository name will be displayed in the
following format:
        <label>(<repository letter>): <driver information>

>----------------End Forwarded Message----------------<


Reply via email to