+64-3-3595735

Category Archives: Linux

Convert MailDir Emails To Eml or Mbox Format

The Problem: I have a client who is trying to find emails that have gone missing. The mail server they have their emails on stores emails in an MailDir Email format, the format commonly used by Amivs / Postfix. My first thought was “How can I full text index MailDir emails”. Other than install new […]

Mount A VBox VDI Disk File With LVM Structure

The problem: A vbox virtual machine had failed to start. It was not recovering itself and was in an environment where the vbox image was being run headless. The data needed recovering so we needed to mount the vdi virtual disk file. Mounting The VDI Disk File The first step was to convert it to […]

Ubuntu 22.04.3 SSH Unable To Disable Password Authentication – Solved

The Problem ( Summary) Disabling ssh password authentication in sshd_config, no longer works. After disabling it you can still log into an Ubuntu server (22.04.3 in my case) using a password. There is a description of my process and a fix below. My Experience I’ve just installed Ubuntu 22.04.3 LTS. Set up SSH as I […]

IRedMail Server LetsEncrypt Certification Renewal Problem – Certbot

IRedMail Server Certification Renewal Problem I run an iRedmail server with iRedAdmin pro. we use LetsEncrypt certificates. There is a standard cronjob to renew the certificates. Unfortunately this failed and I ended up with an expired LetsEncrypt certificate. I then ran into a problem where I couldn’t automatically renew as the certs were expired. https […]

Installing VMWare Tools – The path “” is not valid path to the gcc binary

The issue of the gcc binary not being found has old answers when looked up in Google. The answers also offer a solution that is not suitable. This answer is for when installing VMWare tools on Ubuntu, Lubuntu, Mint Linux etc but the principles will be the same for RedHat, Debian, Suse CentOs etc – […]

Recursive Actions On Folders using BASH in Linux

Previously I posted how to reset file permissions recursively using Linux Bash / Command Line. Building on that is how to recursively remove files and folders using bash on a Linux box. find . -type d -name ‘folder_*_name’ -exec rm -r {} + Using find to find a folder (-type d) or a file (-type […]

Reset permissions for files and folders in Linux / Bash

Three simple command lines to sort out folder and file permission and ownership issues in Linux. The reason for using two different commends for the files and folders is you don’t want executable bit set on files (unless you plan on running it) and folders don’t work well without it. To change all the directories […]