Set up an Apache web server cluster in 5 easy steps

August 27, 2007 0 comments
A server cluster is a group of independent servers that are managed as a single system for higher availability, easier manageability, and greater scalability.

In a Web server environment, server clusters can be defined in two basic ways:

Active/Active
  • There are multiple independent, redundant servers
  • The load is distributed through round-robin DNS
  • The load is balanced by a load-balancing solution
Active/Passive
  • Multiple servers are configured to provide a service
  • Only a single server provides the service at any given time
  • Other servers serve as hot-spares in case of a server (service) problem or a site hosted on the servers suddenly start getting load spikes such as when being slashdotted.
Now a days, many shared web hosting providers are turning to a web server cluster solution over managing individual web servers on independent machines. Clustering is said to provide some respite to the performance issues.

Eli M. Dow and Frank LeFevre, both, Software Engineers at IBM have written this insightful albeit rather technical article which explains how to setup an Apache web server cluster in 5 easy steps.

From the article ...
Spreading a workload across multiple processors, coupled with various software recovery techniques, provides a highly available environment and enhances overall RAS (Reliability, Availability, and Serviceability) of the environment. Benefits include faster recovery from unplanned outages, as well as minimal effects of planned outages on the end user.

To get the most out of this article, you should be familiar with Linux and basic networking, and you should have Apache servers already configured. Our examples are based on standard SUSE Linux Enterprise Server 10 (SLES10) installations, but savvy users of other distributions should be able to adapt the methods shown here.

Image Retargeting - A new technology to display images on the web

1 comments
Displaying images on the web is always a case of walking the fine line between optimizing the image for the web and making sure the image doesn't lose its clarity or its intended purpose. There are two ways of resizing an image which is popularly used by web masters and lay persons alike. They are cropping an image and scaling an image to the desired size. The former method will most possibly end with the image losing its fine details where as using the latter method will reduce the image's clarity.

Now it seems a new method of resizing an image has been demonstrated by two Israeli professors, Shai Avidan and Ariel Shamir which ensures that the image retains both its functionality as well as its clarity. This method is called re-targeting. The idea is to algorithmically determine which areas of the image are important and then delete other areas retaining those which are important.

Retargeted Image
Re-targeted vs cropped vs scaled image.

At present none of the graphics suites including Photoshop and Gimp provide tools to re-target an image. Perhaps if this new algorithm (or method) is released under an open license, we could see this functionality being incorporated in Gimp in the future. It is popularly known as 'Seam Carving for Content-Aware Image Resizing'.

For now watch this Youtube video which explains this interesting process in more detail.

SSH tutorial for Linux

August 26, 2007 0 comments
These are some of the SSH tutorials / guides you will find on this blog.

  • What is SSH ? - An introduction to SSH with examples.
  • SSH Keys - Their usage and Why you should use them ?
  • Mosh - A better alternative to SSH.

How to find out if your Linux machine has been hacked ?

0 comments
It is very rare that your Linux PC which you use as a Desktop will get compromised especially if you do not run any services like a web server, mail server and so on. More over many modern Linux distributions like for example Ubuntu, targeted at the end user ship with all the ports closed by default. And others like PCLinuxOS bundles with it a robust firewall. So it makes the job of an intruder all the more harder to crack into your machine.

But suppose after all the precautions you take, some resourceful cracker succeeds in finding a loophole and hacks into your machine, how do you detect that your machine has been compromised in the first place?

Lars has written a step-by-step process by which he ascertains that a Linux server run by his friend has been compromised by an intruder. His findings throw light on what you can expect and the steps to take when you are suspicious of getting your machine rooted.

The server was running a fairly updated Ubuntu 6.06 LTS. He goes on to conclude that the compromise could have been caused by :
  1. An exploit unknown to the public.
  2. A user accessing this server from an already compromised host. The attacker could then sniff the the password.
Read this very interesting article which throws some light on the actions of a hacker.

Download YouTube videos - A list of online file conversion tools

August 25, 2007 0 comments
In the last couple of years, Flash has fast risen to the top as a very popular form of sharing video, audio and data content online. But creating Flash content has a big drawback which is that the end users need to install a proprietary closed source software stub (Adobe Flash Player) to view the content. To be honest, Adobe has already released a native Flash player for Linux and the Linux version is updated in tandem with the Windows and Mac version so it is a good thing. More over Adobe has been consistently improving and adding new features to its Flash player.

But those who do not like to have Adobe Flash player installed in Linux or those using other Operating systems such as the BSD's can make use of online resources to convert the Flash video files to a number of formats. Some of them which I have found useful are as follows :
  1. ConvertTube.com - This online service converts YouTube videos to a variety of compatible file formats and provides a link for download.
  2. Media-Convert.com - 100% Free online file conversion which includes images, audio, video and documents.
  3. Vixy.net - This service allows you convert a Flash Video / FLV file (YouTube's videos,etc) to MPEG4 (AVI/MOV/MP4/MP3/3GP) file online. It is using a compressed domain transcoder technology (outline in Japanese). It converts FLV to MPEG4 faster and less lossy than a typical transcoder.
  4. Flv2Mp3.com - This online service converts Flash audio files to Mp3 format.
  5. Zamzar.com - Use this online service to save and convert YouTube videos and Flash videos from numerous other sites.
  6. Viloader.net - This is another online service which allows you to convert media files from one format to another.
  7. Hey! Watch - Hey!Watch is a simple and robust encoding platform for both individuals (B2C) and companies (B2B). It allows conversion of videos to a variety of formats. But you need to register with them first to start using their service.

Flash player version 9 release gets H.264 support

August 24, 2007 1 comments
The recent news from the Adobe camp is that the now ubiquitous flash player version 9 (Update 3 Beta 2) currently has H.264 standard video support. The H.264 is a standard which is deployed in Blu-Ray and HD-DVD high definition video players.

What this translates for the lay person is better quality of video and audio in flash players. H.264 is also an open standard. It is currently believed that the penetration of the Adobe Flash player is just over 98% making it the most used media player [Courtesy: ReadWriteWeb].

You can download the latest version of Adobe Flash player (version 9) from the official Adobe labs website.

Incidentally, you might also find this quite detailed article by Tinic Uro who explain all the new features of the latest release of Adobe Flash player ver 9 an interesting read.

A talk by Richard M Stallman - Youtube video

2 comments
This is a very interesting concise talk (or rather, answers to a set of questions) by Richard.M.Stallman the father of GNU movement. The video was shot by Arturo Di Corinto for Candida TV. This is one of the best video clips of talk by RMS I have come across in recent times.