Set recursive permissions on only files or directories

Changing permissions can be tricky, because either way, permissions are on of the corner stones of security. It could be that you want to change permissions recursively on all folders, but not on files, and vice versa. Unfortunately, a lot of people don’t take that into account. So here’s a quick tip on how to achieve … Continue reading Set recursive permissions on only files or directories

Migrate from MySQL to PostgreSQL

Like a lot of developers, I’ve been watching the movement of MySQL since it has been acquired by Oracle. Since the acquisition, a lot of MySQL forks have been created. Think of MariaDB and Drizzle. I’ve also been looking at PostgreSQL. Since long, I’ve wanted to start personal project using PostgreSQL. So I decided to migrate … Continue reading Migrate from MySQL to PostgreSQL

Creating Debian packages with checkinstall

Lately I’ve been working on automating my server infrastructure. One of the tasks at hand was to simplify the way I install certain software. For instance, for my web-stack, I compile ruby and nginx manually, so I can compile them using specific parameters. When I started researching this, I got overwhelmed with all different kind … Continue reading Creating Debian packages with checkinstall

Configuration management with Ansible: Playbooks & Execution

In my previous post, I described how you could setup Ansible. At this point, you are able to send commands to your hosts. Although running ad hoc tasks is useful, I won’t be covering that here. If you want to know more about running command line ad hoc tasks check out the detailed examples on … Continue reading Configuration management with Ansible: Playbooks & Execution

Getting started with configuration management: Ansible

Lately I’ve been working on configuration management for my infrastructure. Since I started freelancing, the number of clients have grown and so did my infrastructure. Managing one server isn’t a daunting task, but from the moment you need to expand, things get more serious. At this point, my infrastructure consists of 1 database server, 1 … Continue reading Getting started with configuration management: Ansible

Ubuntu Virtualbox: Setting High Screen Resolutions

Virtualizing environments these days is a breeze. The simplest way of doing so is using Oracle Virtualbox . One thing I’ve noticed installing Ubuntu 12.04 was the fact that I was unable to select 800×600 or 1024×768 in screen resolution. It turns out that you are obligated installing the virtualbox guest additions. Fire up your terminal and … Continue reading Ubuntu Virtualbox: Setting High Screen Resolutions

Setup chroot Environment

A chroot environment is essentially a complete self-contained Linux installation that is nested within the main system. The reason that I’m looking into setting up a chroot environment is for building custom ubuntu packages. Instead of compiling and running everything on my main machine, it’s best practice to do that in a chroot. This way, your … Continue reading Setup chroot Environment