Webmin Installation 24.04LTS: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Download and save the Webmin repository signing key: | 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: | 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: | 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: | Allow unattended updates from this repository by add to /etc/apt/apt.conf.d/50unattended-upgrades: | ||
<pre> | |||
Unattended-Upgrade::Allowed-Origins { | Unattended-Upgrade::Allowed-Origins { | ||
// Append to end of existing entries | // Append to end of existing entries | ||
"Jamie Cameron:stable"; | "Jamie Cameron:stable"; | ||
}; | }; | ||
</pre> | |||
Update Apache configuration file /etc/apache2/sites-available/www.conf and add: | Update Apache configuration file /etc/apache2/sites-available/www.conf and add: | ||
<pre> | |||
<IfModule mod_ssl.c> | <IfModule mod_ssl.c> | ||
<VirtualHost *:443> | <VirtualHost *:443> | ||
Line 37: | Line 37: | ||
</VirtualHost> | </VirtualHost> | ||
</IfModule> | </IfModule> | ||
</pre> | |||
Edit /etc/webmin/config to include: | Edit /etc/webmin/config to include: | ||
<pre> | |||
webprefix=/webmin | webprefix=/webmin | ||
webprefixnoredir=1 | webprefixnoredir=1 | ||
referer=www.example.net | referer=www.example.net | ||
</pre> | |||
Enable the updates and restart the services: | Enable the updates and restart the services: | ||
<pre> | |||
a2enmod proxy | a2enmod proxy | ||
a2enmod proxy_http | a2enmod proxy_http | ||
systemctl restart webmin.service | systemctl restart webmin.service | ||
systemctl restart apache2.service | systemctl restart apache2.service | ||
</pre> | |||
Access the web page via: | Access the web page via: | ||
https://www.example.net/webmin |
Revision as of 19:14, 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