Ptpcam in headless linux Dockstar

599pages on
this wiki
Add New Page
Talk0 Share

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

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki