Loading...
Showing posts with label pkg repository. Show all posts
Showing posts with label pkg repository. Show all posts

2010-05-16

Linux Tips: How to add the Repository of VirtualBox 3.1.8 for Ubuntu 10.04 Lucid Lynx

引用・抜粋しまくりのパッチワークで、おそれいりヤス。後にまとめるための覚え書きノート・・・デス (Orz).

最新ニュースを追記しました。 by Baian on Fri May/21/2010,
New "May 18, 2010 VirtualBox 3.2.0 released!"

About VirtualBox: Oracle VM VirtualBox is a general-purpose full virtualizer for x86 hardware that originally created by German software company innotek GmbH, purchased by Sun Microsystems, and now developed by Oracle as part of its family of virtualization products.
It is installed on an existing host operating system; within this application, additional guest operating systems, each known as a Guest OS, can be loaded and run, each with its own virtual environment.
Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software.

1-1. Features of VirtualBox:

  • Modularity. VirtualBox has an extremely modular design with well-defined internal programming interfaces and a client/server design. This makes it easy to control it from several interfaces at once: for example, you can start a virtual machine in a typical virtual machine GUI and then control that machine from the command line, or possibly remotely. VirtualBox also comes with a full Software Development Kit: even though it is Open Source Software, you don't have to hack the source to write a new interface for VirtualBox.

  • Virtual machine descriptions in XML. The configuration settings of virtual machines are stored entirely in XML and are independent of the local machines. Virtual machine definitions can therefore easily be ported to other computers.

  • Guest Additions for Windows, Linux and Solaris. VirtualBox has special software that can be installed inside Windows, Linux and Solaris virtual machines to improve performance and make integration much more seamless. Among the features provided by these Guest Additions are mouse pointer integration and arbitrary screen solutions (e.g. by resizing the guest window). There are also guest additions for OS/2 with somewhat reduced functionality.

  • Shared folders. Like many other virtualization solutions, for easy data exchange between hosts and guests, VirtualBox allows for declaring certain host directories as "shared folders", which can then be accessed from within virtual machines.
A number of extra features are available with the full VirtualBox release only (see the "Editions" page for details):
  • Virtual USB Controllers. VirtualBox implements a virtual USB controller and allows you to connect arbitrary USB devices to your virtual machines without having to install device specific drivers on the host.

  • Remote Desktop Protocol. Unlike any other virtualization software, VirtualBox fully supports the standard Remote Desktop Protocol (RDP). A virtual machine can act as an RDP server, allowing you to "run" the virtual machine remotely on some thin client that merely displays the RDP data.

  • USB over RDP. With this unique feature, a virtual machine that acts as an RDP server can still access arbitrary USB devices that are connected on the RDP client. This way, a powerful server machine can virtualize a lot of thin clients that merely need to display RDP data and have USB devices plugged in.

1-2. Hardware Requirements:

  In order to run VirtualBox on your machine, you need the following:
  • Reasonably powerful x86 hardware. Any recent Intel or AMD processor should do.

  • Memory. Depending on what guest operating systems you want to run, you will need at least 512 MB of RAM (but probably more, and the more the better).
    Basically, you will need whatever your host operating system needs to run comfortably, plus the amount that the guest operating system needs.
    So, if you want to run Windows XP on Windows XP, you probably won't enjoy the experience much with less than 1 GB of RAM.
    If you want to try out Windows Vista in a guest, it will refuse to install if it is given less than 512 MB RAM, so you'll need that for the guest alone, plus the memory your operating system normally needs.

  • Hard disk space. While VirtualBox itself is very lean (a typical installation will only need about 30 MB of hard disk space), the virtual machines will require fairly huge files on disk to represent their own hard disk storage.
    So, to install Windows XP, for example, you will need a file that will easily grow to several GB in size.

  • A supported host operating system. Presently, we support Windows (primarily XP) and many Linux distributions on 32-bit hosts and on 64-bit hosts. Support for Mac OS X and Solaris and OpenSolaris appeared in 1.6.

  • A supported guest operating system. Besides the "user manual", up-to-date information is available at "Status: Guest OSes".
