A quick and very simple way to get web cams working in Ubuntu is to install a Gnome application called Cheese. Installation is very simple.
1. Open a terminal window.
2. Type sudo apt-get install cheese
3. Let the installer run and that’s it.
This works for Ubuntu 7.10 and 8.04. I’m not sure about earlier versions. But it won’t hurt to try it.