Lukman Prihandika Blog's

Nrimo ing pandum, urip wis ono sing ngatur

Cara Install Paket dengan Blastwave di Solaris 10

leave a comment »

Tulisan ini menerangkan bagaimana cara kita agar menginstall paket langsung direct ke repositori internet yaitu ke server blastwave. Seperti jika kita menggunakan aptitude install di debian base. Ikuti step by step di bawah ini (saya menggunakan mesin Sun Fire v240 OS Solaris 10 SPARC)

bash-3.00# uname -a
SunOS Blackjack 5.10 Generic_141444-09 sun4u sparc SUNW,Sun-Fire-V240
bash-3.00# cat /etc/release
Solaris 10 10/09 s10s_u8wos_08a SPARC
Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
Use is subject to license terms.
Assembled 16 September 2009

Step 1,

Install dulu pkgutil seperti dibawah ini

bash-3.00# pkgadd -d http://blastwave.network.com/csw/pkgutil_`/sbin/uname -p`.pkg

## Downloading…
…………..25%…………..50%…………..75%…………..100%
## Download Complete

The following packages are available:
1  CSWpkgutil     pkgutil – Installs Solaris packages easily
(sparc) 1.6.1,REV=2009.06.15

Select package(s) you wish to process (or ‘all’ to process
all packages). (default: all) [?,??,q]:

Processing package instance <CSWpkgutil> from <http://blastwave.network.com/csw/pkgutil_sparc.pkg&gt;

pkgutil – Installs Solaris packages easily(sparc) 1.6.1,REV=2009.06.15

Please see /opt/csw/share/doc/pkgutil/license for license information.

## Processing package information.
## Processing system information.
10 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of <CSWpkgutil> [y,n,?] y

Installing pkgutil – Installs Solaris packages easily as <CSWpkgutil>

## Installing part 1 of 1.
/etc/opt/csw/pkgutil.conf.CSW
/opt/csw/bin/bldcat
/opt/csw/bin/chkcat
/opt/csw/bin/pkgutil
/opt/csw/etc/pkgutil.conf.CSW
/opt/csw/libexec/pkgutil/wget
/opt/csw/share/doc/pkgutil/license
/opt/csw/share/doc/pkgutil/readme
/opt/csw/share/man/man1/bldcat.1
/opt/csw/share/man/man1/chkcat.1
/opt/csw/share/man/man1/pkgutil.1
/var/opt/csw/pkgutil/admin.CSW
[ verifying class <none> ]
## Executing postinstall script.

Installation of <CSWpkgutil> was successful.

bash-3.00# mkdir /etc/opt/csw/
bash-3.00# cp -p /opt/csw/etc/pkgutil.conf.CSW /etc/opt/csw/pkgutil.conf

Step 2,

Download software catalognya dulu

bash-3.00# /opt/csw/bin/pkgutil –catalog
Fetching new catalog http://blastwave.network.com/csw/unstable/sparc/5.10 if available…
–12:13:40–  http://blastwave.network.com/csw/unstable/sparc/5.10/catalog
=> `/var/opt/csw/pkgutil/catalog.blastwave.network.com_csw_unstable_sparc_5.10′
Resolving blastwave.network.com… 64.79.150.209
Connecting to blastwave.network.com|64.79.150.209|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 385,355 (376K) [text/plain]

100%[================================================================================================================>] 385,355      131.24K/s

12:13:43 (130.90 KB/s) – `/var/opt/csw/pkgutil/catalog.blastwave.network.com_csw_unstable_sparc_5.10′ saved [385355/385355]

Step 3,

Install GNU GPG

