LoginSignup
0
0

More than 3 years have passed since last update.

CentOS8にsamba4をソースコードからインストール

Last updated at Posted at 2020-09-06

CentOS8でソースコードからsamba v4.13.0を導入する方法

1. まずはepelレポジトリを導入

$ sudo dnf -y install epel-release

2. 必要なライブラリを導入

$ sudo dnf install python36 python36-devel zlib-devel lmdb-devel gnutls-devel perl-Parse-Yapp jansson-devel libacl-devel openldap-devel pam-devel dbus-devel
$ sudo dnf install --enablerepo=PowerTools gpgme-devel libarchive-devel rpcgen

3. ビルド

$ sudo ./configure --prefix=/usr/local/samba-4.13.0/
$ sudo make -j2
$ sudo make -j2 install

4. systemdの設定

$ sudo cp -a bin/default/packaging/systemd/smb.service /lib/systemd/system/
$ sudo cp -a bin/default/packaging/systemd/nmb.service /lib/systemd/system/
$ sudo systemctl daemon-reload

5. sambaの起動および自動起動の有効化

$ sudo systemctl start smb
$ sudo systemctl start nmb
$ sudo systemctl enable smb
$ sudo systemctl enable nmb
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0