Thursday, August 25, 2011

Setting up Motion for Fedora 13


Here's a quick and dirty for getting Motion setup with an old AipTek Pen Cam on Fedora 13.

Don't use the RPM, install from source:

Go here: http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome and download latest version.

Then:

cd /usr/local


tar -xvzf /path/to/motion-3.2.x.tar.gz


cd motion-3.2.x


sed -ie 's/ret = 2/ret = 0/g' video_common.c


./configure


make


make install


cp /usr/local/etc/motion-dist.conf /usr/local/etc/motion.conf


vi motion.conf

Look for webcam_localhost and change it to: off

save motion.conf

motion -n (to run in non daemon mode to test)

Use your web browser locally first and check http://yourip:8081

You should now see live stream of your video.

kill motion (Ctrl-C)

Run it again in daemon mode and test again.