SSブログ

Oracle Directory Server Enterprise Edition(Linux)をインストールしてみよう[No.1] [DSEE7]


2011年6月にWindows版のOracle Directory Server Enterprise Editionのインストールについて書きました。
今回はLinux版のインストールについて書きます。

インストールについては、以下のサイトを参考にさせていただきました。
Oracle Directory Server Enterprise Edition Installation Guide 11g Release 1 (11.1.1.5.0)
Oracle Directory Server Enterprise Edition 11g 11.1.1.5 Installation Steps

インストールの前に構築するための諸条件を書きます。
■ソフトウェア
VirtualBox 4.1.18
CentOS 6.3 64bit
Oracle Directory Server Enterprise Edition 11.1.1.5.0(x86-64)
Java SE Development Kit 7
Tomcat 7.0.29

■環境
ホスト名 dsee7m1
FQDN名 dsee7m1.local.localdomain.com
IPadress 192.168.0.81/255.255.255.0
InstallDir /mps
Port LDAP(389)、LDAPS(636)、DSCC(3998)、CACAO(21162)、HTTP(8080)
ユーザー assimane
実行ユーザー root

予めパスワードは決めておいてください。
まず、OSをインストールします。
OSは日本語を選択し、Minimal Desktopでインストールを行います。
インストール後半では、assimaneユーザーを作成します。

コマンドは主にTeraTermからSSHでassimaeでログイン後、rootにsuして実施します。
rootになります。
[assimane@dsee7m1 ~]$ su -
パスワード:********
[root@dsee7m1 ~]#

SELinuxの無効化します。
(セキュリティ管理のモジュールですが、アクセス制限などでトラブルになりやすいので無効化)
[root@dsee7m1 ~]# getenforce
Enforcing

[root@dsee7m1 ~]# vi /etc/selinux/config
(SELINUX=disabledを追加)
[root@dsee7m1 ~]# cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
#SELINUX=enforcing
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted


リブートします。
[root@dsee7m1 ~]# reboot

rootになって、SELinuxの確認をします。
[assimane@dsee7m1 ~]$ su -
パスワード:********

[root@dsee7m1 ~]# getenforce
Disabled

hostsファイルを更新します。
[root@dsee7m1 tmp]# vi /etc/hosts
(以下2行に更新)
127.0.0.1   localhost
192.168.0.81   dsee7m1   dsee7m1.local.localdomain.com

[root@dsee7m1 tmp]# cat /etc/hosts
127.0.0.1   localhost
192.168.0.81   dsee7m1   dsee7m1.local.localdomain.com

Guest Additionsをインストールするためgccをインストールします。
[root@dsee7m1 ~]# yum install gcc
Loaded plugins: fastestmirror, refresh-packagekit, security
base                                                                                                               | 3.7 kB     00:00
base/primary_db                                                                                                    | 4.5 MB     00:07
extras                                                                                                             | 3.0 kB     00:00
extras/primary_db                                                                                                  | 6.3 kB     00:00
updates                                                                                                            | 3.5 kB     00:00
updates/primary_db                                                                                                 | 1.2 MB     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.6-4.el6 will be installed
--> Processing Dependency: cpp = 4.4.6-4.el6 for package: gcc-4.4.6-4.el6.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.6-4.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.6-4.el6.x86_64
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package cpp.x86_64 0:4.4.6-4.el6 will be installed
--> Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.6-4.el6.x86_64
---> Package glibc-devel.x86_64 0:2.12-1.80.el6_3.3 will be installed
--> Processing Dependency: glibc-headers = 2.12-1.80.el6_3.3 for package: glibc-devel-2.12-1.80.el6_3.3.x86_64
--> Processing Dependency: glibc = 2.12-1.80.el6_3.3 for package: glibc-devel-2.12-1.80.el6_3.3.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.80.el6_3.3.x86_64
--> Running transaction check
---> Package glibc.x86_64 0:2.12-1.80.el6 will be updated
--> Processing Dependency: glibc = 2.12-1.80.el6 for package: glibc-common-2.12-1.80.el6.x86_64
---> Package glibc.x86_64 0:2.12-1.80.el6_3.3 will be an update
---> Package glibc-headers.x86_64 0:2.12-1.80.el6_3.3 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.80.el6_3.3.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.80.el6_3.3.x86_64
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
--> Running transaction check
---> Package glibc-common.x86_64 0:2.12-1.80.el6 will be updated
---> Package glibc-common.x86_64 0:2.12-1.80.el6_3.3 will be an update
---> Package kernel-headers.x86_64 0:2.6.32-279.2.1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================================
 Package                            Arch                       Version                                  Repository                   Size
==========================================================================================================================================
Installing:
 gcc                                x86_64                     4.4.6-4.el6                              base                         10 M
Installing for dependencies:
 cloog-ppl                          x86_64                     0.15.7-1.2.el6                           base                         93 k
 cpp                                x86_64                     4.4.6-4.el6                              base                        3.7 M
 glibc-devel                        x86_64                     2.12-1.80.el6_3.3                        updates                     970 k
 glibc-headers                      x86_64                     2.12-1.80.el6_3.3                        updates                     601 k
 kernel-headers                     x86_64                     2.6.32-279.2.1.el6                       updates                     1.9 M
 mpfr                               x86_64                     2.4.1-6.el6                              base                        157 k
 ppl                                x86_64                     0.10.2-11.el6                            base                        1.3 M
Updating for dependencies:
 glibc                              x86_64                     2.12-1.80.el6_3.3                        updates                     3.8 M
 glibc-common                       x86_64                     2.12-1.80.el6_3.3                        updates                      14 M

Transaction Summary
==========================================================================================================================================
Install       8 Package(s)
Upgrade       2 Package(s)

Total download size: 37 M
Is this ok [y/N]: y
Downloading Packages:
(1/10): cloog-ppl-0.15.7-1.2.el6.x86_64.rpm                                                                        |  93 kB     00:00
(2/10): cpp-4.4.6-4.el6.x86_64.rpm                                                                                 | 3.7 MB     00:15
(3/10): gcc-4.4.6-4.el6.x86_64.rpm                                                                                 |  10 MB     00:08
(4/10): glibc-2.12-1.80.el6_3.3.x86_64.rpm                                                                         | 3.8 MB     00:01
(5/10): glibc-common-2.12-1.80.el6_3.3.x86_64.rpm                                                                  |  14 MB     00:05
(6/10): glibc-devel-2.12-1.80.el6_3.3.x86_64.rpm                                                                   | 970 kB     00:00
(7/10): glibc-headers-2.12-1.80.el6_3.3.x86_64.rpm                                                                 | 601 kB     00:00
(8/10): kernel-headers-2.6.32-279.2.1.el6.x86_64.rpm                                                               | 1.9 MB     00:00
(9/10): mpfr-2.4.1-6.el6.x86_64.rpm                                                                                | 157 kB     00:00
(10/10): ppl-0.10.2-11.el6.x86_64.rpm                                                                              | 1.3 MB     00:00
------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                     1.1 MB/s |  37 MB     00:33
警告: rpmts_HdrFromFdno: ヘッダ V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
 Userid : CentOS-6 Key (CentOS 6 Official Signing Key) 
 Package: centos-release-6-3.el6.centos.9.x86_64 (@anaconda-CentOS-201207061011.x86_64/6.3)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : glibc-common-2.12-1.80.el6_3.3.x86_64                                                                                 1/12
  Updating   : glibc-2.12-1.80.el6_3.3.x86_64                                                                                        2/12
  Installing : mpfr-2.4.1-6.el6.x86_64                                                                                               3/12
  Installing : cpp-4.4.6-4.el6.x86_64                                                                                                4/12
  Installing : ppl-0.10.2-11.el6.x86_64                                                                                              5/12
  Installing : cloog-ppl-0.15.7-1.2.el6.x86_64                                                                                       6/12
  Installing : kernel-headers-2.6.32-279.2.1.el6.x86_64                                                                              7/12
  Installing : glibc-headers-2.12-1.80.el6_3.3.x86_64                                                                                8/12
  Installing : glibc-devel-2.12-1.80.el6_3.3.x86_64                                                                                  9/12
  Installing : gcc-4.4.6-4.el6.x86_64                                                                                               10/12
  Cleanup    : glibc-common-2.12-1.80.el6.x86_64                                                                                    11/12
  Cleanup    : glibc-2.12-1.80.el6.x86_64                                                                                           12/12
  Verifying  : glibc-2.12-1.80.el6_3.3.x86_64                                                                                        1/12
  Verifying  : glibc-common-2.12-1.80.el6_3.3.x86_64                                                                                 2/12
  Verifying  : gcc-4.4.6-4.el6.x86_64                                                                                                3/12
  Verifying  : glibc-devel-2.12-1.80.el6_3.3.x86_64                                                                                  4/12
  Verifying  : kernel-headers-2.6.32-279.2.1.el6.x86_64                                                                              5/12
  Verifying  : mpfr-2.4.1-6.el6.x86_64                                                                                               6/12
  Verifying  : glibc-headers-2.12-1.80.el6_3.3.x86_64                                                                                7/12
  Verifying  : cpp-4.4.6-4.el6.x86_64                                                                                                8/12
  Verifying  : ppl-0.10.2-11.el6.x86_64                                                                                              9/12
  Verifying  : cloog-ppl-0.15.7-1.2.el6.x86_64                                                                                      10/12
  Verifying  : glibc-2.12-1.80.el6.x86_64                                                                                           11/12
  Verifying  : glibc-common-2.12-1.80.el6.x86_64                                                                                    12/12

Installed:
  gcc.x86_64 0:4.4.6-4.el6

Dependency Installed:
  cloog-ppl.x86_64 0:0.15.7-1.2.el6            cpp.x86_64 0:4.4.6-4.el6                       glibc-devel.x86_64 0:2.12-1.80.el6_3.3
  glibc-headers.x86_64 0:2.12-1.80.el6_3.3     kernel-headers.x86_64 0:2.6.32-279.2.1.el6     mpfr.x86_64 0:2.4.1-6.el6
  ppl.x86_64 0:0.10.2-11.el6

