Ubuntu Notes and How-Tos

Saturday, January 28, 2006

Nautilus scripts for my Tomcat servlet development environment

Creating a new project







Creates the project directory, the directory structures
and the web.xml --A.K.A. Deployment Descriptor (DD):



Deploying the project


The webapps directory before the deployment:


Making sure that the (project) directory is selected, we call the Deploy script:


The webapps directory after the Deploy script was called:


It created the deployment directory structure for our project and copied the web.xml to the correct directory. Classes are also copied from the development to the deployment directories if they exist.



The Scripts





Tomcat>New project

1 #!/bin/sh
2 DIR=`zenity --entry --text="Name of project"`
3 mkdir -p $DIR/{etc,lib,src,classes,web}
4 cp ~/lib/vim/tpl/dd $DIR/etc/web.xml


Tomcat>Deploy

1 #!/bin/sh
2 mkdir -p /usr/local/tomcat/webapps/"$@"/WEB-INF/{classes,lib}
3 cp "$@"/etc/web.xml /usr/local/tomcat/webapps/"$@"/WEB-INF/web.xml

Sunday, January 22, 2006

Installing D-Link DWL-G520+ on AMD Duron PC

Refer to the previous post on DWL-G650+. The only thing to add is:
$ sudo apt-get install acx100-2.6.8-1-k7

Note: For some reason, when I enabled the spindown_time = nn in /etc/hdparm.conf, the connection does NOT work next time I reboot.

Saturday, January 21, 2006

Installing D-Link DWL-G650+ on Toshiba Satellite 2805-S305 notebook

1) Appended to /etc/apt/sources.lst:
deb http://stef.tvk.rwth-aachen.de/~nazgul/debian acx100/

2) Then:
$ sudo apt-get update
$ sudo apt-get install acx100-firmware

3) Then added the following line to /etc/network/interfaces:
iface wlan0 inet dhcp
wireless_mode managed
wireless_channel *N*
wireless_essid *ESSID*
wireless_key *KEY*
wireless_rate 11M
auto wlan0


Note: My wireless router is a D-Link DI-524 on a mixed-mode setting. By omitting the line wireless_rate 11M or changing it to any other number than 11M, the CardBus stays disconnected (even if it registers full bar signals). So the wireless_rate 11M line is the key to making the CardBus connect.