Webmin Installation 24.04LTS: Difference between revisions

From ScottWiki
Jump to navigation Jump to search
(Created blank page)
 
No edit summary
Line 1: Line 1:
 
Download and save the Webmin repository signing key:
curl -fsSL https://download.webmin.com/developers-key.asc | gpg --dearmor -o /etc/apt/keyrings/ubuntu-webmin-developers.gpg
Add the Webmin repository in /etc/apt/sources.list.d/webmin.list:
deb [signed-by=/etc/apt/keyrings/ubuntu-webmin-developers.gpg] https://download.webmin.com/download/newkey/repository stable contrib
Update the repositories and install the package:
apt update
apt install webmin zip libauthen-oath-perl
Allow unattended updates from this repository by add to /etc/apt/apt.conf.d/50unattended-upgrades:
Unattended-Upgrade::Allowed-Origins {
        // Append to end of existing entries
        "Jamie Cameron:stable";
};
Update Apache configuration file /etc/apache2/sites-available/www.conf and add:
<IfModule mod_ssl.c>
    <VirtualHost *:443>
        ProxyRequests Off
        <Location /webmin>
            ProxyPass https://localhost:10000
            ProxyPassReverse https://localhost:10000
        </Location>
        <Proxy "https://localhost:10000">
            SSLProxyEngine on
            SSLProxyCheckPeerCN off
            SSLProxyCheckPeerName off
        </Proxy>
    </VirtualHost>
</IfModule>
Edit /etc/webmin/config to include:
webprefix=/webmin
webprefixnoredir=1
referer=www.example.net
Enable the updates and restart the services:
a2enmod proxy
a2enmod proxy_http
systemctl restart webmin.service
systemctl restart apache2.service
Access the web page via:
https://www.example.net/webmin

Revision as of 19:10, 19 March 2024

Download and save the Webmin repository signing key:

curl -fsSL https://download.webmin.com/developers-key.asc | gpg --dearmor -o /etc/apt/keyrings/ubuntu-webmin-developers.gpg

Add the Webmin repository in /etc/apt/sources.list.d/webmin.list:

deb [signed-by=/etc/apt/keyrings/ubuntu-webmin-developers.gpg] https://download.webmin.com/download/newkey/repository stable contrib

Update the repositories and install the package:

apt update apt install webmin zip libauthen-oath-perl

Allow unattended updates from this repository by add to /etc/apt/apt.conf.d/50unattended-upgrades:

Unattended-Upgrade::Allowed-Origins { // Append to end of existing entries "Jamie Cameron:stable"; };

Update Apache configuration file /etc/apache2/sites-available/www.conf and add:

<IfModule mod_ssl.c> <VirtualHost *:443> ProxyRequests Off

<Location /webmin> ProxyPass https://localhost:10000 ProxyPassReverse https://localhost:10000 </Location>

<Proxy "https://localhost:10000"> SSLProxyEngine on SSLProxyCheckPeerCN off SSLProxyCheckPeerName off </Proxy> </VirtualHost> </IfModule>

Edit /etc/webmin/config to include:

webprefix=/webmin webprefixnoredir=1 referer=www.example.net

Enable the updates and restart the services:

a2enmod proxy a2enmod proxy_http systemctl restart webmin.service systemctl restart apache2.service

Access the web page via:

https://www.example.net/webmin