LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Run Webcam script (https://www.linuxquestions.org/questions/ubuntu-63/run-webcam-script-734141/)

hraposo 06-19-2009 05:25 AM

Run Webcam script
 
To make my webcam works, I must run the commands, each time I want execute them:

cd /home/a/microdia
make
sudo insmod ./sn9c20x.ko
sudo modprobe videodev
sudo modprobe compat-ioctl32
sudo insmod ./sn9c20x.ko

There are anibody can make a scritp to run all this all this commands, to execute my webcam???

My webcam is: Canyon CN-WCAMN1

hraposo 06-19-2009 06:00 AM

I can do one that's work, but I must to put de password two times:

Code:

#!/bin/bash
gksu
cd /home/a/microdia && make
sudo insmod ./sn9c20x.ko
sudo modprobe videodev
sudo modprobe compat-ioctl32
sudo insmod ./sn9c20x.ko

How can help me?
I can not turn off the webcam, I need restart the system...

hraposo 06-19-2009 06:22 AM

How can I stop the webcam. Do you know any command. the kill don't works...

hraposo 06-19-2009 07:40 AM

what I do when I do:

sudo insmod ./sn9c20x.ko

is activated a module of kernel.
How I do the reverse???????????????


All times are GMT -5. The time now is 01:52 PM.