Opening ports using iptables

To open a port by using iptables you can use the iptables command, assume for example that you want to open port 25, you have to issue on the shell the following command iptables -I INPUT -p tcp –dport 25 -j ACCEPT where -I instruct to not add the rulle after the deny all rule [...]

How to mount LVM partition on Ubuntu

Mounting is an easy process to do, provided the filesystem type you are using is supported. What happen when you have an LVM formatted disk, and you need to mount it because the disk cannot be booted and a hell lot of valuable data kept inside?? Do not worry, because the solution is here……. 1. [...]

Database Replication with Slony-I

Whether you need multiple instances of your database for high availability, backup or for a no-downtime migration to a new version, this versatile tool will keep all of them in sync. Here follows a useful article found on Linux Journal about setting a Replication with Slony-I. http://www.linuxjournal.com/article/7834?page=0,0 Related Articles DRBD: For When it Absolutely, Positively, [...]

Delete Files Older Than X Days on Linux

The find utility on linux allows you to pass in a bunch of interesting arguments, including one to execute another command on each file. We’ll use this in order to figure out what files are older than a certain number of days, and then use the rm command to delete them. Command Syntax find /path/to/files* -mtime [...]

Installing Java on CentOS 5.5

Trying to use the standard java distribution from Oracle (….Sun was acquired from Oracle…) could be a little confusing so I just link another blog were you find described the adopted solution for CentOS 5.2 but that is applyable also to CentOS 5.5. http://chrisschuld.com/2008/10/installing-sun-java-on-centos-5-2/

Follow

Get every new post delivered to your Inbox.