Triggering Commands on File/Directory Changes in Ubuntu

He we will introduce a new linux tool called Incron. It is similar to cron, but instead of running commands based on time, it can trigger commands when file or directory events occur. First of all, install incron using the command

sudo apt-get install incron

Before starting to use incrontab, we must give permissions for a user to . . . → Read More: Triggering Commands on File/Directory Changes in Ubuntu

Custom .screenrc Configuration File

Screen may be the most useful Linux applications when it comes to getting things done through the terminal. This custom screenrc configuration file will provide you with a permanent caption line at the bottom of each window. This caption line will enable you to easily keep track of each terminal window and provide other helpful information . . . → Read More: Custom .screenrc Configuration File

Check Bandwidth Usage In Ubuntu

Install bwm-ng and/or iftop as given below:

sudo apt-get install bwm-ng
sudo apt-get . . . → Read More: Check Bandwidth Usage In Ubuntu

Free Up Cache Memory in Ubuntu

Ever wondered how to remove the cache memory in Ubuntu? Linux kernels 2.6.16 and newer provide a mechanism to clear the inode, page, and dentry caches on demand. All you have to do is echo a value to the proc filesystem, and you’re done. Follow the recipe below:

As this is a non-destructive operation and dirty objects . . . → Read More: Free Up Cache Memory in Ubuntu

Inspecting Network Cards In Ubuntu

I was planning to upgrade my home network into Gigabit. Before I start to spend money on it, I wanted to check the capabilities of the network cards on my laptop. Here is how I did it.

Install ‘hwinfo’. Its quite an useful tool as it can check the configuration of any hardware. Refer the manpage of . . . → Read More: Inspecting Network Cards In Ubuntu

Scheduling Commands With Crontab In Ubuntu

The following applies to any linux distribution

Crontab

Crontab is an integral part of most Linux distributions.It is a simple text file that holds a list of commands that are scheduled to be run at specified times. These commands, and their relative run times, are controlled by the ‘cron’ daemon and are executed in the system background.

Each user . . . → Read More: Scheduling Commands With Crontab In Ubuntu

Monitoring Real-time User Logins In Ubuntu 8.04 Server

‘whowatch’ is a console, interactive users and process monitoring tool. It displays information about the users currently logged on to the machine, in real-time. Besides the standard informations such as login name, tty, host and the user’s processes, the type of the connection (ie. telnet or ssh) is also shown. A particular user can be selected . . . → Read More: Monitoring Real-time User Logins In Ubuntu 8.04 Server

Migrating MediaWiki To A New Server

Today I decided to move my MediaWiki (MW) from the ailing old server to the new one. Overall it was a fairly simple process but I wanted to share a few things that I learned from the experience.

1. The database

a. Creating the backup

The very first thing that I had to do was to create a safe . . . → Read More: Migrating MediaWiki To A New Server