Index ¦ Archives ¦ Atom

OpenIndiana hipster 2014.1

I haven't been paying close attention the last few weeks and was surprised to discover that hipster stopped updating. So, I finally had time to go read the mailing list and discovered that they'd moved to a hipster-2014.1 repository that contains just the most recent packages.

Needed to set up my boxes at work to mirror this repository, so I created a new local mirror:

# mkdir /data/pkg/hipster-2014.1
# pkgrepo create /data/pkg/hipster-2014.1
# pkgrecv -s http://pkg.openindiana.org/hipster-2014.1/ -d /data/pkg/hipster-2014.1 '*'
# svccfg -s pkg/server add hipster-2014-1
# svccfg -s pkg/server:hipster-2014-1 addpg pkg application
# svccfg -s pkg/server:hipster-2014-1 setprop pkg/port=10087
# svccfg -s pkg/server:hipster-2014-1 setprop pkg/inst_root=/data/pkg/hipster-2014.1
# svccfg -s pkg/server:hipster-2014-1 addpg general framework
# svccfg -s pkg/server:hipster-2014-1 addpropvalue general/complete astring: hipster-2014.1
# svccfg -s pkg/server:hipster-2014-1 addpropvalue general/enabled boolean: true
# svccfg -s pkg/server:hipster-2014-1 setprop pkg/readonly=true
# svccfg -s pkg/server:hipster-2014-1 setprop pkg/threads=100
# svcadm refresh application/pkg/server:hipster-2014-1
# svcadm enable application/pkg/server:hipster-2014-1

Then, I have to fix apache on the box by editing proxy.conf:

# vi /etc/apache2/2.2/conf.d/proxy.conf

I add the following line:

ProxyPass /hipster-2014.1 http://pkg.example.com:10087 nocanon

Making the file look like:

ProxyRequests Off
ProxyVia Block
ProxyStatus On
ProxyPreserveHost Off
ProxyPass /dev http://pkg.example.com:10081 nocanon
ProxyPass /sfe http://pkg.example.com:10082 nocanon
ProxyPass /sfe-encumbered http://pkg.example.com:10083 nocanon
ProxyPass /local http://pkg.example.com:10084 nocanon
ProxyPass /legacy http://pkg.example.com:10085 nocanon
ProxyPass /hipster http://pkg.example.com:10086 nocanon
ProxyPass /hipster-2014.1 http://pkg.example.com:10087 nocanon

AllowEncodedSlashes NoDecode

Restart apache, set the publisher, and update:

# svcadm restart svc:/network/http:apache22
# pkg set-publisher -p http://pkg.example.com/hipster-2014.1 openindiana.org
pkg set-publisher:
  Updated publisher(s): openindiana.org
# pkg set-publisher -p http://pkg.example.com/hipster-2014.1 openindiana.org
pkg set-publisher:
  Updated publisher(s): openindiana.org
# pkg image-update
           Packages to install:   3
            Packages to update: 487
           Mediators to change:   2
       Create boot environment: Yes
Create backup boot environment:  No

DOWNLOAD                               PKGS          FILES    XFER (MB)   SPEED
Completed                           490/490      7415/7415  674.6/674.6 13.5M/s

PHASE                                          ITEMS
Removing old actions                       2682/2682
Installing new actions                     3920/3920
Updating modified actions                10263/10263
Updating package state database                 Done
Updating package cache                       487/487
Updating image state                            Done
Creating fast lookup database                   Done
Reading search index                            Done
Building new search index                  1236/1236

A clone of openindiana-41 exists and has been updated and activated.
On the next boot the Boot Environment openindiana-42 will be
mounted on '/'. Reboot when ready to switch to this updated BE.

---------------------------------------------------------------------------
NOTE: Please review release notes posted at:

http://wiki.openindiana.org/display/oi/oi_hipster
---------------------------------------------------------------------------

And reboot, and then you have a new hipster box.

© Scott McClung. Built using Pelican. Theme by Giulio Fidente on github.