如何在 Ubuntu 上安装 Webmin
Webmin 是一个基于 Web 的 Unix 系统管理界面。使用任何现代 Web 浏览器,您都可以设置用户帐户、Apache、DNS、文件共享等等。Webmin 无需手动编辑 Unix 配置文件(如 /etc/passwd),并且允许您从控制台或远程管理系统。本文将向您介绍如何在 Ubuntu 上安装 Webmin。
要安装 Webmin,请打开 /etc/apt/sources.list 文件,如下所示:
# sudo nano /etc/apt/sources.list
文件的示例输出应如下所示:
# deb cdrom:[Ubuntu 14.04.4 LTS _Trusty Tahr_ - Release amd64 (20160217.1)]/ trusty main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://ubuntu.excellmedia.net/archive/ trusty main restricted deb-src http://ubuntu.excellmedia.net/archive/ trusty main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://ubuntu.excellmedia.net/archive/ trusty-updates main restricted deb-src http://ubuntu.excellmedia.net/archive/ trusty-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://ubuntu.excellmedia.net/archive/ trusty universe deb-src http://ubuntu.excellmedia.net/archive/ trusty universe deb http://ubuntu.excellmedia.net/archive/ trusty-updates universe deb-src http://ubuntu.excellmedia.net/archive/ trusty-updates universe [ line 16/57 (28%), col 1/59 (1%), char 787/3168 (24%) ] ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell
将以下行添加到上述文件,如下所示:
deb http://download.webmin.com/download/repository sarge contrib
执行上述操作后,需要在存储库签名后获取 GPG 密钥。要获取 GPG 密钥,请使用以下命令:
# wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -
输出应如下所示:
OK
添加 GPG 密钥后,需要更新 source.list,如下面的命令所示:
# sudo apt-get update
要使用以下命令安装 Webmin:
$ sudo apt-get install webmin
示例输出应如下所示:
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libcgmanager0:i386 libdrm2:i386 libhdb9-heimdal libkdc2-heimdal libntdb1 libpng12-0:i386 libudev1:i386 python-ntdb Use 'apt-get autoremove' to remove them. The following extra packages will be installed: apt-show-versions libauthen-pam-perl The following NEW packages will be installed: apt-show-versions libauthen-pam-perl webmin 0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded. Need to get 28.2 MB of archives. After this operation, 157 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://ubuntu.excellmedia.net/archive/ trusty/universe libauthen-pam-perl amd64 0.16-2build3 [27.8 kB] Get:2 http://ubuntu.excellmedia.net/archive/ trusty/universe apt-show-versions all 0.22.3 [33.9 kB] Get:3 http://download.webmin.com/download/repository/ sarge/contrib webmin all 1.791 [28.2 MB] Fetched 28.2 MB in 52s (536 kB/s) Selecting previously unselected package libauthen-pam-perl. (Reading database ... 281828 files and directories currently installed.) Preparing to unpack .../libauthen-pam-perl_0.16-2build3_amd64.deb ... Unpacking libauthen-pam-perl (0.16-2build3) ... Selecting previously unselected package apt-show-versions. Preparing to unpack .../apt-show-versions_0.22.3_all.deb ... ..........................................................................
要打开 Webmin,请打开浏览器并输入以下内容:
https://linux:10000/
示例输出应如下所示:
使用 root 用户名和密码登录。之后,您将看到一个页面,其中显示了您的系统信息,如下所示:
阅读完本文后,您将能够理解:如何在 Ubuntu 上安装 Webmin。在我们的下一篇文章中,我们将推出更多基于 Linux 的技巧和提示。敬请关注!
广告