2023年3月7日 星期二

[研究]Webmin 2.013 (Ubuntu 22.04.2 LTS) 安裝

[研究]Webmin 2.013 (Ubuntu 22.04.2 LTS) 安裝

2023-03-06

Webmin 介面安裝,參考
https://webmin.com/download/

curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh

sudo sh setup-repos.sh

sudo apt-get install webmin -y

實際狀況

user1@ubuntu22042:~$ curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
Command 'curl' not found, but can be installed with:
sudo snap install curl  # version 7.87.0, or
sudo apt  install curl  # version 7.81.0-1ubuntu1.8
See 'snap info curl' for additional versions.
user1@ubuntu22042:~$ 

user1@ubuntu22042:~$ sudo apt  install curl -y
[sudo] password for user1: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  curl
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 194 kB of archives.
After this operation, 454 kB of additional disk space will be used.
Get:1 http://tw.archive.ubuntu.com/ubuntu jammy-updates/main amd64 curl amd64 7.81.0-1ubuntu1.8 [194 kB]
Fetched 194 kB in 1s (370 kB/s)
Selecting previously unselected package curl.
(Reading database ... 176153 files and directories currently installed.)
Preparing to unpack .../curl_7.81.0-1ubuntu1.8_amd64.deb ...
Unpacking curl (7.81.0-1ubuntu1.8) ...
Setting up curl (7.81.0-1ubuntu1.8) ...
Processing triggers for man-db (2.10.2-1) ...
user1@ubuntu22042:~$ 
user1@ubuntu22042:~$ curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4771  100  4771    0     0  14811      0 --:--:-- --:--:-- --:--:-- 14816
user1@ubuntu22042:~$ sudo sh setup-repos.sh
Setup Webmin official repository? (y/N) Y

user1@ubuntu22042:~$ sudo sh setup-repos.sh
Setup Webmin official repository? (y/N) y
  Downloading Webmin key ..
  .. done
  Installing Webmin key ..
  .. done
  Setting up Webmin repository ..
  .. done
  Cleaning repository metadata ..
  .. done
  Downloading repository metadata ..
  .. done
Webmin package can now be installed using apt-get install webmin command.
user1@ubuntu22042:~$ 

user1@ubuntu22042:~$ sudo apt-get install webmin -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libauthen-pam-perl libio-pty-perl
The following NEW packages will be installed:
  libauthen-pam-perl libio-pty-perl webmin
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 34.3 MB of archives.
After this operation, 193 MB of additional disk space will be used.
Get:1 https://download.webmin.com/download/repository sarge/contrib amd64 webmin all 2.013 [34.3 MB]
Ign:2 http://tw.archive.ubuntu.com/ubuntu jammy/universe amd64 libauthen-pam-perl amd64 0.16-3build9
Ign:3 http://tw.archive.ubuntu.com/ubuntu jammy/main amd64 libio-pty-perl amd64 1:1.15-2build2
Ign:2 http://tw.archive.ubuntu.com/ubuntu jammy/universe amd64 libauthen-pam-perl amd64 0.16-3build9
Ign:3 http://tw.archive.ubuntu.com/ubuntu jammy/main amd64 libio-pty-perl amd64 1:1.15-2build2
Ign:2 http://tw.archive.ubuntu.com/ubuntu jammy/universe amd64 libauthen-pam-perl amd64 0.16-3build9
Ign:3 http://tw.archive.ubuntu.com/ubuntu jammy/main amd64 libio-pty-perl amd64 1:1.15-2build2
Err:2 http://tw.archive.ubuntu.com/ubuntu jammy/universe amd64 libauthen-pam-perl amd64 0.16-3build9
  Cannot initiate the connection to tw.archive.ubuntu.com:80 (2001:e10:2000:240:e643:4bff:fee8:a63c). - connect (101: Network is unreachable) Could not connect to tw.archive.ubuntu.com:80 (140.110.240.80). - connect (111: Connection refused)
Err:3 http://tw.archive.ubuntu.com/ubuntu jammy/main amd64 libio-pty-perl amd64 1:1.15-2build2
  Cannot initiate the connection to tw.archive.ubuntu.com:80 (2001:e10:2000:240:e643:4bff:fee8:a63c). - connect (101: Network is unreachable)
Fetched 34.3 MB in 1min 57s (293 kB/s)                                        
E: Failed to fetch http://tw.archive.ubuntu.com/ubuntu/pool/universe/liba/libauthen-pam-perl/libauthen-pam-perl_0.16-3build9_amd64.deb  Cannot initiate the connection to tw.archive.ubuntu.com:80 (2001:e10:2000:240:e643:4bff:fee8:a63c). - connect (101: Network is unreachable) Could not connect to tw.archive.ubuntu.com:80 (140.110.240.80). - connect (111: Connection refused)
E: Failed to fetch http://tw.archive.ubuntu.com/ubuntu/pool/main/libi/libio-pty-perl/libio-pty-perl_1.15-2build2_amd64.deb  Cannot initiate the connection to tw.archive.ubuntu.com:80 (2001:e10:2000:240:e643:4bff:fee8:a63c). - connect (101: Network is unreachable)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
user1@ubuntu22042:~$ 

user1@ubuntu22042:~$ sudo apt-get install webmin -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libauthen-pam-perl libio-pty-perl
The following NEW packages will be installed:
  libauthen-pam-perl libio-pty-perl webmin
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 60.2 kB/34.3 MB of archives.
After this operation, 193 MB of additional disk space will be used.
Get:1 http://tw.archive.ubuntu.com/ubuntu jammy/universe amd64 libauthen-pam-perl amd64 0.16-3build9 [25.1 kB]
Get:2 http://tw.archive.ubuntu.com/ubuntu jammy/main amd64 libio-pty-perl amd64 1:1.15-2build2 [35.1 kB]
Fetched 60.2 kB in 1s (120 kB/s)          
Selecting previously unselected package libauthen-pam-perl.
(Reading database ... 176160 files and directories currently installed.)
Preparing to unpack .../libauthen-pam-perl_0.16-3build9_amd64.deb ...
Unpacking libauthen-pam-perl (0.16-3build9) ...
Selecting previously unselected package libio-pty-perl.
Preparing to unpack .../libio-pty-perl_1%3a1.15-2build2_amd64.deb ...
Unpacking libio-pty-perl (1:1.15-2build2) ...
Selecting previously unselected package webmin.
Preparing to unpack .../archives/webmin_2.013_all.deb ...
Unpacking webmin (2.013) ...
Setting up libio-pty-perl (1:1.15-2build2) ...
Setting up libauthen-pam-perl (0.16-3build9) ...
Setting up webmin (2.013) ...
Processing triggers for man-db (2.10.2-1) ...
user1@ubuntu22042:~$ 

目前啟動狀態

user1@ubuntu22042:~$ sudo systemctl status webmin
● webmin.service - Webmin server daemon
     Loaded: loaded (/lib/systemd/system/webmin.service; enabled; vendor prese>
     Active: active (running) since Tue 2023-03-07 16:56:58 CST; 48s ago
    Process: 4418 ExecStart=/usr/share/webmin/miniserv.pl /etc/webmin/miniserv>
   Main PID: 4419 (miniserv.pl)
      Tasks: 1 (limit: 4573)
     Memory: 167.1M
        CPU: 4.861s
     CGroup: /system.slice/webmin.service
             └─4419 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/mi>

三 07 16:56:56 ubuntu22042 systemd[1]: Starting Webmin server daemon... 三 07 16:56:56 ubuntu22042 perl[4418]: pam_unix(webmin:auth): authentication> 三 07 16:56:58 ubuntu22042 webmin[4418]: Webmin starting 三 07 16:56:58 ubuntu22042 systemd[1]: Started Webmin server daemon. user1@ubuntu22042:~$

文件

http://doxfer.webmin.com/Webmin/Main_Page






雖然Webmin可以做很多管理工作,但和各套件 Apache, MySQL Server, Mariadb Database Server, sendmail, PostgreSQL, Postfix , ... 等,未必100%完美整合,可能還需要自行修改設定或目錄。

(完)

沒有留言:

張貼留言