Home › Category Archives › Linux

Putting Your Website into Maintenance Mode

Sometimes it might be necessary to temporarily disable your website. This could be due to a pending update, a security issue that needs to be fixed or any other reason for which you don’t want any user to access the site. …

Continue reading »

Installing a Mailserver with Postfix, Dovecot, SASL, LDAP & Roundcube

Installing a mailserver is a quite complex matter because several components are involved. Since there are many different operational scenarios, there are many different possible configurations, thus lots of different howtos around the internet. In this howto I’m going to …

Continue reading »

Network Monitoring With A Bash Script

To perform some basic network monitoring tasks without installing any software like Nagios, you can just run a bash script on your workstation. I have written a little script that checks my hosts by periodically sending pings and port checks. …

Continue reading »

Basic OpenLDAP Installation & Configuration

I’m not a huge fan of LDAP because I don’t like the handling of it, but if a directory service is needed it’ll most probably be an OpenLDAP, so sometimes one just has to deal with it. I’ll use this …

Continue reading »

Data Recovery With Foremost & Scalpel

Foremost is a small, easy to use tool that can recover deleted or lost files from storage devices and disk images. It has built-in support for the following filetypes: avi bmp dll doc docx exe gif htm jar jpg mbd …

Continue reading »

Testing A Network Connection with Iperf

Iperf is a nice little tool to measure networking performance/bandwidth. You need two computers for this. One is acting as the server listening for incoming connections. The other one is the client that connects to the server. If the connection …

Continue reading »

Enabling SSL On Your Webserver

In this tutorial I will describe how to enable SSL on an Apache2 webserver running on an Ubuntu 12.04 machine. The use of SSL is necessary if the communication between client and webserver needs to be encrypted.   1. Certificate …

Continue reading »

SSH With Keyfiles

If you do a lot of SSHing it might be annoying to remember all the passwords and having to enter them all the time. In this case it can be useful to use a keyfile instead of a password to …

Continue reading »

MySQL Root Password Reset

Change The Root Password If you still know the root password, you can change it using the following command: mysqladmin -u root -p password   Reset The Root Password If you have forgotten your root password, you can do the …

Continue reading »

Creating a Certification Authority and a Server Certificate on Ubuntu

The following steps will walk you through the creation of your own CA, which is necessary to sign certificates. Signed certificates can then be used for SSL-protected webservers or for authentication. The good thing is that you don’t have to …

Continue reading »