Technique Knowledge of Webmin

From ESS-WIKI
Revision as of 03:31, 15 February 2017 by Eric.liang (talk | contribs)
Jump to: navigation, search

Webmin How to install on Ubuntu 14.04

How to install

首先加入 Webmin 官方 repository, 開啟檔案 /etc/apt/sources.list

$ vi /etc/apt/sources.list

加入以下兩行:

deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

然後取得以上 repository 的 GPG key:

$ wget http://www.webmin.com/jcameron-key.asc
$ apt-key add jcameron-key.asc

更新 apt-get 就可以開始安裝了:

$ apt-get update
$ apt-get install -y webmin

Webmin 預設使用 10000 埠號, 設定 firewall 開通 10000 埠號:

$ ufw allow 10000

預設帳號密碼為 root 之帳號密碼, 可以這樣存取:

http://localhost:10000
或
https://localhost:10000

Config file path

Webmin module 的目錄放置此路徑下.

$ cd /usr/share/webmin

module.infos.cache 路徑

$ /var/webmin/module.infos.cache

set module ACL

$ vi /etc/webmin/webmin.acl

Restart webmin

$ /etc/init.d/webmin restart

Webmin main process

$ vi /usr/share/webmin/miniserv.pl

Webmin main process read below config

$ vi /etc/webmin/miniserv.conf