Installing Apache Tomcat on Amazon EC2 without using RPM

bug tomcat java

How to install Apache Tomcat on Amazon EC2 instance without using a RPM.

Some readers have sent questions asking how to install Apache Tomcat without using a RPM. In this post, we go through quick steps to install Apache Tomcat on Amazon EC2 Instance. You should be done with the installation within 60 seconds of starting. Refer to the original post of Installing Java and Apache Tomcat on CentOS 6.5 on Amazon EC2 with RPM.


  • Amazon EC2 instance (assumed available)
  • Java (assumed installed)

Continue reading

Multiple user access on a running Amazon EC2 instance

share access amazon ec2

How to provide multiple user access to a running Amazon EC2 instance?

I was required to provide quick access to a running production Amazon EC2 instance. Now you could always share your passwords / keys around, but I couldn’t do that as they were used in multiple places for various reasons. On top of that this was just temporary access for about 15 minutes. For all of you who use Amazon EC2 regularly, would know that there is no way to create a new key pair in the console and just add it to the instance and reboot (if anyone knows of any way, please do let me know). But sometimes you are required to share or provide access to other people on a temporary basis (as in my case).

Continue reading

Apache Tomcat serving multiple webapps on different domains

apache tomcat java multipe webapps

How to serve multiple web applications on different domains through Apache Tomcat

This is a guide to setting up multiple webapps on Apache Tomcat, locally or VMWare or Amazon EC2 instance. We also talk a little about iptables and port redirection towards the end.


  • java 1.7 (assumed installed)
  • centos 6.5 (assumed installed)
  • apache tomcat (assumed installed)

To see how to install Oracle Java Development Kit 7.0 installation, Apache Tomcat installation or Open JDK installation for Amazon EC2 Instance please check one of the previous posts.

Continue reading

Hiberfil.sys on Windows


Hibernation on windows 7

So there was a really big fat hiberfil.sys file on one of my Windows 7 Virtual machines taking up a lot of space (approximately 20GB). This file is used by Windows to manage the hibernation mode as one of it’s power management modes. Windows uses this file to store the current memory state of your computer. Since it’s used by Windows you can’t just delete it. All that space when I don’t even use the ‘Hibernation’ mode.

So if you are not going to use the Hibernation mode like me you can disable it by opening the command prompt in the Administrator mode running the following command

This will disable the ‘hibernation’ mode and you will see the ‘hiberfil.sys’ file disappear freeing up a LOT OF SPACE. Awesome. More space but no more hibernation. Who needs hibernation anyway? Get to work!

Changing MAC address and HOSTNAME on VMWare

mix it up

How to change MAC address and HOSTNAME on Centos 6.5 VMWare virtual machine

I use VMWare quite a lot and every now and then have to clone from a clean virtual machine image. When doing so you could end up with a mac address conflict especially if you have some firewall rules and policies attached to the mac address. The simplest way to change this is via the virtual machine settings in VMWare workstation. This is being done using VMWare Workstation and CentOS server 6.5.

Continue reading