Dependency Updated:
  glibc.x86_64 0:2.12-1.80.el6_3.3                                 glibc-common.x86_64 0:2.12-1.80.el6_3.3

Complete!



Guest Additionsをインストールするためkernel-devel-2.6.32-279.el6.x86_64をインストールします。
[root@dsee7m1 ~]# yum install kernel-devel-2.6.32-279.el6.x86_64
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
 * base: ftp.iij.ad.jp
 * extras: ftp.iij.ad.jp
 * updates: ftp.iij.ad.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package kernel-devel.x86_64 0:2.6.32-279.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================================
 Package                            Arch                         Version                                 Repository                  Size
==========================================================================================================================================
Installing:
 kernel-devel                       x86_64                       2.6.32-279.el6                          base                       7.6 M

Transaction Summary
==========================================================================================================================================
Install       1 Package(s)

Total download size: 7.6 M
Installed size: 23 M
Is this ok [y/N]: y
Downloading Packages:
kernel-devel-2.6.32-279.el6.x86_64.rpm                                                                             | 7.6 MB     00:07
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : kernel-devel-2.6.32-279.el6.x86_64                                                                                     1/1
  Verifying  : kernel-devel-2.6.32-279.el6.x86_64                                                                                     1/1

Installed:
  kernel-devel.x86_64 0:2.6.32-279.el6

Complete!



VirtualBoxのデバイスからGuest Additionsのインストールをクリックします。
lds1-01.png

フォルダを開くを選んで、OKをクリックします。
lds1-02.png

Guest Additionsのインストールを実行します。
[root@dsee7m1 ~]# sh '/media/VBOXADDITIONS_4.1.18_78361/VBoxLinuxAdditions.run'
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.1.18 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing existing VirtualBox DKMS kernel modules           [  OK  ]
Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module                   [  OK  ]
Building the shared folder support module                  [  OK  ]
Building the OpenGL support module                         [失敗]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions              [  OK  ]
Installing the Window System drivers
Installing X.Org Server 1.10 modules                       [  OK  ]
Setting up the Window System to use the Guest Additions    [  OK  ]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services componen[  OK  ]




パッチを作成し、適用します。
[root@dsee7m1 ~]# cd /usr/src/vboxguest-4.1.18/vboxvideo

[root@dsee7m1 vboxvideo]# vi vboxvideo_drm.c.patch

[root@dsee7m1 vboxvideo]# cat vboxvideo_drm.c.patch
--- vboxvideo_drm.c.original    2012-07-10 08:26:22.000000000 +0200
+++ vboxvideo_drm.c     2012-07-10 08:34:06.000000000 +0200
@@ -67,6 +67,9 @@
 #   if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,1)
 #    define DRM_RHEL61
 #   endif
+#   if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6,3)
+#    define DRM_RHEL63
+#   endif
 #  endif
 # endif

@@ -85,7 +88,7 @@
     return 0;
 #endif
 }
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0) || defined(DRM_RHEL63)
 /* since linux-3.3.0-rc1 drm_driver::fops is pointer */
 static struct file_operations driver_fops =
 {
@@ -109,7 +112,7 @@
     .get_map_ofs = drm_core_get_map_ofs,
     .get_reg_ofs = drm_core_get_reg_ofs,
 #endif
-# if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0)
+# if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) && !defined(DRM_RHEL63)
     .fops =
     {
         .owner = THIS_MODULE,

[root@dsee7m1 vboxvideo]# patch < vboxvideo_drm.c.patch
patching file vboxvideo_drm.c



セットアップを実行します。
[root@dsee7m1 vboxvideo]# /etc/init.d/vboxadd setup
Removing existing VirtualBox DKMS kernel modules           [  OK  ]
Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module                   [  OK  ]
Building the shared folder support module                  [  OK  ]
Building the OpenGL support module                         [  OK  ]
Doing non-kernel setup of the Guest Additions              [  OK  ]
You should restart your guest to make sure the new modules are actually used



日本語ディレクトリ名は使い辛いので、英語ディレクトリに変更します。
[assimane@dsee7m1 ~]$ LANG=C xdg-user-dirs-gtk-update

lds1-03.png

Don't ask me this againにチェックを入れ、Update Namesをクリックします。
lds1-04.png

変更できたことをlsコマンドで確認します。
lds1-05.png

リブートします。
[root@dsee7m1 vboxvideo]# reboot


今回はOSの準備までです。
次回はDSEE7に必要なライブラリのインストールを行います。

次回もお楽しみに!!

nice!(0)  コメント(0)  トラックバック(0) 
共通テーマ:パソコン・インターネット

nice! 0

コメント 0

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

※ブログオーナーが承認したコメントのみ表示されます。

Facebook コメント

トラックバック 0

Symantec LiveUpdate ..Oracle Directory Ser.. ブログトップ

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。