Odyssey & Linux
 
 
 
管理人が作成した模型の紹介です
 
 
 

 

 

  Webmin(ブラウザでの設定ツール)

Webminのセットアップ

Webminがインストールされていない場合は下記より入手してインストールする。

  webmin 公式ミラーページ:http://www.webmin.com/
          上部の”Downloads”をクリックして”Download Webmin 1.400”のなかに下記のファイルがあります。

今回は上記のHPよりコンパイル済のものを入手しました webmin-1.400.tar.gz (Unix tar/gzip format, 13M)

Terminalを起動して下記のコマンドを入力(青色の部分を入力)

[root@omote ~]# cp webmin-1.400.tar.gz /usr/local
[root@omote ~]# cd /usr/local
[root@omote local]# gunzip webmin-1.400.tar.gz
[root@omote local]# tar xf webmin-1.400.tar
[root@omote local]# cd webmin-1.400

この後Setupの作業です。
(出力されるメッセージは最新物ですと変更になっていると思います)

セットアップ用のスクリプトを起動して質問に答える形で進めていきます。(青色の部分が入力する項目です)
(ほとんどデフォルトのままです。デフォルトの設定で良い場合はEnterのみでOK)

[root@omote webmin-1.050]# ./setup.sh
***********************************************************************
* Welcome to the Webmin setup script, version 1.050 *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.
Installing Webmin in /usr/local/webmin-1.050 ***********************************************************************
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]:/etc.webmin
Log file directory [/var/webmin]:/var/webmin

***********************************************************************
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):/usr/bin/perl
Testing Perl ...
Perl seems to be installed ok
***********************************************************************
Operating system name: Redhat Linux
Operating system version: 8.0
***********************************************************************
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.
- If the webserver should use SSL (if your system supports it).
- Whether to start webmin at boot time.
Web server port (default 10000):10000
Login name (default admin): root
Login password:password
Password again:password
The Perl SSLeay library is not installed. SSL not available.
Start Webmin at boot time (y/n): y
***********************************************************************
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..
Created init script /etc/rc.d/init.d/webmin
..done
Creating uninstall script /etc/webmin/uninstall.sh ..
..done
Changing ownership and permissions ..
..done
Running postinstall scripts ..
..done
Attempting to start Webmin mini web server..
Starting Webmin server in /usr/local/webmin-1.050
..done
***********************************************************************
Webmin has been installed and started successfully. Use your web
browser to go to
http://omote.sytes.net:10000/
and login with the name and password you entered previously.
[root@omote webmin-1.050]#

以上でセットアップは終了です
バージョンアップする場合は、セットアップするディレクトリーを入力するだけで全て終わります。

TOPに戻る

WebminでLinuxマシンにログインする

URL欄に 192.168.XXX.XXX:10000 を入力
rootのパスワードを入力 これで下記の画面になります。(1番最初は全て英語で表示されます)

TOPに戻る

Webminnの設定 日本語表示にする。

Webmin→Change Language and Themeとクリック

Webmin UI languageのPersonal choiceをJapanese(JP_JA.EUC)に変更

Make Changes ボタンをクリックすると、表示が日本語になります。
(変わらない場合はもう一度ログインしなおすと日本語表示になります)

TOPに戻る

WebminにアクセスできるPCを制限する

デフォルトのままですと外部のPCからでもWebminにアクセスできますのでパスワードを推測された場合サーバーの設定を変えられますのでアドレスでアクセスできるPCを制限しておきます。

Webmin → Webmin設定 → IP アドレスのアクセス制御 とクリック

”リストされたアドレスからのみ許可”をチェック、その右側のテキストBOXに許可するPCのIPアドレスを入力する
(上の例ではサーバーとクライアント2台分を設定しています)

”保存”をクリックして設定を有効にする。

TOPに戻る

WebminでApacheのログを確認する

WebminでApacheのログ(アクセスログとエラーログ)を表示出来るようにしておくとエディターなどでログファイルを開く必要がなくなります。

Webmin → システム → システムログ とクリック

”新規のシステムログを追加”をクリックすると、次の画面が出ます。

”ログ先” テキストボックスに”/var/log/httpd/access_log”を入力(参照ボタンからでも入力できます)
このログの場所はGedpra 8のデフォルトの設定です。

”ログをアクティブにしますか?” を ”はい”にする。

”ログに記録するメッセージの種類” の中の ”機能” の中で ”すべて”(ドロップダウンテキストボックスの中)を選択

”保存” をクリック

以上でアクセスログをWebminで確認できるようになります。

エラーログは ”ログ先” を ”/var/log/httpd/error_log”に変えて同じ事をしてください。

 

ページTOP 戻る