Tag: Ubuntu

Terraform set timezone upon virtual machine creation

Sometimes it’s important to set proper timezone on the server and recently I’ve got this task: set proper timezone automatically based on the server’s location in Azure Cloud. Moreover, I needed timezone to be set automatically by Terraform upon virtual machine creation.  In my case I had Ubuntu VMs in Azure and here is the …

Continue reading

key type ssh-rsa not in pubkey accepted algorithms

I was running Ubuntu 20.04 happily, and then over the weekend decided to back everything up and install 22.04. I installed my previous keys but I couldn’t login via MobaXTerm remotely as I usually did with 20.04. I logged in with a console and checked /var/log/auth.log . Here are the messages generated upon my tries …

Continue reading

Failed to add /run/systemd/ask-password to directory watch: No space left on device

Upon installing Azure log collecting agent on Ubuntu machine I encountered the following error: Failed to add /run/systemd/ask-password to directory watch: No space left on device df command showed a lot of space so it’s not about a space itself but about inodes.

Continue reading

How to Boot Single User Mode in Ubuntu

boot-into-single-user-mode

Single User Mode (sometimes known as Maintenance Mode) is a mode in Unix-like operating systems such as Linux operate, where a handful of services are started at system boot for basic functionality to enable a single superuser perform certain critical tasks. It is runlevel 1 under system SysV init, and runlevel1.target or rescue.target in systemd. …

Continue reading

How to store /var on a separate partition

What is the correct way to store /var on a separate partition? First prepare a new partition (e.g. with parted or fdisk and mkfs). For example, let’s create a new partition in fdisk:

then choose n for the new partition and go through configuration steps. choose w at the end to write changes to …

Continue reading

Ubuntu disk full error: apt-get unable to install or remove

Ubuntu

I encountered the following error while upgrading my Ubuntu 12.04 server. Now apt-get is unable to install or removed any package.

Though I have a lot of free space.

Continue reading

How To Install And Configure Mailman On Ubuntu

In this tutorial I will configure a virtual host with the hostname lists.example.com where I will install Mailman. lists.example.com is also the right part of the mailing list email addresses that will be configured in Mailman, i.e., mails to a mailing list will have to be sent to the address <listname>@lists.example.com. As your hostname will …

Continue reading

Colorize log files on CentOS and Ubuntu using ccze tool

ccze is a wonderful tool that brings real joy to the arduous task of reading or searching thru log files. It uses a modular approach to support custom colour formatting for popular applications such as Apache, Postfix, Exim, etc.

Continue reading