bash-3.00# /opt/csw/bin/gpg –keyserver pgp.mit.edu –recv-keys A1999E90
gpg: directory `//.gnupg’ created
gpg: new configuration file `//.gnupg/gpg.conf’ created
gpg: WARNING: options in `//.gnupg/gpg.conf’ are not yet active during this run
gpg: keyring `//.gnupg/secring.gpg’ created
gpg: keyring `//.gnupg/pubring.gpg’ created
gpg: requesting key A1999E90 from hkp server pgp.mit.edu
gpg: //.gnupg/trustdb.gpg: trustdb created
gpg: key A1999E90: public key “Blastwave Software (Blastwave.org Inc.) <software@blastwave.org>” imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1

Verifikasi dahulu jika kita sudah mempunyai key :

bash-3.00# /opt/csw/bin/gpg –list-keys
//.gnupg/pubring.gpg
——————–
pub   1024D/A1999E90 2008-08-17 [expires: 2011-08-17]
uid                  Blastwave Software (Blastwave.org Inc.) <software@blastwave.org>
sub   2048g/E4845389 2008-08-17 [expires: 2011-08-17]

Edit konfigurasi key untuk trust :

bash-3.00# /opt/csw/bin/gpg –edit-key A1999E90
gpg (GnuPG) 1.4.9; Copyright (C) 2008 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

pub  1024D/A1999E90  created: 2008-08-17  expires: 2011-08-17  usage: SC
trust: unknown       validity: unknown
sub  2048g/E4845389  created: 2008-08-17  expires: 2011-08-17  usage: E
[ unknown] (1). Blastwave Software (Blastwave.org Inc.) <software@blastwave.org>

Invalid command  (try “help”)

Command> Trust
pub  1024D/A1999E90  created: 2008-08-17  expires: 2011-08-17  usage: SC
trust: unknown       validity: unknown
sub  2048g/E4845389  created: 2008-08-17  expires: 2011-08-17  usage: E
[ unknown] (1). Blastwave Software (Blastwave.org Inc.) <software@blastwave.org>

Please decide how far you trust this user to correctly verify other users’ keys
(by looking at passports, checking fingerprints from different sources, etc.)

1 = I don’t know or won’t say
2 = I do NOT trust
3 = I trust marginally
4 = I trust fully
5 = I trust ultimately
m = back to the main menu

Your decision? 5
Do you really want to set this key to ultimate trust? (y/N) y

pub  1024D/A1999E90  created: 2008-08-17  expires: 2011-08-17  usage: SC
trust: ultimate      validity: unknown
sub  2048g/E4845389  created: 2008-08-17  expires: 2011-08-17  usage: E
[ unknown] (1). Blastwave Software (Blastwave.org Inc.) <software@blastwave.org>
Please note that the shown key validity is not necessarily correct
unless you restart the program.

Command> quit

Berikutnya edit konfigurasi pkgutil.conf

bash-3.00# vi /etc/opt/csw/pkgutil.conf

# Configuration file for pkgutil

# $Id: pkgutil.conf 7 2009-03-07 18:48:54Z bonivart $

# Master configuration file is placed in /opt/csw/etc. Place a pkgutil.conf
# file in /etc/opt/csw if you want a local override setting-by-setting

# Nothing below is mandatory to change, pkgutil will use the default values
# noted below for each option unless something is uncommented

# Mirror to use for downloads
# See http://www.blastwave.org/mirrors.php for alternative mirrors
# Default: http://blastwave.network.com/csw/unstable
#mirror=http://blastwave.network.com/csw/unstable

# Solaris 10: If you wish to limit pkgutil to installing packages
# only to the global zone, then uncomment this line. Note that pkgrm does not
# have the same option
# WARNING: do not modify this unless you know what you’re doing
# Default: blank
#pkgaddopts=-G

# Flags for use with wget, e.g. “-nv” for less verbose or “-q” for quiet
# WARNING: do not modify this unless you know what you’re doing
# Default: blank
#wgetopts=-q

# To enable use of gpg or md5, uncomment these
# NOTE: it doesn’t make sense to use md5 but not gpg so your options should be:
#       1. both disabled, 2. gpg enabled, 3. both enabled
# Default: false, false
use_gpg=true
use_md5=true

Langkah terakhir adalah sinkronisasi catalog server blastwave

bash-3.00# /opt/csw/bin/pkgutil –catalog
Fetching new catalog http://blastwave.network.com/csw/unstable/sparc/5.10 if available…
–13:30:57–  http://blastwave.network.com/csw/unstable/sparc/5.10/catalog
=> `/var/opt/csw/pkgutil/catalog.blastwave.network.com_csw_unstable_sparc_5.10′
Resolving blastwave.network.com… 64.79.150.209
Connecting to blastwave.network.com|64.79.150.209|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 385,355 (376K) [text/plain]

100%[================================================================================================================>] 385,355      131.26K/s

13:31:00 (130.98 KB/s) – `/var/opt/csw/pkgutil/catalog.blastwave.network.com_csw_unstable_sparc_5.10′ saved [385355/385355]

Checking catalog integrity with gpg.
gpg: Signature made Thu Dec 31 06:19:20 2009 WIT using DSA key ID A1999E90
gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: next trustdb check due at 2011-08-17
gpg: Good signature from “Blastwave Software (Blastwave.org Inc.) <software@blastwave.org>”

Step 4,

Buka browser untuk mengetahui software apa saja yang sudah tersedia di blastwave di http://www.blastwave.org

dibagian software anda bisa lihat misal saya akan menginstall bittorrent, dicatalog terlihat nama software adalah CSWbittorrent. Maka langsung saja kita install dengan perintah

bash-3.00# pkg-get -i CSWbittorrent
No existing install of CSWbittorrent found. Installing…
Trying http://ibiblio.org/pub/packages/solaris/opencsw/current/sparc/5.10/bittorrent-4.0.4-SunOS5.8-all-CSW.pkg.gz
–13:38:44–  http://ibiblio.org/pub/packages/solaris/opencsw/current/sparc/5.10/bittorrent-4.0.4-SunOS5.8-all-CSW.pkg.gz
=> `bittorrent-4.0.4-SunOS5.8-all-CSW.pkg.gz’
Resolving ibiblio.org… 152.46.7.80
Connecting to ibiblio.org|152.46.7.80|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 157,729 (154K) [text/plain]

100%[================================================================================================================>] 157,729       62.07K/s

13:38:47 (61.94 KB/s) – `bittorrent-4.0.4-SunOS5.8-all-CSW.pkg.gz’ saved [157729/157729]
…….
…….
/opt/csw/share/BitTorrent/winsetup.py
/opt/csw/share/doc/BitTorrent/README
[ verifying class <none> ]

Installation of <CSWbittorrent> was successful.

Ref :

http://www.blastwave.org/jir/blastwave.fam

Written by brokenz1

January 13, 2010 at 7:43 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: