Getting JDK 1.5 and Tomcat 5.5 up and running in Debian Linux

I know I wrote an entry before with some links to how to do this before, but I just recently went through the process again and wanted to write down the specific steps.

First to install Java 5, go to the Sun download page, select JDK, and get the non-RPM installer for Linux.

As root, run the following command:
apt-get install java-package fakeroot
Then as a non-root user, run this command to create a deb package:
fakeroot make-jpkg jdk-1_5_0_03-linux-i586.bin
As root, install the package:
dpkg -i jdk-1_5_0_03-linux-i586.bin
That should be it for Java 5, though in the instructions I'm basing this off of, it says to run "apt-get install sun-j2sdk1.5". I didn't have to.

For Tomcat 5.5, download the tarball for it, unzip it into a directory (as a normal user). Edit conf/tomcat-users.xml and add an entry for an "admin" user like this:
<user username="admin" password="" roles="manager"/>
Setup a JAVA_HOME environment variable, I added this line to my .bashrc:
export JAVA_HOME=/usr/lib/j2sdk1.5-sun
Logout and login again for that to be set (or just set it from the command line).

That's it, go into the Tomcat bin directory and run startup.sh and you should have Tomcat running on port 8080.