Skip to main content

Install Webmin through APT

...so that your web-based Linux admin app gets auto-updates.

You probably already know this, but Webmin is a web front-end for administering Linux systems. It really shines when you can't use a graphical user interface, e.g. when your system is 'headless', i.e. not connected to a display, and/or you don't want to use a remote command line.

APT is a popular package manager for Linux systems. It handles software installs, uninstalls, updates, and dependencies so that you don't have to. It has thousands of applications, programs, and packages available. 

But for some reason, you can't natively install Webmin through APT. 

The official Webmin site only gives directions on downloading and installing Webmin manually. This means that updates would not automatically be flagged, and if you're used to the convenience of software updates through APT, this is retrograde.

So I'm going to show you how to add Webmin to APT's sources so that you can install, update, and even remove it through APT.

This guide is written for Raspberry Pi Raspbian, but should be easily translated to other flavours of Linux.

Step: Get signing key

At the command line enter:

wget http://www.webmin.com/jcameron-key.asc

and:

gpg --dearmor -o /usr/share/keyrings/jcameron-key.gpg ./jcameron-key.asc

The 'old' method - used by most other guides - of updating the trusted key list used 'apt-key', which is deprecated. (Unfortunately, this includes the official Wiki.) You can do the two steps in one command with pipes and such but that didn't work for me. Note that the 'apt-key' method still works, it's just not future-proof, and you will be informed of this by alert message.

Step: Add Webmin repository to APT sources list

Raspbian's APT sources can be edited by entering:

sudo pico /etc/apt/sources.list.d/raspi.list

Different flavours of Linux use distinct, but not too dissimilar, file names and locations.

Add the line:

deb [signed-by=/usr/share/keyrings/jcameron-key.gpg] https://download.webmin.com/download/repository sarge contrib

Save and exit.

Step: Install Webmin

sudo apt update

sudo apt install webmin

Step: Post-Install

Webmin runs over HTTPS by default. If you don't have an SSL certificate you can change it to use HTTP by editing the file:

/etc/webmin/miniserv.conf

and changing 'ssl=1' to 'ssl=0', then restarting:

sudo systemctl restart webmin.service

If you followed an older guide and used apt-key to add the trusted key you can remove it by following this guide.

Step: Test

Open a browser on your client computer and give it the URL 'http://server:10000'. Webmin's default port is 10000. A login page should appear.

Comments

Popular posts from this blog

Transcode to PSP using Handbrake

Source: Handbrake 0.9.9.5530 64-bit edition Target: (Phat) Playstation Portable PSP-1000 , System Software: 6.60 Many internet articles on how to transcode video to PSP using Handbrake have not worked for me. Even the most helpful are incomplete. I hope this post will help fill in the blanks. There is no longer any PSP preset for Handbrake, but from what I can gather, the preset had only limited success as the x264 encoder would change syntax and settings between versions. Other presets that may have worked before, like 'iPod' and 'Apple-Universal' now do not. Here is what worked for me, step by step:

Firefox History Statistics - Extracting from Places.sqlite

If you want to take a look at Firefox surfing activity, the about:me add-on is a good start. However, it presents only one view of data and is thus limited in its ability to present more detailed statistics. We will view that data in a different program. So let's first extract it from the browsing history stored in the Places.sqlite file into a CSV file using a Firefox add-on. Step 1 - Locate and copy Places.sqlite to a working location On Windows machines, Places.sqlite is found in a directory similar to: C:\Users\User1\AppData\Roaming\Mozilla\Firefox\Profiles\ .default\places.sqlite Copy the file to another location. The database will be locked while using Firefox, and the SQLite plugin we will use to open it.

Bloomberg JSON data into Libreoffice Calc

LibreOffice Calc has no inbuilt stock market functions, and a popular plugin which offered those has stopped working along with changes to Yahoo Finance. Luckily, we can get the latest quotes from Bloomberg. [2018-12-15] Bloomberg Finance is, understandably, blocking multiple simultaneous requests. A more flexible solution is using a Python Stock Scraper .