{"id":197,"date":"2008-11-12T12:02:05","date_gmt":"2008-11-12T00:02:05","guid":{"rendered":"http:\/\/p-s.co.nz\/wordpress\/?p=197"},"modified":"2008-11-26T12:12:47","modified_gmt":"2008-11-26T00:12:47","slug":"deleting-photos-from-canon-powershot-g2-using-gtkam","status":"publish","type":"post","link":"http:\/\/p-s.co.nz\/wordpress\/deleting-photos-from-canon-powershot-g2-using-gtkam\/","title":{"rendered":"Deleting photos from Canon Powershot G2 using GTKam"},"content":{"rendered":"<p>In Ubuntu, at least in Intrepid, it is easy to open a USB camera like the Canon Powershot G2.  You just plug it in and it mounts on the desktop, attractive icon and all.  But I couldn&#8217;t delete photos from the DCIM card on the camera. [update &#8211; although a friend could delete files from his Powershot G10 which has a much smaller sized memory card).  It said &#8220;Error while deleting&#8221; &#8211; There was an error deleting xxxxxxxx.jpg.  And under Show more details was the terse message &#8220;Not supported&#8221; \ud83d\ude09 .<\/p>\n<p>Solution &#8211; install gphoto2 and gtkam via synaptic.<\/p>\n<p>GTKam is excellent (<a href=\"http:\/\/gphoto.sourceforge.net\/doc\/manual\/ref-gtkam.html\">http:\/\/gphoto.sourceforge.net\/doc\/manual\/ref-gtkam.html<\/a>.<\/p>\n<p>NB to make sure the camera isn&#8217;t mounted already (unmount it yourself if by right-clicking on the icon if it appears on your desktop) when connecting to the camera.  And make sure the camera hasn&#8217;t timed out in the middle (which might confuse you).<\/p>\n<p>One false lead was installing the Canon software e.g. Zoombrowser, under WINE.  It worked to a point but &#8230; no USB support to enable me to connect to the camera!  See http:\/\/ubuntuforums.org\/showthread.php?t=697238 <\/p>\n<p>Anyway, I prefer GTKam.<\/p>\n<p>Using gphoto2 from the terminal can help check some things out.  See <a href=\"http:\/\/www.gphoto.org\/doc\/manual\/using-gphoto2.html\">http:\/\/www.gphoto.org\/doc\/manual\/using-gphoto2.html<\/a>.<\/p>\n<p>From the terminal you should be able to run:<br \/>\n<code><br \/>\ngphoto2 --auto-detect<\/code><\/p>\n<p>and get something like:<\/p>\n<p>Model                          Port<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nCanon PowerShot G2             usb:   <\/p>\n<p>and as long as the camera isn&#8217;t already mounted, (and it hasn&#8217;t timed out!) the following should also work:<\/p>\n<p>gphoto2 &#8211;list-files<\/p>\n<p>e.g.<\/p>\n<p>Detected a &#8216;Canon:PowerShot G2&#8217;.<br \/>\nThere is no file in folder &#8216;\/&#8217;.<br \/>\nThere is no file in folder &#8216;\/DCIM&#8217;.<br \/>\nThere are 2 files in folder &#8216;\/DCIM\/101CANON&#8217;.<br \/>\n#1     IMG_0193.JPG               rd   667 KB image\/jpeg<br \/>\n#2     IMG_0195.JPG               rd  1288 KB image\/jpeg<br \/>\nThere are 15 files in folder &#8216;\/DCIM\/102CANON&#8217;.<br \/>\n#3     IMG_0218.JPG               rd  1571 KB image\/jpeg<br \/>\netc etc<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Ubuntu, at least in Intrepid, it is easy to open a USB camera like the Canon Powershot G2. You just plug it in and it mounts on the desktop, attractive icon and all. But I couldn&#8217;t delete photos from &hellip; <a href=\"http:\/\/p-s.co.nz\/wordpress\/deleting-photos-from-canon-powershot-g2-using-gtkam\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-197","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/197"}],"collection":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/comments?post=197"}],"version-history":[{"count":10,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/197\/revisions"}],"predecessor-version":[{"id":236,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/197\/revisions\/236"}],"wp:attachment":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/media?parent=197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/categories?post=197"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/tags?post=197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}