Categories
Uncategorized

OpenWRT on Ubiquiti AirRouter

Recently I installed OpenWRT on Ubiquiti AirRouter as original firmware lacks in couple of areas. Installation is easy and straightforward as all you need to do at the time of writing this post is to use Attitude Adjustment release.

Categories
SysOps

Simple shell script to backup MySQL databases

Simple shell script to backup MySQL databases.

Categories
Uncategorized

Ubuntu – Nexus 7 basics

I spent all day testing custom roms on Nexus 7 but finally decided to roll back everything and use stock rom with encryption. I will describe here how to unlock device, install recovery image, return to stock rom and root Nexus 7 (Android 4.2) using Ubuntu.

Categories
Uncategorized

Debian – How to read DHCP packets

I am playing with DHCP option 82 so I need to read DHCP packets. The easiest way to do this is to use dhcpdump by Edwin Groothuis because of very simple usage and friendly output.

Categories
Uncategorized

Debian – How to change time zone

This is rarely performed task but an easy one. To change time zone you need to reconfigure tzdata package.

Categories
DevOps

How to remove comments from a shell script

The easiest way to remove comments from a shell script is to use sed (stream editor for filtering and transforming text) command.

Categories
Uncategorized

Debian – How to replicate data over network using GlusterFS

Recently I needed to replicate data between two Linux servers so I could mitigate potential hardware failure. To achieve this goal I used GlusterFS – an Open Source distributed file system. In this example I will use Debian Wheezy as I want to try more recent version of GlusterFS.

Categories
Uncategorized

How to determine when daylight saving time changes

When you’re not sure when daylight saving time changes you can quickly check it using the zdump command which is available on every *nix system.