2009年12月2日星期三

OpenSolaris下mount iso文件 和安裝包

如何在openSolaris下mount一個iso的鏡像文件呢?

第一步,決定那個設備用於掛接這個文件

root@opensolaris:~/Downloads# lofiadm -a sol-nv-b125-x86-dvd.iso
/dev/lofi/1

root@opensolaris:~/Downloads#

第二步:

root@opensolaris:~/Downloads# mkdir /mnt2
root@opensolaris:~/Downloads# mount -F hsfs /dev/lofi/1 /mnt2

root@opensolaris:~/Downloads# cd /mnt2
root@opensolaris:/mnt2# ls
autorun.inf  Copyright                    License     Solaris_11
autorun.sh   installer                    README.txt  Sun_HPC_ClusterTools
boot         JDS-THIRDPARTYLICENSEREADME  sddtool
root@opensolaris:/mnt2#

成功了,繼續

root@opensolaris:/mnt2# cd Solaris_11/
root@opensolaris:/mnt2/Solaris_11# ls
Docs  Misc  Patches  Product  Tools
root@opensolaris:/mnt2/Solaris_11# cd Product/
root@opensolaris:/mnt2/Solaris_11/Product# cp -rf SUNWjhrt SUNWjhdev SUNWj5dev SUNWj5rt SUNWj6rt SUNWjato  SUNWmconr SUNWmcon SUNWmcos SUNWmcosx SUNWmctag SUNWmfrun SUNWzfsgr SUNWzfsgu /var/spool/pkg

root@opensolaris:~# pkgadd

The following packages are available:
  1  SUNWj5dev     JDK 5.0 Dev. Tools (1.5.0_20)
                   (i386) 1.5.0,REV=2004.12.06.22.53
  2  SUNWj5rt      JDK 5.0 Runtime Env. (1.5.0_20)
                   (i386) 1.5.0,REV=2004.12.06.22.53
  3  SUNWj6rt      JDK 6.0 Runtime Env. (1.6.0_15)
                   (i386) 1.6.0,REV=2006.11.29.05.03
  4  SUNWjato      Java Studio Enterprise Web Application Framework
                   (all) 2.1.5,REV=2006.07.18.09.36
  5  SUNWjhdev     JavaHelp Development Utilities
                   (all) 2.0,REV=2008.10.08
  6  SUNWjhrt      JavaHelp Runtime
                   (all) 2.0,REV=2008.10.08
  7  SUNWmcon      Sun Java(TM) Web Console 3.1 (Core)
                   (i386) 3.1,REV=2008.08.25.16.44
  8  SUNWmconr     Sun Java(TM) Web Console 3.1 (Root)
                   (i386) 3.1,REV=2008.08.25.16.44
  9  SUNWmcos      Implementation of Sun Java(TM) Web Console (3.1) services
                   (i386) 3.1,REV=2008.08.25.16.44
10  SUNWmcosx     Implementation of Sun Java(TM) Web Console (3.1) services
                   (i386) 3.1,REV=2008.08.25.16.44

... 4 more menu choices to follow;
<RETURN> for more choices, <CTRL-D> to stop display:

11  SUNWmctag     Sun Java(TM) Web Console 3.1 (Tags & Components)
                   (i386) 3.1,REV=2008.08.25.16.44
12  SUNWmfrun     Motif RunTime Kit
                   (i386) 2.1.4,REV=10.2009.09.07
13  SUNWzfsgr     ZFS Administration for Sun Java(TM) Web Console (Root)
                   (i386) 1.0,REV=2009.09.16.20.27
14  SUNWzfsgu     ZFS Administration for Sun Java(TM) Web Console (Usr)
                   (i386) 1.0,REV=2009.09.16.20.27

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

Processing package instance <SUNWj5dev> from </var/spool/pkg>

JDK 5.0 Dev. Tools (1.5.0_20)(i386) 1.5.0,REV=2004.12.06.22.53
Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Using </usr> as the package base directory.
## Processing package information.
## Processing system information.
   2 package pathnames are already properly installed.
## Verifying package dependencies.
WARNING:
    The <SUNWj5rt> package "JDK 5.0 Runtime Env.
    (1.5.0_01)" is a prerequisite package and should be
    installed.
WARNING:
    The <SUNWmfrun> package "Motif RunTime Kit" is a
    prerequisite package and should be installed.

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

一路y下去了

Installation of <SUNWzfsgu> was successful.

root@opensolaris:~# svccfg
svc:> select system/webconsole
svc:/system/webconsole> setprop options/tcp_listen=true
svc:/system/webconsole> quit

root@opensolaris:~# /usr/sbin/smcwebserver restart
Restarting Sun Java(TM) Web Console Version 3.1 ...
The console is running

root@opensolaris:~# netstat -a|grep 6789
      *.6789               *.*                0      0 49152      0 LISTEN
      *.6789                            *.*                             0      0 49152      0 LISTEN
root@opensolaris:~#

成功了

没有评论:

发表评论