如何在Ubuntu,Debian和Kali Linux上安装Webmin
时间:2020-02-23 14:44:45 来源:igfitidea点击:
在本教程中,我们将介绍在Ubuntu 18.04/Ubuntu 16.04/Debian 9/Debian 8以及最新Kali Linux版本上安装Webmin的安装。
WebMin是基于Web的领先的Linux/UNIX系统管理工具包。
WebMin在所有Linux平台上工作。
使用Webmin,我们可以设置用户帐户,Manager Apache Web服务器,DNS服务器,SAMBA和文件配置,电子邮件服务器,包管理等。
方法1:从APT存储库安装Ubuntu/Debian/Kali Linux上的Webmin
在Ubuntu/Debian/Kali Linux上安装WebMin的最简单方法,而无需担心依赖项是通过使用 apt
存储库。
使用命令添加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
确认服务正在运行:
root@graphite:~# systemctl status webmin ● webmin.service - LSB: web-based administration interface for Unix systems Loaded: loaded (/etc/init.d/webmin; generated) Active: active (running) since Wed 2016-07-11 12:11:06 UTC; 1min 40s ago Docs: man:systemd-sysv-generator(8) Process: 16055 ExecStart=/etc/init.d/webmin start (code=exited, status=0/SUCCESS) Tasks: 1 (limit: 2362) CGroup: /system.slice/webmin.service └─16071 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf May 11 12:11:04 graphite systemd[1]: Starting LSB: web-based administration interface for Unix systems… May 11 12:11:04 graphite perl[16056]: pam_unix(webmin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=root May 11 12:11:06 graphite webmin[16056]: Webmin starting May 11 12:11:06 graphite systemd[1]: Started LSB: web-based administration interface for Unix systems
如果系统不是SystemD,请检查使用:
$sudo service webmin status ● webmin.service - LSB: web-based administration interface for Unix systems Loaded: loaded (/etc/init.d/webmin; generated) Active: active (running) since Wed 2016-07-11 12:11:06 UTC; 2min 52s ago Docs: man:systemd-sysv-generator(8) Process: 16055 ExecStart=/etc/init.d/webmin start (code=exited, status=0/SUCCESS) Tasks: 1 (limit: 2362) CGroup: /system.slice/webmin.service └─16071 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf May 11 12:11:04 graphite systemd[1]: Starting LSB: web-based administration interface for Unix systems… May 11 12:11:04 graphite perl[16056]: pam_unix(webmin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=root May 11 12:11:06 graphite webmin[16056]: Webmin starting May 11 12:11:06 graphite systemd[1]: Started LSB: web-based administration interface for Unix systems.
方法2:从.deb包上安装webmin/ubuntu/debian/kali linux
对于此方法,我们必须从WebMin下载下面的链接手动下载Webmin Debian包
打开最新版本和下载的文件夹 webmin_version_all.deb
软件包:
例子:
$export VER="1.881" $wget https://sourceforge.net/projects/webadmin/files/webmin/${VER}/webmin_${VER}_all.deb
如果我们有一个新安装Ubuntu检查顶部必须在安装Ubuntu后做事,并且在安装Kali Linux后,顶部必须做事。
下载包后,我们必须使用"dpkg`命令"安装,如下所示:
$sudo dpkg -i webmin_${VER}_all.deb
如果我们收到未满足依赖项的消息,如下所示:
$sudo dpkg -i webmin_${VER}_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_${VER}_all.deb
安装应该成功:
$sudo dpkg -i webmin_${VER}_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服务后,我们可以使用以下方式访问Web仪表板:
https://ip-address:10000/
使用root密码帐户和root密码登录。进入管理员仪表板: