Saturday 10 May 2014

How to create IPS repository in solaris 11.2 & installing solaris-desktop server ??

1)Download all 4 iPS repos along install-repo.sh script & checksum file
-d destination directory
-s sorce directory (4 repos placed location if script is not in that location)
-I create Image
-v verbose
-c compress
# ksh -x install-repo.ksh  -d Solaris11.2 -I -v -c
+ ZIPCNT=4
+ typeset -i ZIPCNT
+ mkiso=false
+ typeset mkiso
+ ckfile=''
+ typeset ckfile
+ CKSUM=/usr/bin/md5sum
+ typeset CKSUM
+ [ 5 -eq 0 ]
+ pwd
+ ZIPLOC=/IPS
+ typeset ZIPLOC
+ getopts Ii:s:d:vch char
+ filesys=Solaris11.2
+ [ ! -d Solaris11.2 ]
+ [[ Solaris11.2 == . ]]
+ getopts Ii:s:d:vch char
+ mkiso=true
+ typeset mkiso
+ getopts Ii:s:d:vch char
+ verify=true
+ typeset verify
+ getopts Ii:s:d:vch char
+ checkmd=true
+ typeset checkmd
+ getopts Ii:s:d:vch char
+ [ -z '' ]
+ head -1
+ ls -t /IPS/sol-11_2-beta-repo-1of4.zip
+ 2> /dev/null
+ zip1=/IPS/sol-11_2-beta-repo-1of4.zip
+ echo /IPS/sol-11_2-beta-repo-1of4.zip
+ sed 's|.*/\(.*\)-repo.*|\1|'
+ head -1
+ image=sol-11_2-beta
+ typeset image
+ [ true '=' true ]
+ ckfile=/IPS/sol-11_2-beta-repo-md5sums.txt
+ [ ! -f /IPS/sol-11_2-beta-repo-md5sums.txt ]
+ zipnum=1
+ typeset -i zipnum
+ rebuild=false
+ typeset rebuild
+ [ -d Solaris11.2/publisher/solaris ]
+ [ /IPS/sol-11_2-beta-repo-md5sums.txt '!=' '' ]
+ [ ! -f /IPS/sol-11_2-beta-repo-md5sums.txt ]
+ echo '\nComparing checksums of downloaded files...\c'
Comparing checksums of downloaded files...+ 1> /tmp/cksum1369
+ cd /IPS
+ /usr/bin/md5sum sol-11_2-beta-repo-1of4.zip sol-11_2-beta-repo-2of4.zip sol-11_2-beta-repo-3of4.zip sol-11_2-beta-repo-4of4.zip
+ diff /IPS/sol-11_2-beta-repo-md5sums.txt /tmp/cksum1369
+ echo 'done. Checksums match.\n'
done. Checksums match.
+ [ ! 1 -gt 4 ]
+ zipname=sol-11_2-beta-repo-1of4.zip
+ [ ! -f /IPS/sol-11_2-beta-repo-1of4.zip ]
+ echo 'Uncompressing sol-11_2-beta-repo-1of4.zip...\c'
Uncompressing sol-11_2-beta-repo-1of4.zip...+ unzip -qd Solaris11.2 /IPS/sol-11_2-beta-repo-1of4.zip
+ echo done.
done.
+ zipnum=zipnum+1
+ [ ! 2 -gt 4 ]
+ zipname=sol-11_2-beta-repo-2of4.zip
+ [ ! -f /IPS/sol-11_2-beta-repo-2of4.zip ]
+ echo 'Uncompressing sol-11_2-beta-repo-2of4.zip...\c'
Uncompressing sol-11_2-beta-repo-2of4.zip...+ unzip -qd Solaris11.2 /IPS/sol-11_2-beta-repo-2of4.zip
+ echo done.
done.
+ zipnum=zipnum+1
+ [ ! 3 -gt 4 ]
+ zipname=sol-11_2-beta-repo-3of4.zip
+ [ ! -f /IPS/sol-11_2-beta-repo-3of4.zip ]
+ echo 'Uncompressing sol-11_2-beta-repo-3of4.zip...\c'
Uncompressing sol-11_2-beta-repo-3of4.zip...+ unzip -qd Solaris11.2 /IPS/sol-11_2-beta-repo-3of4.zip
+ echo done.
done.
+ zipnum=zipnum+1
+ [ ! 4 -gt 4 ]
+ zipname=sol-11_2-beta-repo-4of4.zip
+ [ ! -f /IPS/sol-11_2-beta-repo-4of4.zip ]
+ echo 'Uncompressing sol-11_2-beta-repo-4of4.zip...\c'
Uncompressing sol-11_2-beta-repo-4of4.zip...+ unzip -qd Solaris11.2 /IPS/sol-11_2-beta-repo-4of4.zip
+ echo done.
done.
+ zipnum=zipnum+1
+ [ ! 5 -gt 4 ]
+ echo 'Repository can be found in Solaris11.2.'
Repository can be found in Solaris11.2.
+ [ false '=' true ]
+ [ true '=' true ]
+ pkgrepo -s Solaris11.2 verify
Initiating repository verification.
+ [ true '=' true ]
+ echo 'Building ISO image...\c'
Building ISO image...+ echo sol-11_2-beta
+ /usr/gnu/bin/tr a-z A-Z
+ VNAME=SOL-11_2-BETA
+ cd Solaris11.2
+ /usr/bin/mkisofs -o /IPS/sol-11_2-beta-repo.iso -no-limit-pathtables -l -allow-leading-dots -A 'Oracle Solaris sol-11_2-beta Release Repository' -publisher 'Copyright 2014 Oracle and/or its affiliates. All rights reserved.' -p pkg-inquiry_ww@oracle.com -R -uid 0 -gid 0 -V SOL-11_2-BETA_REPO -v .
+ 1> /IPS/mkiso.log 2>& 1
+ [ 0 -gt 0 ]
+ echo done.
done.
+ echo 'ISO image and instructions for using the ISO image are at:'
ISO image and instructions for using the ISO image are at:
+ echo /IPS/sol-11_2-beta-repo.iso
/IPS/sol-11_2-beta-repo.iso
+ echo /IPS/README-repo-iso.txt
/IPS/README-repo-iso.txt
root@Guest2:/IPS# clear
root@Guest2:/IPS# ls
install-repo.ksh                sol-11_2-beta-repo-2of4.zip     sol-11_2-beta-repo-md5sums.txt
mkiso.log                       sol-11_2-beta-repo-3of4.zip     sol-11_2-beta-repo.iso
sol-11_2-beta-repo-1of4.zip     sol-11_2-beta-repo-4of4.zip     Solaris11.2
2) set publisher
# pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F http://pkg.oracle.com/solaris/beta/
# svcs pkg/server
STATE          STIME    FMRI
disabled       23:26:26 svc:/application/pkg/server:default
# svccfg -s pkg/server
svc:/application/pkg/server> listprop
pkg                                                            application
pkg/address                                                   net_address
pkg/cfg_file                                                  astring
pkg/content_root                                              astring     usr/share/lib/pkg
pkg/debug                                                     astring
pkg/file_root                                                 astring
pkg/inst_root                                                 astring     /var/pkgrepo
pkg/log_access                                                astring     none
pkg/log_errors                                                astring     stderr
pkg/mirror                                                    boolean     false
pkg/pkg_root                                                  astring     /
pkg/port                                                      count       80
pkg/proxy_base                                                astring
pkg/readonly                                                  boolean     true
pkg/socket_timeout                                            count       60
pkg/sort_file_max_size                                        astring
pkg/ssl_cert_file                                             astring
pkg/ssl_dialog                                                astring     smf
pkg/ssl_key_file                                              astring
pkg/standalone                                                boolean     true
pkg/threads                                                   count       60
pkg/writable_root                                             astring
pkg_bui                                                        application
pkg_bui/feed_description                                      ustring
pkg_bui/feed_icon                                             ustring     web/_themes/pkg-block-icon.png
pkg_bui/feed_logo                                             ustring     web/_themes/pkg-block-logo.png
pkg_bui/feed_name                                             ustring     "package repository feed"
pkg_bui/feed_window                                           count       24
pkg_secure                                                     application
pkg_secure/read_authorization                                 astring     solaris.smf.read.pkg-server
pkg_secure/ssl_key_passphrase                                 astring
fs                                                             dependency
fs/entities                                                   fmri        svc:/system/filesystem/local
fs/grouping                                                   astring     require_all
fs/restart_on                                                 astring     none
fs/type                                                       astring     service
autofs                                                         dependency
autofs/entities                                               fmri        svc:/system/filesystem/autofs
autofs/grouping                                               astring     optional_all
autofs/restart_on                                             astring     none
autofs/type                                                   astring     service
ntp                                                            dependency
ntp/entities                                                  fmri        svc:/network/ntp
ntp/grouping                                                  astring     optional_all
ntp/restart_on                                                astring     none
ntp/type                                                      astring     service
network                                                        dependency
network/entities                                              fmri        svc:/milestone/network
network/grouping                                              astring     require_all
network/restart_on                                            astring     none
network/type                                                  astring     service
manifestfiles                                                  framework
manifestfiles/lib_svc_manifest_application_pkg_pkg-server_xml astring     /lib/svc/manifest/application/pkg/pkg-server.xml
general                                                        framework
general/entity_stability                                      astring     Unstable
start                                                          method
start/exec                                                    astring     "%{pkg/pkg_root}/lib/svc/method/svc-pkg-server %m"
start/timeout_seconds                                         count       0
start/type                                                    astring     method
stop                                                           method
stop/exec                                                     astring     "%{pkg/pkg_root}/lib/svc/method/svc-pkg-server %m %{restarter/contract}"
stop/timeout_seconds                                          count       30
stop/type                                                     astring     method
tm_common_name                                                 template
tm_common_name/C                                              ustring     "image packaging repository"
svc:/application/pkg/server> setprop pkg/inst_root="/IPS/Solaris11.2/"
svc:/application/pkg/server> listprop
pkg                                                            application
pkg/address                                                   net_address
pkg/cfg_file                                                  astring
pkg/content_root                                              astring     usr/share/lib/pkg
pkg/debug                                                     astring
pkg/file_root                                                 astring
pkg/log_access                                                astring     none
pkg/log_errors                                                astring     stderr
pkg/mirror                                                    boolean     false
pkg/pkg_root                                                  astring     /
pkg/port                                                      count       80
pkg/proxy_base                                                astring
pkg/readonly                                                  boolean     true
pkg/socket_timeout                                            count       60
pkg/sort_file_max_size                                        astring
pkg/ssl_cert_file                                             astring
pkg/ssl_dialog                                                astring     smf
pkg/ssl_key_file                                              astring
pkg/standalone                                                boolean     true
pkg/threads                                                   count       60
pkg/writable_root                                             astring
pkg/inst_root                                                 astring     /IPS/Solaris11.2/
pkg_bui                                                        application
pkg_bui/feed_description                                      ustring
pkg_bui/feed_icon                                             ustring     web/_themes/pkg-block-icon.png
pkg_bui/feed_logo                                             ustring     web/_themes/pkg-block-logo.png
pkg_bui/feed_name                                             ustring     "package repository feed"
pkg_bui/feed_window                                           count       24
pkg_secure                                                     application
pkg_secure/read_authorization                                 astring     solaris.smf.read.pkg-server
pkg_secure/ssl_key_passphrase                                 astring
fs                                                             dependency
fs/entities                                                   fmri        svc:/system/filesystem/local
fs/grouping                                                   astring     require_all
fs/restart_on                                                 astring     none
fs/type                                                       astring     service
autofs                                                         dependency
autofs/entities                                               fmri        svc:/system/filesystem/autofs
autofs/grouping                                               astring     optional_all
autofs/restart_on                                             astring     none
autofs/type                                                   astring     service
ntp                                                            dependency
ntp/entities                                                  fmri        svc:/network/ntp
ntp/grouping                                                  astring     optional_all
ntp/restart_on                                                astring     none
ntp/type                                                      astring     service
network                                                        dependency
network/entities                                              fmri        svc:/milestone/network
network/grouping                                              astring     require_all
network/restart_on                                            astring     none
network/type                                                  astring     service
manifestfiles                                                  framework
manifestfiles/lib_svc_manifest_application_pkg_pkg-server_xml astring     /lib/svc/manifest/application/pkg/pkg-server.xml
general                                                        framework
general/entity_stability                                      astring     Unstable
start                                                          method
start/exec                                                    astring     "%{pkg/pkg_root}/lib/svc/method/svc-pkg-server %m"
start/timeout_seconds                                         count       0
start/type                                                    astring     method
stop                                                           method
stop/exec                                                     astring     "%{pkg/pkg_root}/lib/svc/method/svc-pkg-server %m %{restarter/contract}"
stop/timeout_seconds                                          count       30
stop/type                                                     astring     method
tm_common_name                                                 template
tm_common_name/C                                              ustring     "image packaging repository"
svc:/application/pkg/server> exit
# svcadm refresh pkg/server
# svcadm enable pkg/server
# svcs pkg/server
STATE          STIME    FMRI
online         12:32:37 svc:/application/pkg/server:default
# pkg set-publisher -G '*' -g http://xx.xx.xx.xx/ solaris
# pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F http://xx.xx.xx.xx/

