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 …
Aug 26 2022
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 …
Apr 30 2021
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.
Feb 02 2021
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. …
Nov 04 2020
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 …
Oct 27 2018
I encountered the following error while upgrading my Ubuntu 12.04 server. Now apt-get is unable to install or removed any package.
Unpacking linux-headers-3.13.0-62 (from .../linux-headers-3.13.0-62_3.13.0-62.102~precise1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.13.0-62_3.13.0-62.102~precise1_all.deb (--unpack):
unable to create `/usr/src/linux-headers-3.13.0-62/arch/arm/include/asm/ptrace.h.dpkg-new'
(while processing `./usr/src/linux-headers-3.13.0-62/arch/arm/include/asm/ptrace.h'): No space left on device
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Though I have a lot of free space.
Nov 11 2017
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 …
Mar 24 2016
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.