環境 (Oracle VM VirtualBox)
OS:CentOS Linux release 7.1.1503 (Core)
ブラウザベースの管理ツール、Webminを導入した。
公式サイト:https://www.webmin.com/
▼アップデート可能なパッケージ一を確認
# yum check-update
読み込んだプラグイン:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ty1.mirror.newmediaexpress.com
* extras: ty1.mirror.newmediaexpress.com
* updates: ty1.mirror.newmediaexpress.com
ModemManager.x86_64 1.6.10-4.el7 base
ModemManager-glib.x86_64 1.6.10-4.el7 base
NetworkManager.x86_64 1:1.18.8-2.el7_9 updates
NetworkManager-adsl.x86_64 1:1.18.8-2.el7_9 updates
NetworkManager-glib.x86_64 1:1.18.8-2.el7_9 updates
NetworkManager-libnm.x86_64 1:1.18.8-2.el7_9 updates
NetworkManager-libreswan.x86_64 1.2.4-2.el7 base
NetworkManager-team.x86_64 1:1.18.8-2.el7_9 updates
NetworkManager-tui.x86_64 1:1.18.8-2.el7_9 updates
PackageKit.x86_64 1.1.10-2.el7.centos base
PackageKit-command-not-found.x86_64 1.1.10-2.el7.centos base
PackageKit-glib.x86_64 1.1.10-2.el7.centos base
PackageKit-gstreamer-plugin.x86_64 1.1.10-2.el7.centos base
PackageKit-gtk3-module.x86_64 1.1.10-2.el7.centos base
PackageKit-yum.x86_64 1.1.10-2.el7.centos base
SDL.x86_64 1.2.15-17.el7 base
abattis-cantarell-fonts.noarch 0.0.25-1.el7 base
abrt.x86_64 2.1.11-60.el7.centos base
abrt-addon-ccpp.x86_64 2.1.11-60.el7.centos base
abrt-addon-kerneloops.x86_64 2.1.11-60.el7.centos base
abrt-addon-pstoreoops.x86_64 2.1.11-60.el7.centos base
abrt-addon-python.x86_64 2.1.11-60.el7.centos base
abrt-addon-vmcore.x86_64 2.1.11-60.el7.centos base
abrt-addon-xorg.x86_64 2.1.11-60.el7.centos base
--- 省略 ---
▼パッケージをアップデート
# yum update
volume_key-libs x86_64 0.3.9-9.el7 base 141 k
vorbis-tools x86_64 1:1.4.0-13.el7 base 214 k
vte-profile x86_64 0.52.4-1.el7 base 7.1 k
vte291 x86_64 0.52.4-1.el7 base 250 k
webkitgtk4 x86_64 2.28.2-2.el7 base 28 M
webkitgtk4-jsc x86_64 2.28.2-2.el7 base 5.7 M
xdg-desktop-portal x86_64 1.0.2-1.el7 base 248 k
xdg-desktop-portal-gtk x86_64 1.0.2-1.el7 base 157 k
xmlsec1 x86_64 1.2.20-7.el7_4 base 177 k
xmlsec1-openssl x86_64 1.2.20-7.el7_4 base 76 k
xz-libs i686 5.2.2-1.el7 base 109 k
zlib i686 1.2.7-19.el7_9 updates 91 k
トランザクションの要約
=============================================================================================================================================================================================================================================
インストール 23 パッケージ (+206 個の依存関係のパッケージ)
更新 884 パッケージ
合計容量: 1.1 G
Is this ok [y/d/N]: y
Downloading packages:
警告: /var/cache/yum/x86_64/7/base/packages/ca-certificates-2020.2.41-70.0.el7_8.noarch.rpm: ヘッダー V3 RSA/SHA256 Signature、鍵 ID f4a80eb5: NOKEY
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 から鍵を取得中です。
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <このメールアドレスはスパムボットから保護されています。閲覧するにはJavaScriptを有効にする必要があります。 >"
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-1.1503.el7.centos.2.8.x86_64 (@anaconda)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
上記の処理を行います。よろしいでしょうか? [y/N]
yelp-xsl.noarch 0:3.28.0-1.el7 yum.noarch 0:3.4.3-168.el7.centos yum-langpacks.noarch 0:0.4.2-7.el7
yum-plugin-fastestmirror.noarch 0:1.1.31-54.el7_8 yum-utils.noarch 0:1.1.31-54.el7_8 zenity.x86_64 0:3.28.1-1.el7
zip.x86_64 0:3.0-11.el7 zlib.x86_64 0:1.2.7-19.el7_9
置換:
NetworkManager.x86_64 1:1.0.0-14.git20150121.b4ea599c.el7 PackageKit-device-rebind.x86_64 0:0.8.9-11.el7.centos adwaita-gtk3-theme.x86_64 0:3.8.4-3.el7 caribou.x86_64 0:0.4.11-3.el7
caribou-gtk2-module.x86_64 0:0.4.11-3.el7 caribou-gtk3-module.x86_64 0:0.4.11-3.el7 gdm-libs.x86_64 1:3.8.4-32.el7 gnome-settings-daemon-updates.x86_64 0:3.8.6.1-12.el7
gnome-tweak-tool.noarch 0:3.8.1-7.el7 grub2.x86_64 1:2.02-0.16.el7.centos grub2-tools.x86_64 1:2.02-0.16.el7.centos nautilus-open-terminal.x86_64 0:0.20-3.el7
pyatspi.noarch 0:2.8.0-3.el7 pygobject3.x86_64 0:3.8.2-6.el7 pygobject3-base.x86_64 0:3.8.2-6.el7 python-caribou.noarch 0:0.4.11-3.el7
rdma.noarch 0:7.1_3.17-5.el7 totem-mozplugin.x86_64 1:3.8.2-5.el7 urw-fonts.noarch 0:2.4-16.el7 usbmuxd.x86_64 0:1.0.8-11.el7
xorg-x11-drv-modesetting.x86_64 0:0.8.0-13.el7 xorg-x11-glamor.x86_64 0:0.6.0-2.20140918git347ef4f.el7
完了しました!
▼perlのバージョン確認しておく。
# perl -v
This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
(with 44 registered patches, see perl -V for more detail)
Copyright 1987-2012, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
▼webminパッケージ(webadmin/webmin-1.981-1.noarch.rpm )を/usr/local/src/配下にダウンロードした。
# cd /usr/local/src/
▼公式サイトからwebadmin/webmin-1.981-1.noarch.rpm をダウンロード。
# wget https://prdownloads.sourceforge.net/webadmin/webmin-1.981-1.noarch.rpm
--2021-09-13 13:11:35-- https://prdownloads.sourceforge.net/webadmin/webmin-1.981-1.noarch.rpm
prdownloads.sourceforge.net (prdownloads.sourceforge.net) をDNSに問いあわせています... 204.68.111.105
prdownloads.sourceforge.net (prdownloads.sourceforge.net)|204.68.111.105|:443 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 301 Moved Permanently
場所: https://downloads.sourceforge.net/project/webadmin/webmin/1.981/webmin-1.981-1.noarch.rpm [続く]
--2021-09-13 13:11:36-- https://downloads.sourceforge.net/project/webadmin/webmin/1.981/webmin-1.981-1.noarch.rpm
downloads.sourceforge.net (downloads.sourceforge.net) をDNSに問いあわせています... 204.68.111.105
downloads.sourceforge.net (downloads.sourceforge.net)|204.68.111.105|:443 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 302 Found
場所: https://jaist.dl.sourceforge.net/project/webadmin/webmin/1.981/webmin-1.981-1.noarch.rpm [続く]
--2021-09-13 13:11:38-- https://jaist.dl.sourceforge.net/project/webadmin/webmin/1.981/webmin-1.981-1.noarch.rpm
jaist.dl.sourceforge.net (jaist.dl.sourceforge.net) をDNSに問いあわせています... 150.65.7.130, 2001:df0:2ed:feed::feed
jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)|150.65.7.130|:443 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 40650008 (39M) [application/octet-stream]
`webmin-1.981-1.noarch.rpm' に保存中
100%[===================================================================================================================================================================================================>] 40,650,008 5.93MB/s 時間 7.1s
2021-09-13 13:11:45 (5.48 MB/s) - `webmin-1.981-1.noarch.rpm' へ保存完了 [40650008/40650008]
# ls -l
合計 39700
-rw-r--r--. 1 root root 40650008 8月 29 07:36 webmin-1.981-1.noarch.rpm
▼インストール
# rpm -ivh webmin-1.981-1.noarch.rpm
警告: webmin-1.981-1.noarch.rpm: ヘッダー V4 DSA/SHA1 Signature、鍵 ID 11f63c51: NOKEY
エラー: 依存性の欠如:
perl(Net::SSLeay) は webmin-1.981-1.noarch に必要とされています
perl(Encode::Detect) は webmin-1.981-1.noarch に必要とされています
perl(Data::Dumper) は webmin-1.981-1.noarch に必要とされています
◎Perlモジュールが足りない(-_-;) インストールする。
# yum -y install perl-Net-SSLeay
読み込んだプラグイン:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ty1.mirror.newmediaexpress.com
* extras: ty1.mirror.newmediaexpress.com
* updates: ty1.mirror.newmediaexpress.com
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ perl-Net-SSLeay.x86_64 0:1.55-6.el7 を インストール
--> 依存性解決を終了しました。
依存性を解決しました
=============================================================================================================================================================================================================================================
Package アーキテクチャー バージョン リポジトリー 容量
=============================================================================================================================================================================================================================================
インストール中:
perl-Net-SSLeay x86_64 1.55-6.el7 base 285 k
トランザクションの要約
=============================================================================================================================================================================================================================================
インストール 1 パッケージ
総ダウンロード容量: 285 k
インストール容量: 991 k
Downloading packages:
perl-Net-SSLeay-1.55-6.el7.x86_64.rpm | 285 kB 00:00:05
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
インストール中 : perl-Net-SSLeay-1.55-6.el7.x86_64 1/1
検証中 : perl-Net-SSLeay-1.55-6.el7.x86_64 1/1
インストール:
perl-Net-SSLeay.x86_64 0:1.55-6.el7
完了しました!
# yum -y install perl-Encode-Detect
読み込んだプラグイン:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ty1.mirror.newmediaexpress.com
* extras: ty1.mirror.newmediaexpress.com
* updates: ty1.mirror.newmediaexpress.com
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ perl-Encode-Detect.x86_64 0:1.01-13.el7 を インストール
--> 依存性解決を終了しました。
依存性を解決しました
=============================================================================================================================================================================================================================================
Package アーキテクチャー バージョン リポジトリー 容量
=============================================================================================================================================================================================================================================
インストール中:
perl-Encode-Detect x86_64 1.01-13.el7 base 82 k
トランザクションの要約
=============================================================================================================================================================================================================================================
インストール 1 パッケージ
総ダウンロード容量: 82 k
インストール容量: 186 k
Downloading packages:
perl-Encode-Detect-1.01-13.el7.x86_64.rpm | 82 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
インストール中 : perl-Encode-Detect-1.01-13.el7.x86_64 1/1
検証中 : perl-Encode-Detect-1.01-13.el7.x86_64 1/1
インストール:
perl-Encode-Detect.x86_64 0:1.01-13.el7
完了しました!
# yum install perl-Data-Dumper
読み込んだプラグイン:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ty1.mirror.newmediaexpress.com
* extras: ty1.mirror.newmediaexpress.com
* updates: ty1.mirror.newmediaexpress.com
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ perl-Data-Dumper.x86_64 0:2.145-3.el7 を インストール
--> 依存性解決を終了しました。
依存性を解決しました
=============================================================================================================================================================================================================================================
Package アーキテクチャー バージョン リポジトリー 容量
=============================================================================================================================================================================================================================================
インストール中:
perl-Data-Dumper x86_64 2.145-3.el7 base 47 k
トランザクションの要約
=============================================================================================================================================================================================================================================
インストール 1 パッケージ
総ダウンロード容量: 47 k
インストール容量: 97 k
Is this ok [y/d/N]: y
Downloading packages:
perl-Data-Dumper-2.145-3.el7.x86_64.rpm | 47 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
インストール中 : perl-Data-Dumper-2.145-3.el7.x86_64 1/1
検証中 : perl-Data-Dumper-2.145-3.el7.x86_64 1/1
インストール:
perl-Data-Dumper.x86_64 0:2.145-3.el7
完了しました!
▼再度、webmin-1.981-1.noarch.rpm インストール
# rpm -ivh webmin-1.981-1.noarch.rpm
警告: webmin-1.981-1.noarch.rpm: ヘッダー V4 DSA/SHA1 Signature、鍵 ID 11f63c51: NOKEY
準備しています... ################################# [100%]
Operating system is CentOS Linux
更新中 / インストール中...
1:webmin-1.981-1 ################################# [100%]
Webmin install complete. You can now login to https://localhost.localdomain:10000/
as root with your root password.
▼iptablesの10000番ポート許可、保存
# iptables -I INPUT -p tcp --dport 10000 -j ACCEPT
# iptables-save > /etc/sysconfig/iptables
▼ブラウザでアクセスする。(https://ローカルIPアドレス:10000)
ユーザ:root
パスワード:rootのパスワード
▼ログイン成功! ダッシュボードが表示される。
▼日本語表記にする。サイドバーの[Webmin Configuration]を選択。
▼[LLamguage and Locale]から日本語を選択する。
▼日本語化成功!
▼ログもWebminのGUIで確認できる。
以上