Ubuntu Notes and How-Tos

Monday, May 22, 2006

How to change screen resolution

This is using an old NVIDIA graphics card. The screen resolution is 1024 x 768. I want it to be 1280 x 1024 by default:

1) Install nvidia drivers
2) $ sudo dpkg-reconfigure xserver-xorg

That's it.

Thursday, May 04, 2006

Installing Tomcat5 in Dapper as a development environment

1) Install from Synaptic:



2) $ sudo gedit /usr/share/tomcat5/conf/tomcat-users.xml and add the following three lines:



3) Enable the invoker servlet and invoker mapping by removing the comments in $CATALINA_HOME/conf/web.xml:



4) Restart tomcat:



5) The Tomcat homepage:



To browse admin page, just click on the "Tomcat Administration" link at the left side and enter the user name and password you specified in step 2.

Enabling your very own web application directory


In $CATALINA_HOME/conf/server.xml, look for the <Host name="localhost"... tag and insert the Context tag between it: