本文介绍在Ubuntu 18.04/16.04、Debian 9/8及Kali Linux系统上安装Webmin的两种方法,一种是采用命令的方式,即从apt存储库安装Webmin,另一种是采用deb软件包安装,通过手动下载.deb软件包来安装Webmin。
方法1:从apt存储库在Ubuntu/Debian/Kali Linux上安装Webmin 在Ubuntu/Debian/Kali Linux上安装Webmin而不必担心依赖关系的最简单方法是使用apt存储库,本方法也可参考在Ubuntu 18.04/16.04/Debian 9上安装Webmin的简单方法,使用以下命令添加repo: $ echo "deb http://download.webmin.com/download/repository sarge contrib" | \ sudo tee /etc/apt/sources.list.d/webmin.list 接下来是导入Webmin PGP密钥,以便系统信任新的存储库: $ wget http://www.webmin.com/jcameron-key.asc $ sudo apt-key add jcameron-key.asc OK 更新apt索引并安装Webmin: $ sudo apt-get update $ sudo apt-get install webmin 确认该服务正在运行,运行systemctl status webmin命令:
如果你的系统未系统化,请使用sudo service webmin status命令检查:
方法2:从.deb包在Ubuntu/Debian/Kali Linux上安装Webmin 对于此方法,你必须从Webmin Downloads页面的链接手动下载webmin debian软件包。 打开最新版本的文件夹并下载webmin_version_all.deb包:
终端中下载地址如下: $ wget https://sourceforge.net/projects/webadmin/files/webmin/1.900/webmin_1.900_all.deb 下载软件包后,必须使用dpkg命令安装它,如下所示: $ sudo dpkg -i webmin_1.900_all.deb 如果收到未满足依赖关系的消息,例如: $ sudo dpkg -i webmin_1.900_all.deb Selecting previously unselected package webmin. (Reading database ... 105117 files and directories currently installed.) Preparing to unpack webmin_1.881_all.deb ... Unpacking webmin (1.881) ... dpkg: dependency problems prevent configuration of webmin: webmin depends on libnet-ssleay-perl; however: Package libnet-ssleay-perl is not installed. webmin depends on libauthen-pam-perl; however: Package libauthen-pam-perl is not installed. webmin depends on libio-pty-perl; however: Package libio-pty-perl is not installed. webmin depends on apt-show-versions; however: Package apt-show-versions is not installed. dpkg: error processing package webmin (--install): dependency problems - leaving unconfigured Processing triggers for ureadahead (0.100.0-20) ... Processing triggers for systemd (237-3ubuntu10) ... Errors were encountered while processing: webmin 运行以下命令以解决所有依赖项: $ sudo apt-get -f install 然后使用dpkg命令重新安装软件包: $ sudo dpkg -i webmin_1.900_all.deb 安装应该是成功的,如下所示: $ sudo dpkg -i webmin_1.900_all.deb (Reading database ... 133688 files and directories currently installed.) Preparing to unpack webmin_1.881_all.deb ... Unpacking webmin (1.881) over (1.881) ... Setting up webmin (1.881) ... Webmin install complete. You can now login to https://192.168.10.10:10000/ as root with your root password, or as any user who can use sudo to run commands as root. Processing triggers for ureadahead (0.100.0-20) ... Processing triggers for systemd (237-3ubuntu10) ...
访问Webmin Web界面 安装并启动Webmin服务后,你可以使用https://ip-address:10000/地址来访问Webmin Web控制中心:
使用root密码帐户和root密码登录,这个时候应该可以进入到Webmin控制中心里了,如下图所示:
相关主题 |