[How To] Get a webcam to work in Ubuntu 8.10 Intrepid
Just wanted to document and share how I got my webcam working and updated to the latest drivers in 64bit Intrepid.
First of all, the reason for this post is I went through archives and could not find a good solution to get the hardware working. Also the archives were a bit outdated and closed, thus the new post..
Installation of the Hercules Classic Silver webcam was really easy after the correct information was found at:
http://www.linuxtv.org/wiki/index.ph...tall_Mercurial
Follows is the summary of the steps:
How to build from Mercurial
From LinuxTVWiki
Jump to: navigation, search
Contents
[hide]
* 1 Check kernel version
* 2 Install Mercurial
* 3 Retrieve v4l-dvb sources
* 4 Build the Modules
* 5 Load and Unload the modules
* 6 Errata - Compilation
* 7 Errata - Compilation - Kernels before 2.6.22
* 8 Errata - Loading Modules
* 9 More Errata
Check kernel version
First of all, you need a quite recent kernel. The v4l-dvb tree is backwards compatible with recent vanilla kernels. Kernel version 2.6.10 or later is required to build the dvb modules, and version 2.6.12 or later is required to build support for hybrid devices. If you configured the kernel manually, please note that some capabilities should be enabled like EVDEV. Stock kernels usually have everything required. You also need to install the kernel-source package to have kernel headers.
Install Mercurial
V4L and DVB kernel modules are available via Mercurial.
To acquire the latest sources, you must first have mercurial installed (which requires python 2.3). Some Linux distributions already include it. In Debian, just do:
apt-get install mercurial
If your distribution doesn't include it, you can download a binary package or retrieve the source.
Retrieve v4l-dvb sources
Now you need to pull the tree from hg.
To retrieve the v4l-dvb source tree:
To update the sources later on:
To retrieve the dvb-apps source tree:
Build the Modules
Make sure to change into the v4l-dvb directory (already there?):
Build the modules:
Then install the modules:
The command above will copy *.ko module files into your /lib/modules kernel directories.
Load and Unload the modules
To remove (rmmod) all modules at once from the running kernel (in memory):
To insert (insmod) all modules at once into the running kernel, without the need to install them:
OR.. To perform the two commands above in a single step:
Usually correctly installed modules will show some info in dmesg, errors will appear in dmesg also.
Although there is a method shown above to reload the kernel, it has never worked for me personally as well as simply rebooting the machine. So I would recommend a reboot.
Hope that helps!
Last edited by mtopro; February 9th, 2009 at 01:11 AM.
Going through life, we all have a different view. Enjoy it!!
Bookmarks