Home | Hardware | Internet News |Web Hosting |IT Management |Network Storage
LinuxPlanet
Search 
  Power Search | Tips 

 Front Door
 Discussion
 LinuxEngine
 Opinions
 Reports
 Reviews
 Tutorials
 News
 Technology Jobs

 Browse by subject.
Free Newsletter

Linux Planet
Linux Today
More Free Newsletters

Be a Commerce Partner


















internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Print this article
Email this article

   LinuxPlanet / Tutorials



Webcams in Linux, Part 1
Make Webcam Work

Carla Schroder
Thursday, February 21, 2008 12:04:51 PM

If you're still shopping, first find out what works best on your own particular Linux distribution. Mandriva is probably the Webcam-friendliest Linux. Logitech Webcams are the most popular, but not all of them have native Linux drivers.

If you're using an inherited Webcam, you may get lucky and it will work as soon as you connect it. Here is the short way:

  1. Install Camorama
  2. Install both v4l and v4l2 (Video for Linux)
  3. Connect Webcam
  4. Start Camorama
  5. Wave to yourself
If Camorama doesn't work, try the Testbed account in Kopete. Figure 1 shows me and my best friend in Kopete.

Figure 1 shows a problem with integrated Webcams: you have to adjust your whole screen to frame your image. I was sitting tall, too.

Camorama does not support v4l2, which is unfortunate because v4l2 has a lot of improvements and bugfixes over version 1. The Ubuntu forums are full of users asking what the "could not connect to video device (dev/video0)" error message means when they try to use Camorama. One reason is they're using a driver that requires v4l2, or they don't have v4l installed.

On a modern Linux distribution, udev and HAL should detect the Webcam, create /dev/video0 with the correct permissions, owner root and group video, and load the correct kernel module. If you are not in the "video" group, add yourself, then logout and log back in. Run the id command with no options to make sure. Run lsmod to verify that the correct kernel module loaded.

Next: Uncovering the Secret Webcam Name »

Skip Ahead

1 Linux Likes Webcams, Sort Of
2 Make Webcam Work
3 Uncovering the Secret Webcam Name
Figure 1: Give me what I want, or the penguin gets it.
Figure 1: Give me what I want, or the penguin gets it.





Linux is a trademark of Linus Torvalds.


internet.com home | search | help! | about us

Jupiter Online Media

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers