差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| linux:samba:pkg_install [2019/01/05 21:26] – [パッケージインストール] ともやん | linux:samba:pkg_install [2024/02/02 23:02] (現在) – [Firewallの設定] ともやん | ||
|---|---|---|---|
| 行 2: | 行 2: | ||
| ===== パッケージインストール ===== | ===== パッケージインストール ===== | ||
| - | <code> | + | Fedora & CentOS 7 ~ |
| - | $ sudo dnf install samba samba-client samba-dc | + | <WRAP color_term> |
| - | </code> | + | <WRAP color_command>< |
| + | <b class=GRN> | ||
| + | </ | ||
| + | <WRAP color_result_long>< | ||
| + | メタデータの期限切れの最終確認: | ||
| + | パッケージ samba-client-2: | ||
| + | 依存関係が解決しました。 | ||
| + | ==================================================================================================== | ||
| + | | ||
| + | ==================================================================================================== | ||
| + | インストール: | ||
| + | <b class=GRN> | ||
| + | 依存関係のインストール: | ||
| + | <b class=GRN> | ||
| + | <b class=GRN> | ||
| + | <b class=GRN> | ||
| + | <b class=GRN> | ||
| + | <b class=GRN> | ||
| + | <b class=GRN> | ||
| + | <b class=GRN> | ||
| + | <b class=GRN> | ||
| + | <b class=GRN> | ||
| + | <b class=GRN> | ||
| + | <b class=GRN> | ||
| + | <b class=GRN> | ||
| + | <b class=GRN> | ||
| - | ===== サービスの有効化 | + | トランザクションの概要 |
| - | < | + | ==================================================================================================== |
| + | インストール | ||
| + | |||
| + | ダウンロードサイズの合計: | ||
| + | インストール後のサイズ: | ||
| + | これでよろしいですか? | ||
| + | パッケージのダウンロード: | ||
| + | (1/14): lmdb-0.9.29-3.fc36.x86_64.rpm | ||
| + | (2/14): python3-dns-2.2.0-1.fc36.noarch.rpm | ||
| + | (3/14): libkadm5-1.19.2-11.fc36.x86_64.rpm | ||
| + | (4/14): python3-ldb-2.5.2-1.fc36.x86_64.rpm | ||
| + | (5/14): python3-talloc-2.3.4-1.fc36.x86_64.rpm | ||
| + | (6/14): python3-samba-dc-4.16.4-0.fc36.x86_64.rpm | ||
| + | (7/14): python3-tdb-1.4.7-1.fc36.x86_64.rpm | ||
| + | (8/14): python3-tevent-0.12.1-1.fc36.x86_64.rpm | ||
| + | (9/14): python3-samba-4.16.4-0.fc36.x86_64.rpm | ||
| + | (10/14): samba-common-tools-4.16.4-0.fc36.x86_64.rpm | ||
| + | (11/14): samba-dc-libs-4.16.4-0.fc36.x86_64.rpm | ||
| + | (12/14): samba-4.16.4-0.fc36.x86_64.rpm | ||
| + | (13/14): samba-libs-4.16.4-0.fc36.x86_64.rpm | ||
| + | (14/14): tdb-tools-1.4.7-1.fc36.x86_64.rpm | ||
| + | ---------------------------------------------------------------------------------------------------- | ||
| + | 合計 | ||
| + | トランザクションの確認を実行中 | ||
| + | トランザクションの確認に成功しました。 | ||
| + | トランザクションのテストを実行中 | ||
| + | トランザクションのテストに成功しました。 | ||
| + | トランザクションを実行中 | ||
| + | 準備 | ||
| + | インストール中 | ||
| + | インストール中 | ||
| + | インストール中 | ||
| + | インストール中 | ||
| + | インストール中 | ||
| + | インストール中 | ||
| + | インストール中 | ||
| + | インストール中 | ||
| + | インストール中 | ||
| + | インストール中 | ||
| + | インストール中 | ||
| + | インストール中 | ||
| + | インストール中 | ||
| + | インストール中 | ||
| + | scriptletの実行中: | ||
| + | 検証 | ||
| + | 検証 | ||
| + | 検証 | ||
| + | 検証 | ||
| + | 検証 | ||
| + | 検証 | ||
| + | 検証 | ||
| + | 検証 | ||
| + | 検証 | ||
| + | 検証 | ||
| + | 検証 | ||
| + | 検証 | ||
| + | 検証 | ||
| + | 検証 | ||
| + | |||
| + | インストール済み: | ||
| + | libkadm5-1.19.2-11.fc36.x86_64 | ||
| + | python3-dns-2.2.0-1.fc36.noarch | ||
| + | python3-samba-2: | ||
| + | python3-talloc-2.3.4-1.fc36.x86_64 | ||
| + | python3-tevent-0.12.1-1.fc36.x86_64 | ||
| + | samba-common-tools-2: | ||
| + | samba-libs-2: | ||
| + | |||
| + | 完了しました! | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | **CentOS 6**\\ | ||
| + | <WRAP color_term> | ||
| + | <WRAP color_command>< | ||
| + | $ sudo yum install samba samba-client | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== サービス自動起動設定 | ||
| + | Fedora & CentOS 7 ~ | ||
| + | - サービス自動起動設定を行う。< | ||
| $ sudo systemctl enable smb.service | $ sudo systemctl enable smb.service | ||
| $ sudo systemctl enable nmb.service | $ sudo systemctl enable nmb.service | ||
| + | </ | ||
| + | - サービス自動起動設定を確認する。< | ||
| + | $ systemctl -a | grep [sn]mb | ||
| + | nmb.service | ||
| + | smb.service | ||
| + | </ | ||
| + | CentOS 6 | ||
| + | - サービス自動起動設定を行う。< | ||
| + | $ sudo chkconfig smb on | ||
| + | $ sudo chkconfig nmb on | ||
| + | </ | ||
| + | - サービス自動起動設定を確認する。< | ||
| + | $ chkconfig --list | grep [sn]mb | ||
| + | nmb 0: | ||
| + | smb 0: | ||
| </ | </ | ||
| ===== Firewallの設定 ===== | ===== Firewallの設定 ===== | ||
| - | <code> | + | Fedora & CentOS 7 ~ |
| - | $ sudo firewall-cmd --permanent --add-service=samba | + | <WRAP color_term> |
| + | <WRAP color_command>< | ||
| + | <span style=" | ||
| + | </ | ||
| + | <WRAP color_result>< | ||
| success | success | ||
| - | </code> | + | </pre></ |
| + | <WRAP color_command>< | ||
| + | <span style=" | ||
| + | </ | ||
| + | <WRAP color_result>< | ||
| + | success | ||
| + | </ | ||
| + | </WRAP> | ||
| ===== サービスの起動 ===== | ===== サービスの起動 ===== | ||
| + | Fedora & CentOS 7 ~ | ||
| < | < | ||
| $ sudo systemctl start smb.service | $ sudo systemctl start smb.service | ||
| $ sudo systemctl start nmb.service | $ sudo systemctl start nmb.service | ||
| </ | </ | ||
| + | CentOS 6 | ||
| + | < | ||
| + | $ sudo service smb start | ||
| + | $ sudo service nmb start | ||
| + | </ | ||
| + | |||