Reaching out to others! Free & Open Source Software, Kannada, L10n, L18n Data Science, Cloud Computing & more…

Fixing php in Ubuntu

Running php scripts on apache in your Ubuntu desktop won’t be sweat at first. You might notice that php scripts start downloading when you start accessing them via browser. This is mainly because of small configuration issues that we can find on machine. If you have enabled userdir module (https://localhost/~yourusername), it contains a line to disable php values as follows in /etc/apache2/mods-enabled/php5.conf :

php_admin_value engine Off

All that you have to do is to disable the above line and restart apache to get php working.

Limit tomcat heap memory usage on cPanel Server

To limit tomcat heap memory usage we normally change the environment variables in tomcat startup scripts. cPanel allows us to take care of this by creating and adding min and max values to a file called  /var/cpanel/tomcat.options (File won’t exist by default).


the “-Xms” initial Java heap size for the application to 100MB, and the “-Xmx” maximum Java heap size to 200MB. If the – is not placed in front of the option when putting the values into /var/cpanel/tomcat.options file that is created, then Tomcat will refuse to startup properly.

This method would be preferred over directly editing /usr/sbin/starttomcat. The /var/cpanel/tomcat.options file would not be edited by cPanel scripts or upon updates.

Realtek RTS5229 Card Reader on Thinkpad E430

MMC card reader on my new Thinkpad Edge Series E430 laptop didn’t work by default on Ubuntu. Thinkpad site didn’t list the Linux drivers and even on Realtek site, it was not found earlier as its one of the latest hardware device in market.

After spending 3 long months, my wait has ended and now I see linux drive being listed on Realtek website.

Installing the module is quite simple. Download the driver for linux and run few commands as you see in Readme. Once you’re done with depmod and reboot the machine , card reader works like a charm. Enjoy!

Arivina Alegalu – 2012 – You too can write

 An e-book on Free and Open Source Software (FOSS) that makes technology accessible to even those who are confirmed e-illiterate.

Arivina Alegalu (which literally means “Waves of Knowledge”) is conceived as a project that will kick off a series of materials written in Kannada not only about FOSS but also on various other aspects of technology and science. “All these materials will be written, edited, reviewed by people working or researching on the respective areas and released under Creative Commons.

Project was initiated in year 2011 to celebrate Indian Independence day in a unique way.  This e-book is a collection of 14 essays by young software professionals to educate laymen on all things FOSS.

The participants write their experience about science & technology , FOSS etc in Kannada. Selected articles will be posted on from 1st August to 14th August. Finally on 15th August, all the articles will be released as an eBook under Creative Commons license to reach out to people who love learning and making use of technology.

Its again a time to revisit this project this year and the Team Sanchaya invites articles for 2012 issue.

Last date for writing an article for being part of this project is 28th July 2012. 

Send your entries to : [email protected]

Press release – Arivina Alegalu 2012


  I have been searching for the right alternative for managing my Xen VM’s and hosts. Its a pain to boot a Windows VM just for  accessing XenCenter. You can download OpenXenManager from or Install it on your Ubuntu machine using the following command:

#sudo apt-get install openxenmanager

PS: Running it from the source from link didn’t work for me on Ubuntu 12.04 but found it working after installing via apt-get.

Once installed, its very similar to working with the windows version of Citrix Xen Center.


Hope you too find it useful.


Loging Varnish client IP in Apache logs

When you have a varnish server infront of your Apache server, you will be reverse proxying the requests. This will mark your varnish’s servers ip as the client in apache logs. To let apache know the real client’s ip we can user mod_rpaf module needs to be loaded. Use the following steps to install mod_rpaf module on your apache server.

tar xvfz mod_rpaf-0.6.tar.gz
cd mod_rpaf-0.6
sed -ie ‘s/apxs2/apxs/’ Makefile
make rpaf-2.0
make install-2.0

Once the installation is done, we need to add the following configuration apache configuration file to enable the module.

LoadModule rpaf_module modules/

RPAFenable On
RPAFsethostname On
RPAFheader X-Forwarded-For

RPAFproxy_ips can be multiple IP address and it’s IP from your reverse proxy.


Replace with your varnish servers ips.

Add the following LogFormat to apache configuration file (httpd.conf)

LogFormat “%{X-Forwarded-For}i %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\”” varnishcombined

In the VirtualHost entry of your domain use varnishcombined as logformat for access logs.

In varnish (3.0.x) default.vlc file under vlc_recv{} add following lines:

if (req.restarts == 0) {
if (req.http.X-Forwarded-For) {
set req.http.X-Forwarded-For = req.http.X-Forwarded-For + “, ” + client.ip;
} else {
set req.http.X-Forwarded-For = client.ip;

restart apache and httpd to finish with.

You should now start seeing the actual client’s ip in apache logs as well.

Source: varnish, stackoverflow, etc

Finding old debian etch iso

Finding ’s was little crucial when things doesn’t work well during upgrades. Especially when the drives go wrong and you have to continue running the good old distribution, better keep a copy of the ’s.

Here I found those ISO’s to get going.

Tags: , ,