Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
i recently been trying to get drivers/kernel modules working for my webcam, they were compiled and all that but whenever i type something at the bash prompt nothing much happens, it either says wrong command in which case i work it out and put the right one in but even then nothing much happens, it just goes back to the prompt, how do i know if something happens?
EXAMPLE: i downloaded the spcaxx tar file for the logitech fusion webcam and extracted it to the desktop through gnome, all was done, then i go to Konsole and i get this...
and i type INSTALL at the prompt, command not found, however when i type ./INSTALL something happens:
bash: INSTALL: command not found
./INSTALL: line 1: Module: command not found
./INSTALL: line 2: kernel: command not found
./INSTALL: line 3: be: command not found
./INSTALL: line 4: Kernel: command not found
./INSTALL: line 5: configure: command not found
make: *** No rule to make target `dep'. Stop.
./INSTALL: line 7: go: command not found
./INSTALL: line 8: syntax error near unexpected token `('
./INSTALL: line 8: ` make clean (to be sure)'
TOTALLY LOST NOW! I do have the kernel souces and all. Then i try:
bash: ./Makefile: Permission denied
THEN i try Make and i got this:
linux-vsvw:/home/deian/Desktop/spca5xx-20060501 # make
Building SPCA5XX driver for 2.5/2.6 kernel.
Remember: you must have read/write access to your kernel source tree.
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/deian/Desktop/spca5xx-20060501 CC=cc modules
make: Entering directory `/usr/src/linux-22.214.171.124-4-obj/i386/default'
make -C ../../../linux-126.96.36.199-4 O=../linux-188.8.131.52-4-obj/i386/default modules
CC [M] /home/deian/Desktop/spca5xx-20060501/drivers/usb/spca5xx.o
CC [M] /home/deian/Desktop/spca5xx-20060501/drivers/usb/spcadecoder.o
/home/deian/Desktop/spca5xx-20060501/drivers/usb/spcadecoder.c: In function ‘fun_D’:
/home/deian/Desktop/spca5xx-20060501/drivers/usb/spcadecoder.c:809: warning: value computed is not used
LD [M] /home/deian/Desktop/spca5xx-20060501/spca5xx.o
Building modules, stage 2.
LD [M] /home/deian/Desktop/spca5xx-20060501/spca5xx.ko
make: Leaving directory `/usr/src/linux-184.108.40.206-4-obj/i386/default'
THEN i write insmod spca5xx.ko and the hard drive churns a bit and i HOPE it works?!?!
ok I'm a total noob here, and I'm pretty suck at compiling source code so I can't go into much detail (in fact I expect I would have some troubles trying to get this setup myself), but hopefully I can point you in the right direction at least.
OK, the file INSTALL is instructions on how to install, err, compile and install, not an installer file:
Module compile outside the kernel tree but need the source of your running kernel installed and configured.
be sure your kernel include usb and v4l stuff
configure your kernel
go to the spca5xx directories
make clean (to be sure)
if all goes right as root :
if all goes right as root :
To test please use the command line spcaview tool.
You need libsdl installed with the header from your distro or goto http://www.libsdl.org
SPCAVIEW is the only V4L1 Apps for testing your SPCA5XX webcam.
IF THAT WORK WITH SPCAVIEW ALL OTHERS V4L1 APPS SHOULD WORK !!!
DON'T ASK ME ABOUT :
XAWTV GNOMEMEETING MOTION EKIGA AMSN ZONEMINDER CAMORAMA CAMSTREAM
VIDEODOG PALANTIR SPOKE CAMSOURCE MPLAYER VLC FFMPEG MPEG4IP .....
ASK THE AUTHORS. YOU SHOULD GET A BETTER ANSWER !!!
plug the cam
as root :
spca5xx should be load with videodev, if not, somethings goes wrong,
verify that your cam is supported if not and you are sure for a Sunplus
chip goto irc.freenode.net channel #spca50x and ask for help
if yes run spcaview with this parameters (maybe read the readme is the
spcaview -d /dev/video0 -f yuv
if you have a bttv card use change the video0 to video1
that should work
I can't explain it any better than that without promoting confusion. What distro are you using? this site that I got the source package from has binary packages (already compiled) for 18 different distros, you might want to try using one of them, as it should be as simple as one command (which command would depend on the distro). Though I believe you will still need the USB and VideoForLinux in your kernel for it to work (they're probably there by default, but I don't know for certain).
also, According to another txt file in the source code tarball, there are now modules supporting some of the hardware this driver supports right in the kernel..
anyway, it's not always as simple as ./configure, make, make install. I usually give up in the end out of frustration when it's not. Hope this info helps.
lurco masonm, good work, how silly of me to think there was a seperate installer when i installed it myself, all is clear now, i do have a bttv tv card too, so i need to make it video1, also i will need spcaview too to text it, ur not as much of a noob as i am obviously. you sussed that out well!
do i need v4l too, i can't see that in the list of loaded kernel devices unless it's loaded inside the kernel itself.
I'm afraid I'm not qualified to comment on your new questions, I have zero experience with video devices beyond my nvidia card.
however as far as determining whether v4l is in your kernel, you could look in /boot for a config text file that corresponds to the kernel you're using. Look for the mulitmedia section(about 2/3 the way down in my 220.127.116.11 config file).
if it looks like this (with all =y), then you've got v4l right in the kernel.
HMMM... that explains all, i don't have anything under Video for Linux! Gutted! Another obstacle to overcome! Thats what happens when u get open source suse, it's very limited due to licencing restrictions... i will search for a post on installing video for linux, failing that i will post
what you want is a kernel-(re)compile guide so you can enable the v4l support. It might also be possible to patch it in, but I don't know anything about that yet, and it's quite possible I'm wrong about the patching bit. You should definitely be able to enable v4l with kernel compile though.
how do i go about doing that, anyone got any good sites or guides or step by step on how to do it, i won't worry too much about fudging it up as the install is quite new, as long as i can get into windows after.
it depends on the distro(I think), google "kernel compile" and the name of your distro, there'll be a bunch of guides I'm sure. I know the debian forum has a kernel compile guide stickied, it's likely some of the other distro-specific forums do too.
this is the guide I used to learn, it should be good for anyone to learn the basics, but there may be required steps in other distros that that guide doesn't cover. edit: btw I completely ignore the first section, "X and su".
There are several threads on the forums about compiling your kernel.
In a nutshell you go to the source directory "usually /usr/src/kernel-version
do a make menuconfig
select your options
do a make
do a make modules_install
then you can either do a make install or manually copy the bzimage file to your /boot directory named whatever you want (usually vmlinuz) and edit your bootloader.
Make sure to create a backup copy of your current vmlinuz in /boot and edit your bootloader to allow you to boot using that in case the new kernel doesn't work.
This is all very generic and there are some variances depending on the distro.