Posts

Showing posts from June, 2009

A Note on Traffic Exchange Programs

Image
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

Setting-up Nagios in Ubuntu

Image
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 nagi

Linux 2.6.30 Gets New Filesystems

Image
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 of

First Major PHP Update in Years Coming Soon

Thursday, 25 June 2009 17:07 Article Source internetnews.com 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 "system-check.sh" and paste the code below: (this will monitor - apache, java, postfix, mail que, mysql and failed logins) echo echo "youserver.com.ph" date 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 _______________ Note: 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 c

Ruby on Rails in Ubuntu

Install the Dependencies: Build-essentials Ruby: $ wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p129.tar.gz $ tar -xzvf ruby-1.9.1-p129.tar.gz change directory to the extracted directory $ sudo ./configure $ sudo make $ sudo make install RubyGems: $ wget http://rubyforge.org/frs/download.php/57643/rubygems-1.3.4.tgz $ tar -xzvf rubygems-1.3.4.tgz change directory to the extracted directory $ sudo ruby setup.rb $ gem -v Rails: $ 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

Ruby on Rails with Mongrel Clusters Connecting to Oracle Database

Note: 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" Zlib: $ yum install zlib zlib-devel Readline: $ yum install readline-devel Freeimage: $ wget http://nchc.dl.sourceforge.net/sourceforge/freeimage/FreeImage3120.zip $ unzip FreeImage3120.zip $ make $ make install 1. Download and install Ruby 1.8.6 patch 111 Ruby download site : http://www.ruby-lang.org/en/downloads/ $ wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p111.tar.gz $ 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 Output: ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-linux] 2. Download and install Gem 1.0.1 $ wget http://rubyforge.org/frs/download.php/29548/rubygems-1.0.1.tgz $ tar xzvf

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/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so # 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 </Location> 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 http://192.168.0.xxx/repos 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? anonymous_enable=NO # Uncomment this to allow local users to log in. local_enable=YES # Uncomment this to enable any form of FTP write command. write_enable=YES # Add this line to jail users on their home directories. chroot_local_user=YES 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 http://software.virtualmin.com/gpl/centos/5.2/i386/proftpd-1.3.0a-3.el4.i386.rpm $ 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 authenticat