1:インストール以前の作業

Date 2013-11-25 6:13:34 | Topic: samba4 アクティブディレクトリーに挑戦

参考URL:http://www.unix-power.net/linux/samba4_setup.html
上記URLを参照する時の注意点
samba-tool domain provision後のDNS forwarder IP address はEnterではなく、default gatewayのIPを入力。

事前の準備、
1:インストールされているsambaを削除しておく(私の場合だけ?私はyum list installed |grep smb とyum list installed |grep samba で調べ、remove して置く。さらに /usr/local/samba以下に色々入っていたので、紛らわしくならないようにsambaのDir毎削除した。
2:NetworkManagerでdnsの解決をする。私はなれないせいか、これが動いているとやりにくいので、削除していた。これが原因かは不明だが、テストで設定している時にどうもうまくいかなかったので、再インストールし、DNSの設定はifcfg-eth0でするようにした。設定方法は上記参考URLにある。
3:host, nslookup, dig など有用なコマンドが入っていないのでインストール
# yum install bind-utils
4:レポジトリーの整理:
 a:/etc/yum.repos.d/CentOS-Base.repoの一時変更。
[base]
name=CentOS-$releasever - Base
mirrorlist=http//mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http//mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
priority=1
enabled=0 ← 追記、無効にしておく

 b:EPELレポジトリーのインストール・設定
# rpm --import http;//dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6
# rpm -ivh http;//dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm (64bitの場合、コピペしたら ; を : に変えてね)
 c:wingレポジトリーのインストール・設定
# wget http;//wing-net.ddo.jp/wing/6/EL6.wing.repo(コピペしたら ; を : に変えてね)
# mv EL6.wing.repo /etc/yum.repos.d/
# gedit /etc/yum.repos.d/EL6.wing.repo
[wing]
name=EL $releasever - $basearch - wing Repository
baseurl=http://wing-net.ddo.jp/wing/$releasever/$basearch/
enabled=1 ← 1にする
gpgcheck=0
priority=2

[wing-source]
name=EL $releasever - $basearch - wing source Repository
baseurl=http://wing-net.ddo.jp/wing/$releasever/SRPMS/
enabled=1 ← 1にする
gpgcheck=0
priority=2

CentOS-Base.repoを一時的に止めるのはここにはlibldb.x86_64のバージョンが1.1.13-3があり、使いたいバージョンは1.1.16-1でこれはwingレポジトリーにあるから。epelを有効にしないと libbsdが入らない。


This article comes from 錦稜会 KINRYOKAI
https://www.kinryokai.net

The URL for this story is:
https://www.kinryokai.net/article.php?storyid=179