LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-09-2008, 10:42 AM   #1
kennyangaresi
LQ Newbie
 
Registered: Apr 2008
Posts: 5

Rep: Reputation: 0
Unhappy How can I configure my webcam for use in linux?


I need to configure my webcam for use in linux and I'm in the dark as to how to go about it. Im running an acer aspire 4720z on fed8.
I'll appreciate any help I'll get.
 
Old 04-09-2008, 11:14 AM   #2
kummiliim
Member
 
Registered: Mar 2007
Location: Tallinn, Estonia
Distribution: Slackware 12.0
Posts: 276

Rep: Reputation: 30
Quick google : ) : link

Quote:
The webcam works in Fedora, Ubuntu and Arch. I haven't tried it in PCLinuxOS.

I used the program luvcview. In Fedora, I had to install it from source. The version is current at time of writing (early February, 2008). You will need some development tools and libraries.
Code:
yum install make gcc gcc-c++ kernel-devel SDL-devel
Code:
wget
http://mxhaard.free.fr/spca50x/Inves...0070512.tar.gz
tar zxvf luvcview-20070512.tar.gz
cd luvcview-20070512
make && make install

It will install the program into /usr/local/bin. You will have to fix permissions before you can run it as a regular user. (If you want it in /usr/bin/ for consistancy, you can edit the Makefile. Towards the top they define some variables, including BIN. It's defined as /usr/local/bin--you can change it to /usr/bin.)

Add the following to /etc/security/console.perms.d/50-default.perms. At the top where they list devices you can add
Code:
<video>=/dev/video0

At the bottom, where they list permissions, you can add
Code:
<console> 0666 <video>  0600 root

To start using it without a reboot, just do as root or with root privilege
Code:
chmod 666 /dev/video0

If you now start the program with
Code:
luvcview -f yuv
you should be able to see yourself as you type. It works, so I've read, with Ekiga, though I haven't tried it. With Ekiga and any other app that asks, choose V4L2 rather than V4L or V4L1.

In Ubuntu, it's a bit simpler.
Code:
apt-get install luvcview

After that, use the same command as above, luvcview -f yuv. (The -f is for format. The default is jpg but that doesn't seem to work.)

In Arch, I had a bit of difficulty. Although there is a linux-uvc-svn in the community repo, it may be out of date. It insisted on putting the module in /lib/modules/2.6.23-Arch when I had kernel 2.6.24. So, when I did modprobe uvcvideo, I would get module not found. Eventually, I grabbed the source code with
Code:
svn://svn.berlios.de/linux-uvc/linux-uvc/trunk

Note that you need to have subversion installed for that to work. Subversion can be installed with pacman -S subversion.

Once it's downloaded, you'll see a new directory called trunk. Just cd into trunk and do make && make install. It should install the module in the proper place. You can then load the module with
Code:
modprobe uvcvideo

One can then install luvcview from AUR.

However, that didn't work for me either. I didn't feel like investigating at that point so I grabbed the source code from the URL given above in the Fedora section.

I then built it with make && make install as I had in Fedora. In Arch, a user of the webcam has to be in the video group. If the user name was john, you could do it thusly.
Code:
usermod -G video -a john

Now, the user john can use luvcview.
Code:
luvcview -f yuv
I also have a webcam that uses uvcvideo driver and I havent bothered with it yet. Let me know how it goes.
 
  


Reply

Tags
webcam


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure a webcam INTEX in Fedora-7 ? surendran Linux - Hardware 3 08-28-2007 03:22 AM
trying to configure ppp on webcam server dazz Linux - Newbie 0 08-11-2005 02:37 AM
configure webcam $mido$ Linux - Newbie 0 11-26-2004 01:24 PM
"How to configure logitech webcam in linux" pranith Linux - Hardware 4 11-07-2004 06:49 PM
How do you configure an Ezonics webcam model EZ 305 UVT8532 for Linux cmisip Linux - General 1 09-19-2003 01:01 AM


All times are GMT -5. The time now is 10:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration