Services Tools Bundle OpenSolaris Installation Guide

Setting Up the Depot Server on the localhost

Complete the following steps to setup the Depot server on the localhost.

ProcedureTo setup the Depot server on the localhost

Before You Begin

You must ensure that you have sufficient privileges to install, remove applications and administer services (SMF) on the host you wish to install explorer.

  1. Run the STB installer script for OpenSolaris on your localhost to set it up as the default Depot server for the Explorer installation.

    The following information is displayed:


    bash-3.2# pfexec ./install_stb_opensol.sh
    Services Tools Bundle(STB) v5.2 Installer
    Checksumming...

    A list of available components for installation in this bundle of STB is displayed. (Currently, only Explorer is part of STB for OpenSolaris.)


    List of Components and Corresponding Selection
    1. Install Explorer v6.3 ? (y/n) y
    Explorer details can be found at <http://docs.sun.com/app/docs/coll/1554.2>
  2. When you are prompted for the choice for installing the components, choose y to continue with the installation.

    STB provides you the option of proceeding with the installation or exiting:


    Would you like to (I)nstall component selections, or (E)xit ? I(default)
  3. To continue with the installation, type: I

    The following information is displayed:


    STB is installing all selected modules and their dependencies.
    Details of this will be in /var/log/install_stb-v5.2.log
    Please wait.....
    Installing Sun(TM) Explorer Data Collector .....

    Preferred authority is detected from the pkg publisher list. This is taken as the default publisher for publishing explorer packages.


    Note –

    Before proceeding further, you must ensure that you have ssh login access to this publisher with sufficient privileges to configure and start pkg service on this host

    To know more about publisher, refer to the pkg man page or refer the documentation as mentioned above.


    The following is displayed:


    Your preferred depot server is http://pkg.opensolaris.org:80/.
    You may need to have sufficient privilege to install explorer on this server.
    Use it for explorer Installation? (Y/N)(default:y)? [y,n,?] n
  4. To publish the packages to the preferred publisher, type: y. Else choose n.

    The following information is displayed:


    Please enter server url to publish packages 
    (Example http://myhostname.domain default: http://localhost):
  5. To accept the default choice of http://localhost, type: y

    The authority setup requires a few user configurable parameters like Port number and directory path.

    The following information is displayed:


    Please enter the Port number to connect to server 
    (default:10000):13000
    Refreshing the package catalogs..
  6. Enter the port at which the connection to depot server would be established.

    The default port here is 10000.

    The following information is displayed:


    Please enter the directory to push packages in server 
    ( default /var/pkg/repo): /usr/pkg/repo
  7. Enter the repository path for the authority, where the package will be deployed.

    The default value is /var/pkg/repo

    STB tries to update the package catalogs from this authority. If the refresh is successful, it proceeds to publish the explorer packages into this authority. If not, its possible that the corresponding http service on this authority has been disabled. Hence, STB tries to restart it after reaffirming with you about the authority settings once more.

    The following information is displayed:


    Refreshing the package catalogs..
    Pkg service seems to be disabled in http://localhost. Trying to restart the service..
    Please enter the directory to push packages in server ( default /usr/pkg/repo):
    Refreshing the package catalogs..

    After starting up the http service, STB publishes the packages into the authority. Once the package is successfully published, it proceeds to install the packages into the client box.


    Note –

    Do not worry about the warning message:pkg.opensolaris.org: node name or service name not known. This error message is displayed if your client host is not able to reach opensolaris.org, which generally is the case for hosts which cannot access the Internet.


    The installation continues and the following information is displayed:


    Pushing SUNWexplo to http://localhost
    PUBLISHED
    pkg:/SUNWexplo@6.3,5.11:20090109T174025Z
    Ready to install SUNWexplo
    Refreshing the package catalogs..
    pkg: 1/2 catalogs successfully updated:
    pkg.opensolaris.org: node name or service name not known
    DOWNLOAD PKGS FILES XFER (MB)
    Completed 1/1 164/164 24.97/24.97
    
    PHASE ACTIONS
    Install Phase 189/189
    Refreshing the package catalogs..
    Pushing SUNWexplu to http://localhost
    PUBLISHED
    pkg:/SUNWexplu@6.3,5.11:20090109T174139Z
    Ready to install SUNWexplu
    Refreshing the package catalogs..
    pkg: 1/2 catalogs successfully updated:
    pkg.opensolaris.org: node name or service name not known
    DOWNLOAD PKGS FILES XFER (MB)
    Completed 1/1 20/20 0.01/0.01
    
    PHASE ACTIONS
    Install Phase 29/29
    Installation of Sun(TM) Explorer Data Collector <6.2> was successful
    
    STB v5.2 installation is complete...