Sambaをソースからビルドし、インストール

Sambaのダウンロードファイルの場所
https://www.samba.org/samba/download/

Samba distribution GPG public keyの場所
https://download.samba.org/pub/samba/samba-pubkey.asc

【GPG public keyの取り込み方法(上記Webサイトより)】

The Samba source code is distributed via https. View the download area via HTTPS. The file you probably want is called samba-latest.tar.gz. Old releases are available in the Samba archives.

The Samba distribution GPG public key can be used to verify that current releases have not been tampered with. Using GnuPG, simply download the Samba source distribution, the tarball signature, and the Samba distribution public key. Then run
$ gpg –import samba-pubkey.asc
$ gunzip samba-version.tar.gz
$ gpg –verify samba-release.tar.asc
gpg: Signature made Tue 20 Nov 2007 07:12:04 PM CST using \
DSA key ID 6568B7EA
gpg: Good signature from “Samba Distribution Verification Key \
‹samba-bugs@samba.org›

It is recommended that you also review the list of patches for current releases. For information on Samba security releases, please see our security page.


■以下の手順でソースからコンパイルしました。

$ wget -c https://download.samba.org/pub/samba/samba-pubkey.asc

$ gpg –import samba-pubkey.asc

$ wget -c https://download.samba.org/pub/samba/samba-4.14.6.tar.gz

$ wget -c https://download.samba.org/pub/samba/samba-4.14.6.tar.asc

$ gunzip samba-4.14.6.tar.gz

$ gpg –verify samba-4.14.6.tar.asc

$ git clone https://github.com/LMDB/lmdb.git

$ cd lmdb/libraries/liblmdb/

$ make

$ sudo make install

$ sudo apt install python3-distutils libpython3-dev pkg-config libgnutls28-dev libjansson-dev libarchive-dev libacl1-dev libldap2-dev libldap2-dev libpam0g-dev libgpgme-dev

$ tar xvf samba-4.14.6.tar

$ cd samba-4.14.6/

$ ./configure

まだ足りなければ、エラーがなくなるまで足りないものを入れる。

$ make

$ sudo make instal

$ /usr/local/samba/sbin/smbd -V

 

参考
https://www7390uo.sakura.ne.jp/wordpress/archives/768

Linux、Netatalk、Samba、NFSを使用したファイルサーバーについて研究・運用しています。

fsをフォローする
手順

コメント