Webmin 0.990 に関するインストールメモ(2002/07/03)
Webmin は Webブラウザを使った Unix環境を変更・設定できるツールです。如いて言うならば Qube3J の管理画面に近く、その中で設定できる情報の多さ・容易さには敬服します。Linux ユーザーに人気があるようです♪ しかもちゃんと日本語にも対応していてとっても go! です。
本家 : Webmin(英語です)
1.Web上からアクセスできるという事は、セキュリティホールを作る事になってしまいます。でも外部から syslog を見たり、ネットワークの負荷、Telnet(sshで) をしたいのですが反面、パスワードがネットワーク上に流れて盗聴される危険があります。なので Web ブラウザとサーバー間の通信を暗号化し、第三者からの盗聴を防ぐために Webmin + SSL = https にて利用することとします。
Webmin をインストールする前に OpenSSL と Net::SSLeay をインストールします。
2.OpenSSL 0.9.6.c は、既にインストール済みだと過程します。足りないのは Net::SSLeay ですので、そのモジュールをコンパイルします。
% cd /opt/local/src
% wget http://symlabs.com/Net_SSLeay/Net_SSLeay.pm-1.15.tar.gz
% gzip -cd Net_SSLeay.pm-1.15.tar.gz | tar xf -
% cd Net_SSLeay.pm-1.15
% ./Makefile.PL -t /usr/local
※ testのため直接internetに接続しに行きます。testでエラーとなっても問題ありません
% su
# make install★.たぶん上記の方法でコンパイルすると、gcc のエラーが表示されます。Perl の標準コンパイルパラメータを変更します。この作業は、ルートユーザで行いますが必ず Config.pm ファイルのバックアップを取ってから作業してください。
# cd /usr/perl5/5.00503/i86pc-solaris
# cp Config.pm Config.pm.bak
# vi Config.pm
cc='cc' → cc='gcc'
cccdlflags='-KPIC' → cccdlflags='-fPIC'★.LD_RUN_PATH でも怒られますので、ちょっとした細工・・・
# cd /usr/ucb
# mv cc cc.bak
# ln -s /opt/sfw/bin/gcc cc3.Webmin 0.990 をインストールする。
% cd /opt/local/src
% wget http://www.webmin.com/webmin/download/webmin-0.990.tar.gz
% gzip -cd webmin-0.990.tar.gz | tar xf -
% cd webmin-0.990
% su
# ./setup.sh★.Webmin を初期からインストールしたい場合は、以下の様にします。
# cd /etc
# \rm -r webmin4.setup.sh の設問には、以下の様に答えました。
# ./setup.sh
***********************************************************************
* Welcome to the Webmin setup script, version 0.990 *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.
Installing Webmin in /opt/local/src/webmin-0.990 ...
***********************************************************************
Webmin uses separate directories for configuration files and log files.
Unless you want to run multiple versions of Webmin at the same time
you can just accept the defaults.
Config file directory [/etc/webmin]: ← このままでいでしょ
Log file directory [/var/webmin]: /var/log ← ログの保管場所
***********************************************************************
Webmin is written entirely in Perl. Please enter the full path to the
Perl 5 interpreter on your system.
Full path to perl (default /usr/bin/perl): ← Perlの場所
Testing Perl ...
Perl seems to be installed ok
***********************************************************************
For Webmin to work properly, it needs to know which operating system
type and version you are running. Please select your system type by
entering the number next to it from the list below
---------------------------------------------------------------------------
1) Sun Solaris 2) Caldera OpenLinux eServer
3) Caldera OpenLinux 4) Redhat Linux
5) Slackware Linux 6) Debian Linux
7) SuSE Linux 8) Corel Linux
9) turboLinux 10) TurboLinux
11) Cobalt Linux 12) Mandrake Linux
13) Mandrake Linux Corporate Server 14) Delix DLD Linux
15) Conectiva Linux 16) MSC Linux
17) MkLinux 18) LinuxPPC
19) XLinux 20) LinuxPL
21) Linux From Scratch 22) Trustix
23) Cendio LBS Linux 24) Ute Linux
25) Lanthan Linux 26) Yellow Dog Linux
27) Corvus Latinux 28) FreeBSD
29) OpenBSD 30) NetBSD
31) BSDI 32) HP/UX
33) SGI Irix 34) DEC/Compaq OSF/1
35) IBM AIX 36) SCO UnixWare
37) SCO OpenServer 38) Darwin
39) Mac OS X 40) Mac OS X / OS X Server
41) Cygwin
---------------------------------------------------------------------------
Operating system: 1
Please choose which version of Sun Solaris you are running, by entering
the number next to it from the list below
---------------------------------------------------------------------------
1) Sun Solaris 2.5 2) Sun Solaris 2.5.1
3) Sun Solaris 2.6 4) Sun Solaris 7
5) Sun Solaris 8 6) Sun Solaris 9
---------------------------------------------------------------------------
Version: 5
Operating system name: Sun Solaris
Operating system version: 8
***********************************************************************
Webmin uses its own password protected web server to provide access
to the administration programs. The setup script needs to know :
- What port to run the web server on. There must not be another
web server already using this port.
- The login name required to access the web server.
- The password required to access the web server.
- The hostname of this system that the web server should use.
- If the webserver should use SSL (if your system supports it).
- Whether to start webmin at boot time.
Web server port (default 10000): ← アクセスポートです
Login name (default admin): ← Webminにアクセスするユーザ名です
Login password: ← パスワードです
Password again: ← 再度パスワードです
Web server host name (default hoge): ← このままでいでしょ
Use SSL (y/n): y ← SSLを使います
Start Webmin at boot time (y/n): y ← Solaris起動時に自動実行します
***********************************************************************
Creating web server config files..
..done
Creating access control file..
..done
Inserting path to perl into scripts..
..done
Creating start and stop scripts..
..done
Copying config files..
..done
Configuring Webmin to start at boot time..
# Start/stop Webmin
Created init script /etc/init.d/webmin
..done
Creating uninstall script /etc/webmin/uninstall.sh ..
..done
Changing ownership and permissions ..
..done
Attempting to start Webmin mini web server..
Starting Webmin server in /opt/local/src/webmin-0.97
..done
***********************************************************************
Webmin has been installed and started successfully. Use your web
browser to go to
https://hoge:10000/
and login with the name and password you entered previously.
Because Webmin uses SSL for encryption only, the certificate
it uses is not signed by one of the recognized CAs such as
Verisign. When you first connect to the Webmin server, your
browser will ask you if you want to accept the certificate
presented, as it does not recognize the CA. Say yes.5.実行のしかたです。同じネットワークに繋がっている端末から Webブラウザを起動し、以下の URL を実行します。
http://hoge:10000/