Easy Linux backups with Backupninja

There are actually three ways to make scheduled backups on Linux:

  1. Spend the rest of your life learning how to setup Bacula
  2. Spend the rest of your life writing shell scripts
  3. Spend 15 minutes to install and setup backupninja and go enjoing life (or trolling on imageboards;)

I've tried with 1-2 but found that this ways are not for me and suggesting the same

Read More »

LDAP & Samba management with LAM on Debian Squeeze

1. Console Tools

There are a number of console tools for LDAP and Samba control:

  • smbldap-groupadd
  • smbldap-groupmod
  • smbldap-passwd
  • smbldap-useradd
  • smbldap-userinfo
  • smbldap-usermod
  • smbldap-groupdel
  • smbldap-groupshow
  • smbldap-populate
  • smbldap-userdel
  • smbldap-userlist
  • smbldap-usershow

Your are free to use them in interactive way or write some scripts. Some operations e.g. import of users can be done much more faster with their help than in any GUI tool. Names tell enough about their functioinality.

2. Ldap-account-manager

This tool is quite good for LDAP+Samba combination

Read More »

Using SNORT as service IPS


There are lots of resources related to SNORT, but in most cases it proposed to be used as tool to watch on network activity. This article describes how to use SNORT as Intrusion Prevention System (IPS) to watch and controll not all network traffic but the only can be described with iptables (Linux firewall) rules. I will not teach you

Read More »

Apacheless web-server on Debian Squeeze with nginx and php-fpm

Threre are tons of information on now to setup "parts" that making fully functional web server plaftorm, but usually without giving summary view. We're going to explain all steps on you how to get your LAMP web server up. Things you should have:

  1. Virtual or real personal (dedicated) server hosting. You'd better have 5Gb of disk space and 256 RAM. Not

Read More »

Transparent cache in Nginx


Let's assume you have website that is regulary occures under Slashdot effect. We should perpare it for highload.

Starting from 0.8.46 nginx has some options to enable transparent cache. Transparent for every visitor, in other words this cache if effective until user is not logged in. This options will help servier be live when user visits are rapidly grown. To acquire

Read More »

Howto reset MySQL root password

Yes, this is the probably what we all done before, and tons of blog tips are cached by Google, but I want to have my own note for this).

Well find your MySQL configuration file that is named my.cnf. You may use locate index search in your Linux box if you previously installed it as follows

$locate my.cnf

or use whereis command (Hey,

Read More »

Build kernel from 3rd-party sources on Debian 5

There are several way to build your kernel on Debian Linux and building it from kernel-sources is most recomended way, but it's possible that you need to build it from original tarball or some non-offical patchset. This artical describes the way to do this without turning your system into Slackware.

Install necessary packages:

$sudo apt-get install debhelper mc kernel-package libncurses5-dev tar bzip2


Read More »

Install Liferay 6 on Linux with external MySQL database


Liferay is bundled with HSQL database included, but you can install with external database usage enabled. Assume you have installation of MySQL and your linux distribution is not very different from Ubuntu, CentOS or other widely used.


First of all check your database server supports TCP connections in addition to default socket. You should have the following line uncommented in [mysqld]

Read More »

Tomcat6, Nginx and PHP in one Linux box


You should install tomcat either from packages

$sudo apt-get install tomcat6 tomcat6-admin

or from downloadable bundle and ensure it's running on port 8081 by finding in server configuration file (server.xml) lines similar to the following:

<Connector port="8081" protocol="HTTP/1.1" connectionTimeout="20000"

Read More »

Syncronize WebDAV with local folder

WebDAV is data exchange protocol that has some benefits in comparison with plain old FTP and SMB.

  • It's supposed to be more secure
  • It supports some advanced file features like locks and versioning

It is widely used by file hostings, document management systems: GoDaddy Online File Folder, Yandex.Disk . It is supported natively but all modern operating systems

Read More »