Difference between revisions of "Technique Knowledge of Webmin"

From ESS-WIKI
Jump to: navigation, search
(Replaced content with "=How to install Webmin on Ubuntu-14/16.4=")
Line 1: Line 1:
= Webmin How to install on Ubuntu 14.04 =
+
=[[How to install Webmin on Ubuntu 14/16.04|How to install Webmin on Ubuntu-14/16.4]]=
 
 
= How to install =
 
 
 
首先加入 Webmin 官方 repository, 開啟檔案&nbsp;<code>/etc/apt/sources.list</code>
 
<pre>$ vi /etc/apt/sources.list</pre>
 
 
 
加入以下兩行:
 
<pre>deb http://download.webmin.com/download/repository sarge contrib
 
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib
 
</pre>
 
 
 
然後取得以上 repository 的 GPG key:
 
<pre>$ wget http://www.webmin.com/jcameron-key.asc
 
$ apt-key add jcameron-key.asc
 
</pre>
 
 
 
更新 apt-get 就可以開始安裝了:
 
<pre>$ apt-get update
 
$ apt-get install -y webmin
 
</pre>
 
 
 
Webmin 預設使用 10000 埠號, 設定 firewall 開通 10000 埠號:
 
<pre>$ ufw allow 10000
 
</pre>
 
 
 
預設帳號密碼為 root 之帳號密碼, 可以這樣存取:
 
<pre>http://localhost:10000
 
 
https://localhost:10000
 
</pre>
 
 
 
= Config file path =
 
 
 
Webmin module 的目錄放置此路徑下.
 
<pre>$ cd /usr/share/webmin
 
</pre>
 
 
 
<code>module.infos.cache</code>&nbsp;路徑
 
<pre>$ /var/webmin/module.infos.cache
 
</pre>
 
 
 
set module ACL
 
<pre>$ vi /etc/webmin/webmin.acl
 
</pre>
 
 
 
Restart webmin
 
<pre>$ /etc/init.d/webmin restart
 
</pre>
 
 
 
Webmin main process
 
<pre>$ vi /usr/share/webmin/miniserv.pl
 
</pre>
 
 
 
Webmin main process read below config
 
<pre>$ vi /etc/webmin/miniserv.conf</pre>
 

Revision as of 03:33, 15 February 2017

How to install Webmin on Ubuntu-14/16.4