顯示具有 Webmin 標籤的文章。 顯示所有文章
顯示具有 Webmin 標籤的文章。 顯示所有文章

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%完美整合,可能還需要自行修改設定或目錄。

(完)

[研究]Webmin 2.013 on Rocky Linux 9.1安裝

[研究]Webmin 2.013 on Rocky Linux 9.1安裝

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 dnf -y install webmin

實際狀況

[user1@localhost ~]$ 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   8580      0 --:--:-- --:--:-- --:--:--  8565

[user1@localhost ~]$ sh setup-repos.sh
Error: `setup-repos.sh` script must be run as root!

[user1@localhost ~]$ 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
Webmin package can now be installed using dnf install webmin command.
[user1@localhost ~]$ 

[user1@localhost ~]$ dnf -y install webmin
Error: This command has to be run with superuser privileges (under the root user on most systems).

[user1@localhost ~]$ sudo dnf -y install webmin
Extra Packages for Enterprise Linux 9 - x86_64         471 kB/s |  14 MB     00:31    
Rocky Linux 9 - BaseOS                                 974 kB/s | 1.8 MB     00:01    
Rocky Linux 9 - AppStream                              3.2 MB/s | 6.6 MB     00:02    
Rocky Linux 9 - Extras                                 9.3 kB/s | 8.5 kB     00:00    
Webmin - noarch                                        427 kB/s |  22 MB     00:53    
Dependencies resolved.
=======================================================================================
 Package                  Architecture Version               Repository           Size
=======================================================================================
Installing:
 webmin                   noarch       2.013-1               webmin-noarch        40 M
Installing dependencies:
 perl-Digest-SHA          x86_64       1:6.02-461.el9        appstream            61 k
 perl-Encode-Detect       x86_64       1.01-37.el9           appstream            89 k
 perl-Filter              x86_64       2:1.60-4.el9          appstream            81 k
 perl-encoding            x86_64       4:3.00-462.el9        appstream            62 k
 perl-lib                 x86_64       0.65-479.el9          appstream            23 k
 perl-open                noarch       1.12-479.el9          appstream            25 k

Transaction Summary
=======================================================================================
Install  7 Packages

Total download size: 40 M
Installed size: 117 M
Downloading Packages:
(1/7): perl-encoding-3.00-462.el9.x86_64.rpm            31 kB/s |  62 kB     00:02    
(2/7): perl-Digest-SHA-6.02-461.el9.x86_64.rpm          31 kB/s |  61 kB     00:02    
(3/7): perl-Filter-1.60-4.el9.x86_64.rpm                40 kB/s |  81 kB     00:02    
(4/7): perl-lib-0.65-479.el9.x86_64.rpm                884 kB/s |  23 kB     00:00    
(5/7): perl-open-1.12-479.el9.noarch.rpm               512 kB/s |  25 kB     00:00    
(6/7): perl-Encode-Detect-1.01-37.el9.x86_64.rpm       1.1 MB/s |  89 kB     00:00    
(7/7): webmin-2.013-1.noarch.rpm                       2.3 MB/s |  40 MB     00:17    
---------------------------------------------------------------------------------------
Total                                                  2.0 MB/s |  40 MB     00:20     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                               1/1 
  Installing       : perl-Encode-Detect-1.01-37.el9.x86_64                         1/7 
  Installing       : perl-lib-0.65-479.el9.x86_64                                  2/7 
  Installing       : perl-Filter-2:1.60-4.el9.x86_64                               3/7 
  Installing       : perl-encoding-4:3.00-462.el9.x86_64                           4/7 
  Installing       : perl-open-1.12-479.el9.noarch                                 5/7 
  Installing       : perl-Digest-SHA-1:6.02-461.el9.x86_64                         6/7 
  Running scriptlet: webmin-2.013-1.noarch                                         7/7 
  Installing       : webmin-2.013-1.noarch                                         7/7 
  Running scriptlet: webmin-2.013-1.noarch                                         7/7 
  Verifying        : perl-encoding-4:3.00-462.el9.x86_64                           1/7 
  Verifying        : perl-Digest-SHA-1:6.02-461.el9.x86_64                         2/7 
  Verifying        : perl-Filter-2:1.60-4.el9.x86_64                               3/7 
  Verifying        : perl-lib-0.65-479.el9.x86_64                                  4/7 
  Verifying        : perl-open-1.12-479.el9.noarch                                 5/7 
  Verifying        : perl-Encode-Detect-1.01-37.el9.x86_64                         6/7 
  Verifying        : webmin-2.013-1.noarch                                         7/7 

Installed:
  perl-Digest-SHA-1:6.02-461.el9.x86_64      perl-Encode-Detect-1.01-37.el9.x86_64     
  perl-Filter-2:1.60-4.el9.x86_64            perl-encoding-4:3.00-462.el9.x86_64       
  perl-lib-0.65-479.el9.x86_64               perl-open-1.12-479.el9.noarch             
  webmin-2.013-1.noarch                     

Complete!
[user1@localhost ~]$ 


目前啟動狀態

user1@localhost ~]$ sudo systemctl status webmin
[sudo] password for user1: 
● webmin.service - Webmin server daemon
     Loaded: loaded (/usr/lib/systemd/system/webmin.service; enabled; vendor pr>
     Active: active (running) since Tue 2023-03-07 09:10:50 CST; 3h 53min ago
    Process: 33954 ExecStart=/usr/libexec/webmin/miniserv.pl /etc/webmin/minise>
   Main PID: 33955 (miniserv.pl)
      Tasks: 1 (limit: 22814)
     Memory: 28.7M
        CPU: 1min 44.744s
     CGroup: /system.slice/webmin.service
             └─33955 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/>

Mar 07 09:10:49 localhost.localdomain systemd[1]: Starting Webmin server daemon>
Mar 07 09:10:50 localhost.localdomain systemd[1]: Started Webmin server daemon.
[user1@localhost ~]$ 

文件

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







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

(完)