Adding Webmin to a fresh CentOS 7 Box

As a quick refresh from an earlier post, I’m going to use a new CentOS image with Webmin as the control panel of choice.

Happily, the only thing that’s changed in the documentation is the way the gpg key is imported – documentation is here: https://doxfer.webmin.com/Webmin/Installation

So, on a fresh CentOS 7 1901-01 box on AWS, let’s begin.

# Update all base packages
sudo yum -y update
# Install nano (my preferred text editor)
sudo yum -y install nano
# Edit the /etc/yum.repos.d/webmin.repo file
sudo nano /etc/yum.repos.d/webmin.repo

Copy in the snippet below, then exit and save (Ctrl + X, then Y and Enter).

[Webmin]
name=Webmin Distribution Neutral
baseurl=http://download.webmin.com/download/yum
enabled=1
gpgcheck=1
gpgkey=http://www.webmin.com/jcameron-key.asc

This differs from a post in 2017 on adding Webmin as the gpgkey is captured here rather than imported separately.

The resulting dependencies are included here for reference:

Dependencies Resolved

=============================================================================================================================================================================================================================================
 Package                                                           Arch                                              Version                                                         Repository                                         Size
=============================================================================================================================================================================================================================================
Installing:
 webmin                                                            noarch                                            1.940-2                                                         Webmin                                             22 M
Installing for dependencies:
 perl                                                              x86_64                                            4:5.16.3-294.el7_6                                              base                                              8.0 M
 perl-Carp                                                         noarch                                            1.26-244.el7                                                    base                                               19 k
 perl-Data-Dumper                                                  x86_64                                            2.145-3.el7                                                     base                                               47 k
 perl-Encode                                                       x86_64                                            2.51-7.el7                                                      base                                              1.5 M
 perl-Encode-Detect                                                x86_64                                            1.01-13.el7                                                     base                                               82 k
 perl-Exporter                                                     noarch                                            5.68-3.el7                                                      base                                               28 k
 perl-File-Path                                                    noarch                                            2.09-2.el7                                                      base                                               26 k
 perl-File-Temp                                                    noarch                                            0.23.01-3.el7                                                   base                                               56 k
 perl-Filter                                                       x86_64                                            1.49-3.el7                                                      base                                               76 k
 perl-Getopt-Long                                                  noarch                                            2.40-3.el7                                                      base                                               56 k
 perl-HTTP-Tiny                                                    noarch                                            0.033-3.el7                                                     base                                               38 k
 perl-Net-SSLeay                                                   x86_64                                            1.55-6.el7                                                      base                                              285 k
 perl-PathTools                                                    x86_64                                            3.40-5.el7                                                      base                                               82 k
 perl-Pod-Escapes                                                  noarch                                            1:1.04-294.el7_6                                                base                                               51 k
 perl-Pod-Perldoc                                                  noarch                                            3.20-4.el7                                                      base                                               87 k
 perl-Pod-Simple                                                   noarch                                            1:3.28-4.el7                                                    base                                              216 k
 perl-Pod-Usage                                                    noarch                                            1.63-3.el7                                                      base                                               27 k
 perl-Scalar-List-Utils                                            x86_64                                            1.27-248.el7                                                    base                                               36 k
 perl-Socket                                                       x86_64                                            2.010-4.el7                                                     base                                               49 k
 perl-Storable                                                     x86_64                                            2.45-3.el7                                                      base                                               77 k
 perl-Text-ParseWords                                              noarch                                            3.29-4.el7                                                      base                                               14 k
 perl-Time-HiRes                                                   x86_64                                            4:1.9725-3.el7                                                  base                                               45 k
 perl-Time-Local                                                   noarch                                            1.2300-2.el7                                                    base                                               24 k
 perl-constant                                                     noarch                                            1.27-2.el7                                                      base                                               19 k
 perl-libs                                                         x86_64                                            4:5.16.3-294.el7_6                                              base                                              688 k
 perl-macros                                                       x86_64                                            4:5.16.3-294.el7_6                                              base                                               44 k
 perl-parent                                                       noarch                                            1:0.225-244.el7                                                 base                                               12 k
 perl-podlators                                                    noarch                                            2.5.1-3.el7                                                     base                                              112 k
 perl-threads                                                      x86_64                                            1.87-4.el7                                                      base                                               49 k
 perl-threads-shared                                               x86_64                                            1.43-6.el7                                                      base                                               39 k
 unzip                                                             x86_64                                            6.0-20.el7                                                      base                                              170 k

Transaction Summary
=============================================================================================================================================================================================================================================
Install  1 Package (+31 Dependent packages)

If you’re using a private key to access the box, reset the root password prior to logging in.

sudo /usr/libexec/webmin/changepass.pl /etc/webmin root NEWPASSWORD

Once installed, access at https://yourip:10000 (ensure port 10000 is open) with the default username (root) and your reset password.

Leave a Reply

Your email address will not be published. Required fields are marked *