Mail Server with SSL/TLS built on Dovecot and Postfix using MySQL backend

Install needed packages: apt-get install postfix postfix-mysql dovecot-core dovecot-imapd dovecot-lmtpd dovecot-mysql dovecot-sieve dovecot-managesieved mysql-server-5.6 postfix postfix-mysql During the Postfix install, choose "Internet Smarthost" and leave the values at their defaults, we will replace the configuration later.   Create database: Connect to the mysql console using root and execute these: CREATE DATABASE mailserver; USE mailserver; CREATE TABLE […]


Installing Flash on Fedora 22 to work with Amazon Instant Video

First install the Flash plugin from the negativo17 repository. Execute the following commands as root: yum-config-manager –add-repo=http://negativo17.org/repos/epel-flash-plugin.repo yum -y install flash-plugin Update SELinux: setsebool -P unconfined_mozilla_plugin_transition=off Basically this will make the flash plugin work already. You will have to restart your browser. For Amazon Instant Video however, you also need to install this additional package […]


Setting up mysql replication to Amazon RDS

If you want to set up a replication between an RDS and an existing mysql server environment, you might encounter privilege errors, when trying to execute commands like "change master to…" or "stop slave;" on the RDS. Amazon RDS comes with a bunch of stored procedures that you have to use instead: MySQL Command Stored Procedure […]


Create Secure FTP Jails with OpenSSH on Debian/Ubuntu

If you don't have already OpenSSH-Server on your machine and you're connected probably via SSH, then we need to install it: apt-get update apt-get install openssh-server Next we modify the file /etc/ssh/sshd_config: Comment out the following line by prepending a #: Subsystem sftp /usr/lib/openssh/sftp-server And in the same file add this block right at the end: […]


Creating a Glusterfs volume replicated across 2 hosts

This worked perfectly on Ubuntu 14.04, but should work just the same on other Ubuntu or Debian-based distributions.  First of all, install glusterfs on both hosts: apt-get install glusterfs-server I suggest, for simplicity to but the 2 hostnames in /etc/hosts on each server, for example: 192.168.18.11 srv01 192.168.18.12 srv02 I'm going to use those hostnames in […]


Installing RatticWeb on Ubuntu 14.04

First a few prerequesites: apt-get update apt-get install git libxslt-dev libxml2-dev libldap2-dev libsasl2-dev libmysqlclient-dev python-dev python-virtualenv   Create a virtual environment and run the actual installation: mkdir ~/venv/RatticWeb mkdir -p ~/venv/RatticWeb virtualenv ~/venv/RatticWeb source ~/venv/RatticWeb/bin/activate git clone https://github.com/tildaslash/RatticWeb.git cd RatticWeb/ pip install -r requirements-mysql.txt -r requirements-dev.txt cat > conf/local.cfg <<EOF [ratticweb] secretkey = [ENTER SOMETHING […]


Mount Google Drive on your server using ocamlfuse

Add the repository:  add-apt-repository ppa:alessandro-strada/ppa Install google-drive-ocamlfuse: apt-get update apt-get install google-drive-ocamlfuse Next go to https://console.developers.google.com/project and create a new project for your access to Google Drive. Then go into your project, to APIs and Authentication, then APIs and activate Drive API. Finally create an OAuth ClientID (web application). You will need the Client-ID and secret for the next step: […]


Install Haproxy 1.5 as transparent loadbalancer for http and https on Ubuntu Trusty

I've been searching and testing this quite a while until I had a working setup. There are a lot of articles out there, but here is a solution that has worked for me. First install haproxy 1.5: apt-add-repository ppa:vbernat/haproxy-1.5 apt-get update apt-get install haproxy It is important that you use at least version 1.5 of […]


Unattended upgrades on Debian

There's a simple way of having unattended upgrades, having the possiblity to backlist packages or limit upgrades for example to security patches etc. apt-get install unattended-upgrades apt-listchanges dpkg-reconfigure -plow unattended-upgrades Edit /etc/apt/apt.conf.d/50unattended-upgrades with this content: // Automatically upgrade packages from these origin patterns // In this case we install only security updates Unattended-Upgrade::Origins-Pattern { //   […]


Why you cannot delete your own files on MacOS

Did it occur to you on MacOS that you could not delete a file in your home folder that obviously belongs to you? This is simply because of some flags. You can show them like this: ls -lO test.txt -rw-r–r– 1 christian staff uchg 7 Feb 2 10:11 test.txt When you try to delete it […]