ScreenShot: "Status: Guest OSes"


2. Download and Install VirtualBox for Linux Hosts


Ubuntu 10.04 LTS (Lucid Lynx) Virtualbox
novelldesktop - 2009年12月28日

2-1. VirtualBox package for Ubuntu 10.04

VirtualBox には以下のように2種類のバージョンがあります。

VirtualBox(Non Free版)

個人や教育あるいは評価目的の製品の利用において無料です。

サードパーティのレポジトリや手動でダウンロードしたパッケージを利用した場合、アップグレード時に特別な操作が必要となる場合があります。

To run VirtualBox 3.1.8, you will need to install the VirtualBox package from the repository. Please choose the appropriate package for Ubuntu 10.04 Lucid Lynx.
Note: The package architecture has to match the Linux kernel architecture, that is, if you are running a 64-bit kernel, install the appropriate AMD64 package (it does not matter if you have an Intel or an AMD CPU). Mixed installations (e.g. Debian/Lenny ships an AMD64 kernel with 32-bit packages) are not supported. To install VirtualBox anyway you need to setup a 64-bit chroot environment.

VirtualBox Open Source Edition(OSE)

オープンソース版です。virtualbox-ose パッケージをインストールしてください。

After several years of intensive development, VirtualBox was released as Open Source in January 2007. innotek has chosen to release its VirtualBox source code under the GNU General Public License (GPL).
  • The VirtualBox Open Source Edition (OSE) is the one that has been released under the GPL and comes with complete source code. It is functionally equivalent to the full VirtualBox package, except for a few features that primarily target enterprise customers. This gives us a chance to generate revenue to fund further development of VirtualBox.
  VirtualBox OSE is also available from the Downloads page.

※ オープンソース版では、次の機能が利用できません。
  • Remote Desktop Protocol(RDP)サーバ機能
  • USBサポート
  • USB over RDP

2-2. How to add the repository for Ubuntu 10.04 "Lucid Lynx"

Add one of the following lines to your /etc/apt/sources.list:

 deb http://download.virtualbox.org/virtualbox/debian lucid non-free


The Sun public key for apt-secure can be downloaded here.
You can add this key with:


 $ sudo apt-key add sun_vbox.asc


or combine downloading and registering:


$ sudo add-apt-repository 'deb http://download.virtualbox.org/virtualbox/debian lucid non-free'
$ wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -


The key fingerprint is:

AF45 1228 01DA D613 29EF 9570 DCF9 F87B 6DFB CBAE
Sun Microsystems, Inc. (xVM VirtualBox archive signing key)<info@virtualbox.org>

Then to install VirtualBox, open your terminal and input the following command :


 $ sudo apt-get update
 $ sudo apt-get install virtualbox-3.1


You might want to compare the MD5 SUMS to verify the integrity of downloaded packages.

Note: Ubuntu users might want to install the dkms package (not available on Debian) to ensure that the VirtualBox host kernel modules (vboxdrv, vboxnetflt and vboxnetadp) are properly updated if the linux kernel version changes during the next apt-get upgrade.
The dkms package can be installed through the Synaptic Package manager or through the following command:


 $ sudo apt-get install dkms


Note: about VirtualBox 3.2.0 Beta2:

VirtualBox 3.2 beta 2 is not available in this repository so if you want to download Beta 2, you can do it manually from HERE.
VirtualBox 3.2 Beta 2 comes with support for MacOS X, meaning you can install the original MacOS X in your Linux or Windows VirtualBox.

What's New: May 18, 2010 VirtualBox 3.2.0 released!


"May 18, 2010. The VirtualBox team today released a significant new version of Oracle VM VirtualBox(TM), its high performance, cross-platform virtualization software.
VirtualBox 3.2, the first Oracle branded release since the acquisition of Sun Microsystems, Inc by Oracle Corp. earlier this year, contains many innovative new features which deliver further significant improvements in performance, power and supported guest operating system platforms." Read more ... →  追記:by Baian, on Fri May/21/2010
References

Download and Installation:
Documentation:

2009-09-05

Solaris Multimedia IPS repository

Sunの Brien さんの投稿記事を Sun の Weblog " The Observatory" で読む。
Murray Blakeman さんの自前 "Multimedia リポジトリ" の紹介記事だ。

Murray Blakeman さんのサイトを閲覧して(下図)、
My Notebook; dynabook Satellite J50 に適用して、彼の IPS multimedia pkg をインストールしてみる。

Environment: OpenSolaris preview 2010.02 devel. build on snv_122
    $ uname -a :  SunOS satellite 5.11 snv_122 i86pc i386 i86pc Solaris

Platform: Toshiba dynabook Satellite J50-173L/5X

Solaris Multimedia;  Murray Blakeman's own site



1. IPS repository の追加: サイトのレシオ:384 kbps なのでトラフィックに留意のこと。

   $ pfexec pkg refresh
   $ pfexec pkg set-publisher -O http://ips.homeunix.com:10906 ips.homeunix.com
   $ pfexec pkg refresh --full

   $ pkg publisher  ;  on my dynabook.

    発行元                             タイプ 状態   URI
    opensolaris.org          (優先)     起点   online   http://pkg.opensolaris.org/dev/
    extra                                             起点   online   https://pkg.sun.com/opensolaris/extra/
    ips.homeunix.com                    起点   online   http://ips.homeunix.com:10906/
    osol.contrib                                起点   online   http://pkg.opensolaris.org/contrib/

 パッケージリストの参照
 $ pkg list -a 'pkg://ips.homeunix.com/*'

     NAME (PUBLISHER)                                VERSION      STATE      UFIX
  MBLa52dec (ips.homeunix.com)                  0.7.4           known      ----
  MBLeasytag (ips.homeunix.com)                 2.1             known      ----
  MBLfaac (ips.homeunix.com)                    1.28            known      ----
  MBLfaad2 (ips.homeunix.com)                   2.7             known      ----
  MBLffmpeg (ips.homeunix.com)                  0.5             known      ----
  MBLfribidi (ips.homeunix.com)                 0.10.9          known      ----
  MBLgst-plugin-a52dec (ips.homeunix.com)       0.10.11         known      ----
  MBLgst-plugin-asf (ips.homeunix.com)          0.10.11         known      ----
  MBLgst-plugin-dts (ips.homeunix.com)          0.10.9          known      ----
  MBLgst-plugin-dvd (ips.homeunix.com)          0.10.11         known      ----
  MBLgst-plugin-dvdread (ips.homeunix.com)      0.10.11         known      ----
  MBLgst-plugin-ffmpeg (ips.homeunix.com)       0.10.6          known      ----
  MBLgst-plugin-flv (ips.homeunix.com)          0.10.9          known      ----
  MBLgst-plugin-lame (ips.homeunix.com)         0.10.11         known      ----
  MBLgst-plugin-mad (ips.homeunix.com)          0.10.11         known      ----
  MBLgst-plugin-mp3 (ips.homeunix.com)          0.10.11         known      ----
  MBLgst-plugin-mpeg2 (ips.homeunix.com)        0.10.11         known      ----
  MBLgst-plugin-mpegaudioparse (ips.homeunix.com) 0.10.11         known      ----
  MBLgst-plugin-mpegstream (ips.homeunix.com)   0.10.11         known      ----
  MBLgst-plugin-taglib (ips.homeunix.com)       0.10.11         known      ----
  MBLid3lib (ips.homeunix.com)                  3.8.3           known      ----
  MBLlame (ips.homeunix.com)                    3.98.2          known      ----
  MBLlibdca (ips.homeunix.com)                  0.0.5           known      ----
  MBLlibdv (ips.homeunix.com)                   1.0.0           known      ----
  MBLlibdvdcss (ips.homeunix.com)               1.2.10          known      ----
  MBLlibdvdread (ips.homeunix.com)              4.1.3           known      ----
  MBLlibid3tag (ips.homeunix.com)               0.15.1          known      ----
  MBLlibmad (ips.homeunix.com)                  0.15.1          known      ----
  MBLlibmpeg2 (ips.homeunix.com)                0.5.1           known      ----
  MBLmldonkey (ips.homeunix.com)                3.0.0           known      ----
  MBLmplayer (ips.homeunix.com)                 9.7.16          known      ----
  MBLrecordmysolaris (ips.homeunix.com)         0.3             known      ----
  MBLrecordmysolaris-gtk (ips.homeunix.com)     0.3.3           known      ----
  MBLtaglib (ips.homeunix.com)                  1.5             known      ----
  MBLx264 (ips.homeunix.com)                    0.65.1047       known      ----
  MBLxvidcore (ips.homeunix.com)                1.2.1           known      ----

2. mplayer をインストールしてみる。

$ PKG_CLIENT_TIMEOUT=90 ; export PKG_CLIENT_TIMEOUT 
$ pfexec pkg install -v MBLmplayer
Creating Plan \ 評価前:                
UNEVALUATED:
+pkg://ips.homeunix.com/MBLmplayer@9.7.16,5.11:20090719T101211Z

評価後:       
None -> pkg://ips.homeunix.com/MBLmplayer@9.7.16,5.11:20090719T101211Z
None -> pkg:/developer/gcc/gcc-runtime-432@4.3.2,5.11-0.111:20090818T043712Z
None -> pkg://ips.homeunix.com/MBLxvidcore@1.2.1,5.11:20090604T102217Z
None -> pkg://ips.homeunix.com/MBLlibdv@1.0.0,5.11:20090719T061221Z
None -> pkg://ips.homeunix.com/MBLlibdca@0.0.5,5.11:20090711T090951Z
None -> pkg://ips.homeunix.com/MBLlibmad@0.15.1,5.11:20090620T051118Z
None -> pkg://ips.homeunix.com/MBLfribidi@0.10.9,5.11:20090719T054057Z
None -> pkg://ips.homeunix.com/MBLx264@0.65.1047,5.11:20090604T102014Z
None -> pkg://ips.homeunix.com/MBLlame@3.98.2,5.11:20090604T101928Z
None -> pkg://ips.homeunix.com/MBLfaac@1.28,5.11:20090604T101826Z
Actuators:

None
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                  10/10     143/143   15.71/15.71

PHASE                                        ACTIONS
Install Phase                                317/317
PHASE                                          ITEMS
Reading Existing Index                           8/8
Indexing Packages                              10/10

 
Fig-01: MPlayer 起動顔面 on osol1002 pre. snv_122
 Fig-02: DiVX Video Playing with MPlayer

3. 残りのパッケージをすべてインストールした。

OpenSolaris で Multimedia Video, audio codecs をインストールすることができた。
Murray Blakeman さんに感謝。

※ 引用記事は以下のとおり。
-----------------------------------------------------------------------------------------------------
  Note: The following issue was quoted from " The Observatory"
  About this weblog: The Observatory is a blog for users of OpenSolaris. Tune in here for tips, tricks and more as we explore an open source distribution of the Solaris operating system from Sun Microsystems.

If You Build It, They Will Come:

"The best way to judge the success of any project, open source or not, is the strength of the development community supporting it. Thats why I was happy to come across Murray Blakeman's site today, Solaris Multimedia. Murray runs his own IPS repository with much of the popular multimedia tools the community's been clamoring for. I was hesitant to advertise it here for a couple of reasons. First, Murray only has a 384 kbps link so I'm not sure how much more publicity his site could handle. Second, I don't want to see Murray to suffer the same fate as the the Life with Solaris guys. Ultimately, I decided since he's already out there promoting his site, a little cross-promotion was acceptable. Plus, as I've said, I'm really thankful to the contribution he's making to the OpenSolaris community.
If you decided to try the repository, read his 2009.06 Multimedia Repository post first on how to most effectively use it. "
Posted on: Sep 03, 2009, by Brian Leonard

