Showing posts from June, 2009

A Note on Traffic Exchange Programs

We understand that our publishers are always looking for ways to attract interested users to their sites. But using third-party tools or services to increase your site traffic may lead to invalid clicks or impressions and result in your account being disabled. For this reason, we'd like to provide you with some guidance about this.

As many of you already know, our program policies strictly prohibit any means of artificially generating ad impressions or clicks, including third-party services such as paid-to-click, paid-to-surf, auto-surf, and click-exchange programs. These programs offer incentives for users to view web pages or click on ads, resulting in activity that is harmful to our advertisers.

We occasionally receive questions from publishers interested in using traffic exchanges to bring traffic to their site. While these services may help advertise your site, we don't recommend using them, as they may also result in similar invalid activity. We realize that you may have q…

Setting-up Nagios in Ubuntu

1. Overview
Nagios is a powerful tool that provides you with instant awareness of your organization's mission-critical IT infrastructure. Nagios allows you to detect and repair problems and mitigate future issues before they affect end-users and customers.

2. Platform
Ubuntu (Desktop) 8.04 Hardy Heron

Username : nagios
Password : "password"

Nagios Version 3.0.3
Nagios Plugin 1.4.13
Nagios NRPE Plugins 2.12 (For clients / Hosts)
NSClient++ Win32-0.3 (For Clients / Hosts)

3. Installation
3.1. Nagios Server
3.1.1. Required Packages

Make sure you've installed the following packages on your Ubuntu installation before continuing.
Apache 2
GCC compiler and development libraries
GD development libraries
You can use apt-get to install these packages by running the following commands:

$ sudo apt-get install apache2
$ sudo apt-get install build-essential
$ sudo apt-get install libgd2-xpm-dev

3.1.2. Account Information

Become the root user.
$ sudo -s

Create a new nagios user account and g…

Linux 2.6.30 Gets New Filesystems

Article Source : Desktop Linux

Linus Torvalds (pictured) announced Linux kernel 2.6.30, adding several new filesystems, including the NILFS2 log-structured filesystem. Linux 2.6.30 enhancements include a local caching layer for NFS data, the RDS server cluster communications protocol, the Tomoyo security module, and support for LZMA and BZIP2 compression algorithms.

The 2.6.30 release arrives less than three months after Linux kernel 2.6.29, which added a wide variety of driver and header updates, WiMAX support, the embedded-oriented Squashfs filesystem, and a preliminary new Btrfs filesystem. The new kernel release further feeds Linux developers' insatiable appetite for new filesystems.

The new NILFS2 treats the whole disk as a consecutive list of blocks (or "log"), and never rewrites blocks. As a result, all modifications and creations are converted into sequential operations, which are said to be faster. Other NILFS2 improvements are said to include the ability to offer …

First Major PHP Update in Years Coming Soon

Thursday, 25 June 2009 17:07 Article Source

PHP 5.3 could be out as soon as Tuesday, June 30th. The new open source language release is a big deal for a lot of reasons, not the least of which is the fact that by my count this is the first major update to PHP since 2006 and the PHP 5.2 release. PHP 5.3 is also interesting in that it includes at least one key feature that was originally intended for PHP 6 (whenever -- if ever -- that release will be out). I spoke with Zeev Suraski, co-founder and CTO at commercial PHP vendor Zend Technologies last month about PHP 5.3. He noted that one key feature backported from PHP 6 into PHP 5.3 is namespaces, which is a way to encapsulate classes and other PHP items more easily.Read rest of the content at Internetnews

Opera Kicks It Up A Notch With Unite

Article Source Linux Magazine
June 26, 2009, 5:22 am

A few weeks ago I took Opera 10 beta for a test drive to see if the Opera folks had a shot at claiming serious share on the desktop. While Opera 10 is the best Opera release yet, it didn’t seem to have any killer features that would drive adoption. Last week, Opera pulled the other one and released Opera Unite: the killer feature that might put Opera over the top...
Read rest of the content at Linux Magazine

Script in Monitoring Your LINUX Server

You can use this as pattern in monitoring you server.

1. Create a file "" and paste the code below:
(this will monitor - apache, java, postfix, mail que, mysql and failed logins)

echo ""
vmstat 5 5|awk -F" " '{print $4" "$5" "$8" "$16}'
echo ---------------------------------
df -k
echo ---------------------------------
ps -eaf | grep httpd
echo ---------------------------------
ps -eaf | grep java
echo ---------------------------------
ps -eaf | grep postfix
echo ---------------------------------
ps -eaf | grep -c smtp
echo ---------------------------------
ps -eaf | grep mysql
echo ---------------------------------
lastb | head

you can add a service check by changing syntax below:

ps -eaf | grep <service>
e.g. ps -eaf | grep named

Checking logs:
tail /usr/local/apache/logs/error_log

2. Create a file "system-check.cron" and insert the code below:

#! /bin/sh

a=`eval …

Ruby on Rails in Ubuntu

Install the Dependencies:

$ wget
$ tar -xzvf ruby-1.9.1-p129.tar.gz

change directory to the extracted directory

$ sudo ./configure
$ sudo make
$ sudo make install

$ wget
$ tar -xzvf rubygems-1.3.4.tgz

change directory to the extracted directory

$ sudo ruby setup.rb
$ gem -v

$ sudo gem install rails --include-dependencies

Terminal Output:
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Successfully installed rake-0.8.7
Successfully installed activesupport-2.3.2
Successfully installed activerecord-2.3.2
Successfully installed actionpack-2.3.2
Successfully installed actionmailer-2.3.2
Successfully installed activeresource-2.3.2
Successfully installed rails-2.3.2
7 gems installed
Installing ri documentation for rake-0.8.7...
Installing ri documentation for activesupport-2.3.2...

Ruby on Rails with Mongrel Clusters Connecting to Oracle Database

First disable selinux.
to check the config edit "/etc/sysconfig/selinux", if you made changes reboot the system.

Install the dependencies:

Development Libraries:
$ yum -v groupinstall "Development Libraries"
$ yum -v groupinstall "Development Tools"

$ yum install zlib zlib-devel

$ yum install readline-devel

$ wget
$ unzip
$ make
$ make install

1. Download and install Ruby 1.8.6 patch 111

Ruby download site :

$ wget
$ tar xzvf ruby-1.8.6-p111.tar.gz
$ cd ruby-1.8.6-p111
$ ./configure
$ make
$ make install

Try checking the version if the installation goes well

$ ruby -v

ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-linux]

2. Download and install Gem 1.0.1

$ wget
$ tar xzvf rubygems-1.0.1.tgz
$ cd rubyg…

Implementing Subversion - CentOS

Note: Apache is a requirement in setting up the Subversion.

1. Installing subversion.

$ yum install mod_dav_svn subversion

2. Configuring subversion's apache.

$ nano /etc/httpd/conf.d/subversion.conf

Make sure that these are loaded:

# Make sure you uncomment the following if they are commented out
LoadModule dav_svn_module modules/
LoadModule authz_svn_module modules/

# Add this directive

<Location /repos>
DAV svn
SVNPath /var/www/svn/repos
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/svn-auth-conf
Require valid-user

3. Create an SVN user.

$ htpasswd -cm /etc/svn-auth-conf svnuser

4. Configure the repository.

$ cd /var/www/ (or the default apache web folder)
$ mkdir svn
$ cd svn
$ svnadmin create repos
$ chown -R apache.apache repos
$ service httpd restart

5. Accessing the URL using a browser.

http://serversIPorDomain/repos or

ref : wiki centos

ProFTPD and VSFTPD Server Installation

Vsftpd installation and simple configuration - CentOS 5.2

1. Install the package via yum.

$ yum install vsftpd.i386

2. The default configuration is located at /etc/vsftpd/vsftpd.conf, edit and apply configurations below.

# Allow anonymous FTP?

# Uncomment this to allow local users to log in.

# Uncomment this to enable any form of FTP write command.

# Add this line to jail users on their home directories.

3. Start VSFTPD

$ /etc/init.d/vsftpd start

Proftpd Vsftpd installation and simple configuration - CentOS 5.2

1. Login as root, download and install the package:

$ wget
$ rpm -ivh proftpd-1.2.10-1.fc1.i386.rpm

2. The default configuration can be found at /etc/proftpd.conf, edit and apply configurations below.

ServerType standalone
DefaultServer on

# Use this to excude users from the chroot
DefaultRoot ~ !adm

# Use pam to authenticate (default) and be aut…