Ptpcam in headless linux Dockstar

572pages on
this wiki
Revision as of 07:10, February 27, 2012 by Fe50 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

I wanted to make ptpcam work from my Dockstar, an Arm device with no video output, with debian squeeze installed, with a 1.8-inch 20gb hard drive.

I set up the build environment with the following:

apt-get install build-essential subversion git libusb-dev lua5.1 liblua5.1 liblua5.1-dev

I downloaded ptpcam from the German chdk forum and compiled:

cd /usr/src
svn co
cd ptpcam
cp ptpcam /usr/lib/ptpcam

I plugged in my camera (an A590is) and executed the following commands:

ptpcam --chdk
<conn>mode 1
<conn>lua set_zoom(3)
<conn>lua shoot()
<conn>mode 0
<conn>download A/DCIM/133CANON/IMG_7436.JPG image
cp image /var/www

IMG_7436.JPG is downloaded to my dockstar as "image" and then is copied to my web server directory, /var/www.

Then in a browser, shows the following:


ptpcam capture from dockstar

Around Wikia's network

Random Wiki