Murray Blakeman さんによれば、
従来の Multimedia リポジトリ  http://ips.homeunix.com:10000 とは別に、あらたに http://ips.homeunix.com:10906 を立ち上げた。
2009.06 Multimedia Repository
Submitted by Murray Blakeman on Fri, 06/05/2009 - 22:40
* IPS
* Multimedia
* OpenSolaris
* Repository
My current multimedia repository at http://ips.homeunix.com:10000 is still available but there are some issues with the ffmpeg and gstreamer ffmpeg packages in relation to libx264.

I've setup a new repository at http://ips.homeunix.com:10906. Currently I have only made ffmpeg and the gstreamer a52dec plugin available. I'll be adding more over the coming weeks.

The ffmpeg in this repository works perfectly with libx264.

Some important things to note about the repository.
* The speed of my link is only 384Kbps
* In the past, adding packages via the Package Manager GUI didn't work. I've have no issue with the latest version of the Package Manager GUI but your mileage might vary. Do it from the command line if you have issues.
* If you have issues with the installation of the packages it might be worth running "$ PKG_CLIENT_TIMEOUT=90 ; export PKG_CLIENT_TIMEOUT" before installing.
* The gstreamer packages I am making available via the 10906 repository will compliment the Fluendo GStreamer Plugins.
* If you have any issues send me an email (mblakeman@netspace.net.au) or start a thread on the forums.

To add this repository to your OpenSolaris installation, use the following process.
1. Run "pkg set-authority -O http://ips.homeunix.com:10906 ips.homeunix.com" to add repository.
2. Run "pkg refresh --full" to update catalog.
         OpenSoaris 2009.06 以降では  Run $ pfexec pkg set-publisher ・・・コマンドで。

2009-08-21

OpenSolaris 2009.06 pkg Repository Setting Howto

OpenSolaris pkg リポジトリについて


OpenSolaris 2009.06で使用できる主なリポジトリは以下の通り。新しいリポジトリを追加するには、パッケージマネージャのメニューバーの「設定」━→「リポジトリの管理」を使用するか、
 

コマンド行で pkg set-publisher を使用する。
      $ pfexec pkg set-publisher -O origin_uri publisher
 
* http://pkg.opensolaris.org/release/
新規 OpenSolarisユーザにとっての初期設定リポジトリになる。
このリポジトリには、オペレーティングシステムのリリース時点のパッケージのバージョンが含まれており、リリースされた製品内の重大な欠陥またはセキュリティー修正に対処するために必要な新しいバージョンのパッケージのみが含まれている。
サポート契約の要件: サポート契約は必要なし。
* http://pkg.opensolaris.org/dev 
このリポジトリには、開発中の OpenSolaris パッケージが含まれている。
次期バージョンの OpenSolaris 開発用のステージングリポジトリとなる。 開発サイクルに合わせて頻繁にアップデートされるので、最新の技術を評価することが可能である。 
サポート契約の要件: サポート契約は必要なし。
* http://pkg.opensolaris.org/contrib/
コミュニティの会員がバイナリ形式のソフトウエアを配布可能にするリポジトリである。また、将来 release リポジトリから配布される予定のバイナリの評価版なども置かれている。 
サポート契約の要件: サポート契約は必要なし。
* http://pkg.opensolaris.org/pending/ 
このリポジトリには、pkg.opensolaris.org/contrib リポジトリに公開する前に評価する必要があるパッケージが保持さる。このリポジトリに含まれるパッケージにはさらにテストが必要であり、一般に使用することは勧められない。
サポート契約の要件: サポート契約は必要なし。
* https://pkg.sun.com/opensolaris/extra
sun.com がホストする新しいリポジトリで、ライセンスのため再頒布できないソフトウェアを提供している。たとえば、VirtualBox や Firefox 用 Flash プラグインなどがある。
サポート契約の要件: サポート契約は必要ないが、特定のライセンス条件の受け入れが必要。ユーザーは、更新された証明書を自分のパッケージマネージャーに渡して承認を受けることにより、このリポジトリに無償でアクセスすることができる。
(方法については、次の『OpenSolaris extra リポジトリの利用方法』を参照のこと。 ↓)
* https://pkg.sun.com/opensolaris/support
このリポジトリは、リリースされた製品内の欠陥の検出および対処に基づいて、新しいバージョンのパッケージを使用して定期的に更新される。
*このリポジトリには、サポート契約と、アクセスのための SSL 証明書が必要である。
OpenSolaris extra リポジトリの利用方法
ユーザーは、更新された証明書を自分のパッケージマネージャーに渡して承認を受けることにより、このリポジトリに無償でアクセスできる。
手順
   1. キーと証明書をダウンロードするために http://pkg.sun.com/register/  にアクセスし、ログイン画面からログインする。 Sun のオンラインアカウントを取得済みの方は、ID とパスワードを入力する。 (ダウンロードセンター等と同じアカウントである。) もし、アカウントを持っていない場合は、こちらより登録(無料)されたい。

   2.OpenSolaris extra をチェックし、"Sunmit" ボタンをクリックする。
 
   3.ライセンス内容が表示されるので、内容を確認して "Decline" か "Accept" をクリックする。 ("Decline" した場合は、ここで終了。)
   4.証明書(OpenSolaris_extras.key.pem)とキー(OpenSolaris_extras.certificate.pem)をダウンロードし、指示に従い証明書をインストールする。
