vnc | Day in my life

2013

Oct 12

Apache load balancer for Tomcat

This is a follow-up post to my earlier one apache and tomcat. You could read more about the Tomcat clustering, which describes a more detailed view of load balancing and persistent sessions, within-memory session replication and so on. But in this post, I will discuss a basic load balancing solution with a sample working solution. The mod_proxy module can also be used for load balancing, but will …

more

Oct 12

Apache and Tomcat

The Tomcat application server is good at serving dynamic content. Though it can serve static content too, it’s generally left to the Web servers to do the job as it’s lightweight and specialised. Hence, most Java-based web applications would generally involve Apache to serve static content, while dynamic content is left to Tomcat. Integration between Apache and Tomcat can be done using …

more

2012

Aug 27

Apache in Debian based systems

It’s been over 10 years now since I started using Debian. I have got used to its organisation so much that I tear my hair often when I have to work with other distros. But I have to agree that it’s the same with guys from the other side of the fence. Hence, I’m putting my understanding of how Debian Apache HTTPD or in package terms “apache2”, is organised. This should …

more

Aug 5

Google Music from the UK

I recently bought a Nexus 7 from Google Play. It’s an amazing tablet for the price. If you haven’t seen it yet, I would highly recommend that you give it a try. Google sell it as a stop device for all the content they offer online. But one thing that’s missing for us on the other side of the Atlantic is the ability to use Google Music, which is at the moment available only in the …

more

May 25

MacBook Pro and Debian key-map

I recently had to install Debian on VMware Fusion (a product similar to VirtualBox) for the work I was doing. Everything went smoothly until I started using the command line. My favourite key on *nix world ‘THE PIPE’ wasn’t mapped correctly. It’s easy to correct, and this is how it’s done. Install the console-data package and configure the keymap with the right type. …

more

May 24

GeoIP mod and Named Virtual Hosts

Problem: I have a multi-site Apache web server, hosting localised copies of the site for many countries. I would like customer visiting the site to be automatically redirected to their country-specific site. Something similar to Google, where if you visit www.google.com you will be redirected to a country-specific site. In my case, it is www.google.co.uk Solution: As the heading says, I will be …

more

Apr 16

Managing mixed Debian packages using APT pinning

I use Debian “stable” as my primary Linux OS. Anyone using Debian stable would know that getting the latest and greatest package you need is a bit of a nuisance. If you are in this situation, i.e. looking to upgrade just a package from a different repository, here is how to do it. APT pinning is a way to have a mixed package system (i.e. packages installed from different repositories) …

more

2011

Aug 27

Postfix smarthost with SMTP authentication

The problem I’m facing is that emails from my Debian box are not sent outside of my local network. Glad I found the solution, and here is how to go about it. This solution applies to the following issues Setting up a smarthost to send emails using an authenticated SMTP server (like Gmail, AOL & Yahoo!) You have a *nix box and want to backup status emails to be sent to an external …

more

Jul 20

FTP Server on Mac OSX Lion

I was one of the early birds to adopt Mac OS X Lion. Bad luck after upgrade, FTP service stopped working, as I need it for my current work, found this way to enable and run it. Create a “Sharing Only” account Go to “Advanced Options… " and edit Login Shell from “/bin/false” to “/bin/bash” and Home directory to the location of your choice Add …

more

2010

Jul 24

How to Netboot SunBlade 100

I recently bought a Sun Blade 100 from eBay for throw-away price, as I was curious to explore SPARC-based systems, as I am more used to x86. To put it in short, I was new to this architecture; here are some of the differences that I found rather interesting or boring, however you choose to look at BIOS == OpenBoot OpenBoot is equivalent to BIOS, and it’s far away from the familiar …

more

© Nataraj Basappa 2025