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. […]

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 […]

CentOS 5.5 How to export X11 Display

It was a messy to try to export the display to a remote host. Typically it is just matter to use command like xauth <hostname> and set the DISPLAY environment variable properly or better to  use ssh forwarding. On Putty and TeraTerm we need just to enable a check instead from a linux shell you […]