Apache document root in users home directory with SELinux

Serving web-content from a user’s home directory allows the user to conveniently upload files. By default, the apache configuration in many Linux distributions assumes content is uploaded to a single directory owned by the webserver’s user, but it might be … Continue reading

Posted in Security, Web technologies | Tagged , , , | Leave a comment

Align a partition on a hard disk

New disks need to be prepared for use. When using a hardware raid like explained in Create hardware raid on HP via hpacucli some partitioning tools even show an error message. To prepare a disk for use, the disk needs … Continue reading

Posted in Linux Administration | Tagged , , , | Comments Off on Align a partition on a hard disk

Rescue Data from corrupt SD card

SD cards are used in a variety of devices like digital cameras. Many times SD cards get removed from the devices, connected to a PC and reconnected back to the device. At some point, the SD card might be removed … Continue reading

Posted in Rescue | Tagged , , , , , , | Comments Off on Rescue Data from corrupt SD card

Mount raw image of entire disc

Raw disc images are very common, they include things like images created using dd for backups and virtual machine disk images. To access the disc image content means the disk image needs to be mounted. Images from a partition can … Continue reading

Posted in Linux Administration, Rescue | Tagged , , , | Comments Off on Mount raw image of entire disc

Testing environment setup using Vagrant

Setting up a test environment with many different operating systems and versions can be a time consuming task. Installing the different operating systems and configuring them for tests or development can take up a lot of time. Vagrant makes this … Continue reading

Posted in Linux Administration, Virtualisation | Tagged , , , , | Comments Off on Testing environment setup using Vagrant

Create hardware raid on HP via hpacucli

Configuring a new hardware raid on a HP server can be done comfortably from the Linux command line without restarting the server. HP provides a small command line tool for this job. The following shows how this tool can be … Continue reading

Posted in Linux Administration | Tagged , , , , , | Comments Off on Create hardware raid on HP via hpacucli

Linux Mint – Mount an NFS share automatically

Linux Mint comes pre-installed with all components to mount Windows File sharing (SMB/CIFS) but does not support NFS out of the box. The following post will explain how to enable Linux Mint to mount a NFS share. Additionally the NFS … Continue reading

Posted in Linux Administration | Tagged , , , | Comments Off on Linux Mint – Mount an NFS share automatically

Create GnuPG key with sub-keys to sign, encrypt, authenticate

In order to use a GnuPG key on a smartcard or Yubikey, a GnuPG key needs to be created. This post will show you how to create a GnuPG key with sub-keys for signing, encryption and authentication. The authentication key can … Continue reading

Posted in Encryption, Security | Tagged , , , , , , | Comments Off on Create GnuPG key with sub-keys to sign, encrypt, authenticate

apt – install the package that contains a specific file

Sometimes a command that you execute complains about a dependency being missing on the system. From the file name in the error message it is often not possible to know exactly which package needs to be installed to resolve the … Continue reading

Posted in Linux Administration, Security | Tagged , , , , , , , | Comments Off on apt – install the package that contains a specific file

Understand the basics of rrdtool to create a simple graph

rrdtool is a powerful tool to store time series data and create graphs. It is very easy to create your first simple graph. This how-to will show the quickest way to generating your first graphs while explaining the options used. rrdtool is used in … Continue reading

Posted in Monitoring | Tagged , , | Comments Off on Understand the basics of rrdtool to create a simple graph