Simplified Administration: Installing Webmin on Raspberry Pi 5

,

The Raspberry Pi 5, with its improved processing power and versatility, opens up a world of possibilities for astrophotography enthusiasts, but the setup and administration of it can be rather daunting for anyone less familiar with Linux terminals, command lines, and remote desktop utilities such as VNC and RDP. A popular solution for this is Webmin, a web-based system administration tool, that simplifies the management of your Raspberry Pi 5 through a graphical user interface. In this guide, we’ll walk you through the process of installing Webmin on Raspberry Pi 5, making system administration tasks a breeze.

This article describes a procedure to install software on a Raspberry Pi 5 with 8G RAM running Raspberry Pi OS (64-bit) (Debian v.12 bookworm) booted directly from a 1TB NVMe SSD PCIe drive. This procedure may work for other configurations, so please do let us know if it does, or tell us about any issues you faced and your configuration. Thanks!

Prerequisites

  • Raspberry Pi 5 board with Raspberry Pi OS (or any other compatible operating system) installed and configured.
  • For the best possible performance, check out how to Turbocharge Your Raspberry Pi 5: Booting from NVMe SSD.
  • Stable internet connection for downloading software packages.
  • Basic familiarity with the Raspberry Pi environment, including how to open a terminal and run commands.

Step 1: Add the Webmin Package Repository to the Repository Sources

The Webmin package is downloaded from a repository that must be added to the Advanced Packaging Tool (APT) repository sources list. The repository source definition is added as a new file in the sources lists directory using the following command:

sudo nano /etc/apt/sources.list.d/webmin.list

Add the stable package repository location to the file:

deb [signed-by=/usr/share/keyrings/debian-webmin-developers.gpg] https://download.webmin.com/download/newkey/repository stable contrib

Save and exit with Control + O and Control + X.

Step 2: Prepare Your Raspberry Pi 5

Begin by ensuring that your Raspberry Pi 5 is up to date. Open a terminal or SSH session and run the following commands:

sudo apt update && sudo apt upgrade

This will update the package lists and upgrade any installed packages to their latest versions.

Step 3: Install Webmin

To install Webmin, run the following command:

sudo apt install webmin

This command will download and install the latest stable Webmin application along with any necessary dependencies.

Step 4: Access Webmin Using a Web Browser

To access the Webmin service, point your web browser to port 10000 at your Raspberry Pi 5’s host name or localhost if accessing from a browser directly installed, and using the SSL enabled service type e.g.:

https://orion.local:10000

The default Webmin service employs a certificate that your web browser will reject since it is only intended to be used for initial installation:

You will need to accept the browser warning and connect anyway, and the address bar will show the connection as being insecure, which is fine for now:

You can now login using the same username and password that you use to access your Raspberry Pi 5 directly. Once logged in, you are presented with main Webmin landing page. You now have two choices to get rid of that SSL warning:

  1. Disable SSL, which means that hereafter you will access the Webmin service using a regular web address (http).
  2. Install and configure a valid SSL certificate and private key.

For now, we will just go with option 1 and disable SSL, so first expand the Webmin cog icon in the sidebar menu, the click on Webmin Configuration, and set the Enable SSL? option to No.

Now hit the Save button to update the configuration, at which point the page is redirected back to the login page using the regular non-SSL address. You will then likely receive a browser cache error, so just go ahead and clear your browser history to remove the cache then close and reopen your browser:

Now you should not see the SSL error anymore. After successfully logging in again, you’ll be greeted by the Webmin dashboard, where you can start managing your Raspberry Pi 5 and its services using the intuitive web interface.

Conclusion:

With Webmin installed on your Raspberry Pi 5, you now have a powerful tool at your disposal for system administration tasks. Whether you’re managing users, configuring network settings, or monitoring system resources, Webmin simplifies the process with its user-friendly interface.

Administration, Raspberry Pi 5

Leave a Reply

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