title: Install of Tomcat 5.5 on Ubuntu (using apt) leaves CATALINA_HOME unset
body: <p>I'm setting up my development environment for writing web applications using Java, and I'm in need of some help.</p>
  
  <p><em>What I have done:</em></p>
  
  <p><strong>Installation of Java SE 6 from Sun</strong></p>
  
  <p>I installed (sudo apt-get install …) the following packages (one at a time as some of them requires user interaction) to get Java SE 6 from Sun: sun-java6-bin sun-java6-doc sun-java6-fonts sun-java6-javadb sun-java6-jdk sun-java6-jre sun-java6-plugin sun-java6-source .</p>
  
  <p>I also set JAVA_HOME by adding JAVA_HOME=”/usr/lib/jvm/java-6-sun/” to /etc/environment.</p>
  
  <p><strong>Began installing and configuring Tomcat 5.5</strong></p>
  
  <p>I installed (sudo apt-get install …) the following packages: tomcat5.5 tomcat5.5-admin</p>
  
  <p><strong>What I have at the moment:</strong></p>
  
  <p>I'm able to connect to <a href="http://localhost:8180/admin" rel="nofollow noreferrer">http://localhost:8180/admin</a> and get the admin web application which I installed by installing the tomcat5.5-admin package. The Tomcat server is running as a deamon.</p>
  
  <p><strong>My problems and questions:</strong></p>
  
  <ol>
  <li>The environment variable $CATALINA_HOME doesn't seem to be defined. How should I define it? (The same way as my $JAVA_HOME maybe? But if so, which path should I assign it?)</li>
  <li>To deploy a war, can I just copy the JAR to $CATALINA_HOME/webapps? Or do I need to change the file permissions on the war? (Here I assume $CATALINA_HOME is set correctly.)</li>
  <li>What's the user and password I need for the admin web application I installed? How do I change them?</li>
  <li>Are there any best practices for Tomcat 5.5 on Ubuntu which I should think of?</li>
  </ol>