キーと証明書をダウンロードしたらターミナルを開いて下記のコマンドを実行する。
(キーと証明書は、$HOME/Desktopにダウンロードされているものとする。)


  $ pfexec mkdir -m 0755 -p /var/pkg/ssl
  $ pfexec chmod 755 /var/pkg/ssl
  $ pfexec cp -i ~/Desktop/OpenSolaris_extras.key.pem /var/pkg/ssl
  $ pfexec cp -i ~/Desktop/OpenSolaris_extras.certificate.pem /var/pkg/ssl


パッケージマネージャのリポジトリに extra を追加する。

  $ pfexec pkg set-publisher \
       -k /var/pkg/ssl/OpenSolaris_extras.key.pem \
       -c /var/pkg/ssl/OpenSolaris_extras.certificate.pem \
       -O https://pkg.sun.com/opensolaris/extra/ extra


pkg コマンドを使って extra の一覧を表示する。

  $ pkg list -a 'pkg://extra/*'
  NAME (PUBLISHER)                              VERSION         STATE      UFIX
  SUNWadmj (extra)                              0.5.11-0.111    known      ----
  SUNWjsnmp (extra)                             0.5.11-0.111    known      ----
  SUNWwbapi (extra)                             0.5.11-0.111    known      ----
  SUNWwbcou (extra)                             0.5.11-0.111    known      ----
  SUNWwbdev (extra)                             0.5.11-0.111    known      ----
  develop/java/javafx-sdk (extra)               1.2.0.233-0.111
known  ----
  service/compute/sungridengine (extra)         6.2.2-0.111     known      ----
  service/compute/sungridengine/arco (extra)    6.2.2-0.111     known      ----
  service/compute/sungridengine/domainmanager (extra) 6.2.2-0.111     known      ----
  system/font/truetype/ttf-fonts-core (extra)   1.0-0.111      
known  ----
  system/iiim/ja/atok (extra)                   17-0.111       
known  ----
  system/iiim/ja/wnn8 (extra)                   8-0.111         known      ----
  virtualbox (extra)                            3.0.4-0.101     known      ----
  virtualbox/kernel (extra)                     3.0.4-0.101     known      ----
  web/firefox/plugin/flash (extra)              10.0.22.87-0.111
known  ----


これで、パッケージマネージャからextraリポジトリを指定しパッケージをインストールすることができる。

On My OpenSolaris 2009.06, Repository Settings as follows:
$ pfexec pkg publisher
発行元                             タイプ 状態   URI
opensolaris.org          (優先)     起点   online   http://pkg.opensolaris.org/release/
extra                                 起点   online   https://pkg.sun.com/opensolaris/extra/
osol.contrib                          起点   online   http://pkg.opensolaris.org/contrib/

Reference:
   User Reference Manual : pkg(1)
   OpenSolaris 2009.06 miniBook (Japanese)
   OpenSolaris 2009.06 Image Packaging System ガイド - 第7章 リポジトリのキーと証明書の使用