Get vim to paste content without modification

When content is pasted into vim, it tries to automatically detect and re-indent the content. This works most of the time but sometimes it does not, and that can be annoying, but vim would not be so popular if there wasn’t … Continue reading

Posted in Linux Administration | Tagged , | Comments Off on Get vim to paste content without modification

Change Date and Time format for LinuxMint panel applet

Modern Linux distributions like LinuxMint provide a nice GUI which is highly configurable. There are so many options and possibilities that most users new to it cannot find where things are configured. Finding the right options means taking some time to … Continue reading

Posted in Linux Administration | Tagged , , , | Comments Off on Change Date and Time format for LinuxMint panel applet

Manage SSH-keys with the SSH-agent

Many webservices generate ssh keys to access their service. With the amount of services the number of SSH keys grows. To avoid dealing with the keys in the command line and the ssh_config(5), you can simply add the ssh-key to the … Continue reading

Posted in Linux Administration, Security | Tagged , , | Comments Off on Manage SSH-keys with the SSH-agent

Create a luks encrypted partition on Linux Mint

Encryption is not only for someone who has something to hide. There are simple concerns like a lost or stolen laptop that justify a full disk encryption. There are only a few steps necessary to create a encrypted partition. In … Continue reading

Posted in Linux Administration, Security | Tagged , , | Comments Off on Create a luks encrypted partition on Linux Mint

Dimension rrdtool databases with years worth of values

To create an rrd datbase file needs a certain amount of understanding of what you monitor, and for how long the data needs to be kept, and of course, storage space is also a consideration when creating a new rrd … Continue reading

Posted in Database, Monitoring | Tagged , | Comments Off on Dimension rrdtool databases with years worth of values

Configuring vim for dark terminal windows

On CentOS, vim is installed with a default configuration. These defaults might be right for some users but not for everyone. I will describe the two settings I personally find most annoying for my setup. One of the assumtions in the … Continue reading

Posted in Linux Administration | Tagged | Comments Off on Configuring vim for dark terminal windows

Recompress git repository

Git repositories are getting bigger and bigger. To reduce the disk space used by a repository, git provides some housekeeping functionality. Compared to other version control systems, git stores the complete history in each cloned repository if not told otherwise. This can … Continue reading

Posted in Version control system | Tagged | Comments Off on Recompress git repository

Modify file and directory date

Sometimes it is necessary to change a file or even a directory’s timestamp. This sounds easy, but most GUI utilities installed out of the box on OS X as well as on Linux don’t let you change a file’s timestamp. … Continue reading

Posted in Linux Administration, MacOSX | Tagged , | Comments Off on Modify file and directory date

Shrink sparse cqow2 disc image

There might be cases when a VM temporarily used a lot of disk space which is then not needed any more. The sparse disk image format qcow2 will grow as the disk space is used, but it does not automatically shrink. … Continue reading

Posted in Linux Administration, Virtualisation | Tagged , | Comments Off on Shrink sparse cqow2 disc image

Perform a portscan using netcat

To perform a port scan, most of the time we think about a separate program. Sometimes it is not necessary to look that far. On most Linux systems netcat is already installed or can be installed easily from a repository. Continue reading

Posted in Linux Administration, Security | Tagged , , | Comments Off on Perform a portscan using netcat