Tag: Ubuntu

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