3)installing solaris-desktop server
# pkg install solaris-desktop
           Packages to install: 313
            Services to change:  13
       Create boot environment:  No
Create backup boot environment: Yes
DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                            313/313   47366/47366  490.0/490.0  4.2M/s
PHASE                                          ITEMS
Installing new actions                   77564/77564
Updating package state database                 Done
Updating package cache                           0/0
Updating image state                            Done
Creating fast lookup database                   Done
Updating package cache                           1/1
# pkg info solaris-desktop
          Name: group/system/solaris-desktop
       Summary: Oracle Solaris Desktop
   Description: Provides an Oracle Solaris desktop environment
      Category: Meta Packages/Group Packages
         State: Installed
     Publisher: solaris
       Version: 0.5.11
 Build Release: 5.11
        Branch: 0.175.2.0.0.37.4
Packaging Date: April 23, 2014 04:44:42 PM
          Size: 5.46 kB
          FMRI: pkg://solaris/group/system/solaris-desktop@0.5.11,5.11-0.175.2.0.0.37.4:20140423T164442Z

# pkg info entire
          Name: entire
       Summary: Incorporation to lock all system packages to the same build
   Description: This package constrains system package versions to the same
                build.  WARNING: Proper system update and correct package
                selection depend on the presence of this incorporation.
                Removing this package will result in an unsupported system.
      Category: Meta Packages/Incorporations
         State: Installed
     Publisher: solaris
       Version: 0.5.11
 Build Release: 5.11
        Branch: 0.175.2.0.0.37.1
Packaging Date: April 23, 2014 06:15:13 PM
          Size: 5.46 kB
          FMRI: pkg://solaris/entire@0.5.11,5.11-0.175.2.0.0.37.1:20140423T181513Z

# pkg install locale/extra
           Packages to install:   3
            Services to change:   1
       Create boot environment:  No
Create backup boot environment: Yes
DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                                3/3     2820/2820    84.5/84.5  8.1M/s
PHASE                                          ITEMS
Installing new actions                     3502/3502
Updating package state database                 Done
Updating package cache                           0/0
Updating image state                            Done
Creating fast lookup database                   Done
Updating package cache                           1/1

2 comments:

  1. In case you are interested in making cash from your visitors via popup advertisments, you can embed one of the most reputable companies: PopCash.

    ReplyDelete
  2. There is downtime require to create and install the solaris-desktop package

    ReplyDelete