Approve the Cookies
This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and our Privacy Policy.
OK
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Guest
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Register to forums    Log in

 
FORUMS Cameras, Lenses & Accessories Canon Digital Cameras 
Thread started 22 Jun 2011 (Wednesday) 05:38
Search threadPrev/next
sponsored links (only for non-logged)

Walkthrough: Install gphoto2 (read shutter count T2i, 7D, etc) on Linux LiveCD or USB

 
MOkoFOko
nut impotent and avoiding Geoff
Avatar
19,889 posts
Likes: 22
Joined Jun 2010
Location: Michigan
     
Jun 22, 2011 05:38 |  #1

8/29/2012 EDIT: eoscount.com (external link) now charges $1.50 per shutter reading, and www.camerashuttercount​.com (external link) does not work for reading my 7d, so it appears that this method is the ONLY guaranteed way to pull the shutter count off a 7D body (and possibly others)
2/7/2013 EDIT: EOSinfo (astrojargon) (external link) is a free utility that has been updated to read a number of Digic3/4 bodies (excluding the 7D, all 1D series), and is free. Reported compatibility with the 5D2, but it is confirmed not to be accurate with this model
---------------

*NOTE: this is a tutorial for WINDOWS users only*


The confirmed working Canon bodies are as follows: 7D, 5D2, 1D2, T2i, 50D
Bodies that fail to provide a reading include: none found so far

So, lots of people asking how to get the shuttercount of a 7D, T2i, or 60D body. This is my no-frills attempt at a walkthrough--anyone running Windows XP or later can do this. In this example, I'll be referencing Fedora, but other versions of Linux will work as well--install procedures will vary.

1. Download Fedora (current version: 17) desktop edition environment (64-bit or 32-bit) ISO file: http://fedoraproject.o​rg/en/get-fedora-options (external link)
In this example, the file has been renamed Fedora15.ISO.

2. If you want to create a bootable USB "LiveCD", download Liveusb-creator (external link), otherwise skip to next step. Plug an external drive (Hard Drive or USB stick) into your USB port. Run the Liveusb-creator executable file, install, navigate to the "LiveUSB" folder in your applications (Start-->All Programs-->LiveUSB creator), right click on the "LiveUSB creator" app, and choose "Run as administrator". Browse for the downloaded Fedora15.ISO file, then choose the Target Device (usb/pen/flash/hard-drive) to write the Linux OS to. Choose the drive Persistent Storage size available to use within Linux (100mb-200mb is more than sufficient), and click Create Live USB--prepare to wait 5-10 minutes.

3. Skip this step if you created a "LiveCD" with an external drive. You'll need to burn the FedoraXX.ISO file to a CD or DVD. If you don't already have an application to burn image files, download the freeware program IMGburn (external link). Install and run IMGburn--choose the icon for burning an image to disc. Choose the FedoraXX.ISO file from the location it was saved to. Burn to a disc. When complete, put the CD/DVD back in your optical drive, and restart your computer.

4. Restart your computer and choose to boot from USB or CD/DVD drive (whichever install method you chose)--Fedora15 will load. Choose to run Fedora without installing. Once you're in Fedora, click on "Applications" in the upper-left corner--choose to "Search" for TERMINAL. Once the black command-line window opens, type the following commands:

su -

^^^ This will give you root privileges (switching your userid to root@liveuser). Then try the following command...

yum install gphoto2

At this point, the installation MAY abort if the necessary files aren't installed. If so, you'll need to connect to the internet. Either install wireless drivers, or (easiest solution) simply plug an ethernet cable from your router to the network/ethernet jack on your computer. Repeat the previous YUM command, and allow the OS to download the missing files. Choose "y" if you are prompted to download from an alternate location.

Once you have successfully installed gphoto2, turn on your camera body and connect your computer via USB cable. A prompt identifying your camera model will appear--if not, the gphoto2 installation likely failed. If you see the prompt, type the following command:

gphoto2 --get-config /main/status/shutterco​unter

You will be rewarded for your efforts with a prompt listing your total shutter actuations. If your camera body is not supported (all supported models are listed on gphoto2's compatibility page), no data will be shown.


My Gearlist

  
  LOG IN TO REPLY
MOkoFOko
THREAD ­ STARTER
nut impotent and avoiding Geoff
Avatar
19,889 posts
Likes: 22
Joined Jun 2010
Location: Michigan
     
Jun 22, 2011 06:07 |  #2

Reserved for additional photos, if necessary.


My Gearlist

  
  LOG IN TO REPLY
mainbyte
Senior Member
Avatar
332 posts
Gallery: 1 photo
Likes: 23
Joined Mar 2011
Location: Southern Indiana
     
Jun 22, 2011 10:36 as a reply to  @ MOkoFOko's post |  #3

Thank you!

I just tried this using your instructions and it worked as it should. Took about 15 minutes or so to download, burn and boot. I am booting from a cd. I did have to use the network to obtain gphoto2, but fedora handled it all automatically.

I had actually looked at doing this yesterday, but it looked like too much of a hassle.. your instructions made it simple.


Thanks again,

Ron


Canon 6D | Canon 7DII | 17-40 f/4L | 24-105 f/4L | 70-300 4/5.6L |100mm f/2.8L macro | 50mm 1.4 | 580exII | 2 - 430exII |

  
  LOG IN TO REPLY
fge
Mostly Lurking
10 posts
Joined May 2011
Location: France
     
Jun 22, 2011 10:52 as a reply to  @ mainbyte's post |  #4

This command is only a fragment of capabilities offered by gphoto2 which has nice tethered shooting capabilities.

Useful commands are:

Check if the camera is properly detected
~$ gphoto2 --auto-detect
Modle Port
---------------
Canon EOS 1000D usb:001,003

Get shutter count
~$ gphoto2 --get-config=/main/status/sh​uttercounter
Label: Shutter Counter
Type: TEXT
Current: 165801

Capture an image and download it to the computer
$ gphoto2 --capture-image-and-download
Le nouveau fichier est l'emplacement /capt0000.jpg sur l'appareil
Enregistrement du fichier sous capt0000.jpg
Effacement du fichier /capt0000.jpg sur l'appareil
Suppression de 'capt0000.jpg' dans le dossier '/'...

Check camera capabilities.
$ gphoto2 --abilities
Possibilits de l'appareil : Canon EOS 1000D
Gestion du port srie : non
Gestion du port USB : oui
Choix de capture :
: Image
: Prvisualisation
Gestion de la configuration : oui
Delete selected files on camera : oui
Delete all files on camera : non
Gestion des vignettes de prvisualisation) : oui
Gestion de l'envoi de fichiers : oui

Sorry my linux box is in French, but you will get output in the proper language when running it on your computer.

More details on gphoto2 project can be found here: http://www.gphoto.org (external link)
Gphoto2 compatible cameras for thethered shooting: http://www.gphoto.org/​doc/remote/ (external link)


Webcampak (external link) - Opensource tethered shooting toolbox

  
  LOG IN TO REPLY
jackerin
Member
129 posts
Joined Dec 2010
     
Jun 22, 2011 12:36 |  #5

MOkoFOko wrote in post #12637639 (external link)
While it's possible to create a LiveCD (Linux) on a Mac computer, this walkthrough details the steps taken by a Windows user.

A googling shows that since it's unix-based you should be able to run it in Mac OS X without booting from a livecd: http://blog.dcclark.ne​t …how-to-gphoto-primer.html (external link)


Pictures: 500px (external link) / 23 (external link)
Blog (external link)

  
  LOG IN TO REPLY
mainbyte
Senior Member
Avatar
332 posts
Gallery: 1 photo
Likes: 23
Joined Mar 2011
Location: Southern Indiana
     
Jun 22, 2011 18:21 as a reply to  @ jackerin's post |  #6

One thing I noticed when I actually read my shutter count was that I had to type this command: (had to add an equal sign).

gphoto2 --get-config=/main/status/sh​uttercounter

as opposed to what you are showing below? (no equal sign after config)

gphoto2 --get-config/main/status/shu​ttercounter

Ron


Canon 6D | Canon 7DII | 17-40 f/4L | 24-105 f/4L | 70-300 4/5.6L |100mm f/2.8L macro | 50mm 1.4 | 580exII | 2 - 430exII |

  
  LOG IN TO REPLY
lar55
Senior Member
277 posts
Likes: 5
Joined Dec 2010
     
Jun 22, 2011 18:37 |  #7

mainbyte wrote in post #12641342 (external link)
One thing I noticed when I actually read my shutter count was that I had to type this command: (had to add an equal sign).

gphoto2 --get-config=/main/status/sh​uttercounter

as opposed to what you are showing below? (no equal sign after config)

gphoto2 --get-config/main/status/shu​ttercounter

Ron

You need either an equal sign or a space there. The first post in this thread makes it hard to tell if there is a space there, but you do need it (or equal sign).




  
  LOG IN TO REPLY
MOkoFOko
THREAD ­ STARTER
nut impotent and avoiding Geoff
Avatar
19,889 posts
Likes: 22
Joined Jun 2010
Location: Michigan
     
Jun 22, 2011 18:43 |  #8

lar55 wrote in post #12641407 (external link)
You need either an equal sign or a space there. The first post in this thread makes it hard to tell if there is a space there, but you do need it (or equal sign).

Correct, there's supposed to be a space there. I wrote the whole thing up in 30 minutes--I'm surprised it's not filled with mistakes :D


My Gearlist

  
  LOG IN TO REPLY
ppmax
Member
177 posts
Likes: 36
Joined Feb 2009
     
Jun 22, 2011 19:42 |  #9

jackerin wrote in post #12639464 (external link)
A googling shows that since it's unix-based you should be able to run it in Mac OS X without booting from a livecd: http://blog.dcclark.ne​t …how-to-gphoto-primer.html (external link)

I use gphoto2 on OSX by way of Homebrew (a package manager). Easy like Sunday morning!

http://www.twam.info …s-7d-shuttercount-on-os-x (external link)




  
  LOG IN TO REPLY
psubrahmanyam
Hatchling
1 post
Joined Apr 2011
     
Jun 22, 2011 21:20 |  #10

MOkoFOko wrote in post #12637639 (external link)
*NOTE: this is a rough draft--I'll go back and edit details later--maybe even add pictures--to make it easier for the basic user to follow*

So, lots of people asking how to get the shuttercount of a 7D/T2i body. This is my no-frills attempt at a walkthrough--anyone with a computer can try this. While it's possible to create a LiveCD (Linux) on a Mac computer, this walkthrough details the steps taken by a Windows user. In this example, I'll be referencing Fedora 15, but other versions of Linux will work as well--install procedures will vary.

1. Download Fedora 15 (etc) desktop ed. environment (64-bit or 32-bit): http://fedoraproject.o​rg/en/get-fedora-options (external link)

2. If you want to create a bootable USB "livecd", download liveusb-creator (external link), otherwise skip to next step. Plug an external drive (HDD or USB stick) into your USB-port. Run the Liveusb-creator executable file, install, navigate to "LiveUSB" folder in your applications, right click, and choose "Run as administrator". Browse for the downloaded Fedora15.ISO file, then choose the external drive to write the Linux OS to. Choose the drive size available to linux (on the external drive--100mb-200mb is more than sufficient), and create--it can take 5-10 minutes.

3. Skip this step if you created a "LiveCD" with an external drive. You'll need to burn the Fedora15.ISO file to a CD or DVD. If you don't already have an application to burn image files, download IMGburn (external link). Install and run IMGburn--choose the icon for burning an image to disc. Choose the Fedora15.ISO file from the location it was saved to. Burn to a disc. When complete, put the cd/DVD back in your optical drive, and restart your computer.

4. Restart your computer and choose to boot from USB or CD/DVD drive (whichever install method you chose)--Fedora15 will load. Choose to run without installing. Once you're in Fedora15, click on "Applications" in the upper-left corner--choose to "Search" for TERMINAL (command line). Once the black command-line window opens, type the following commands:

^^^ This will give you root privileges (showing root@liveuser). Then enter command...

At this point, the installation MAY abort if the necessary files aren't installed. If so, you'll need to connect to the internet. Either install wireless drivers, or (easiest solution) simply plug an ethernet cable from your router to your computers network/ethernet jack. Repeat the previous YUM command, and allow the OS to download the missing files. Choose "y" if it prompts you to download from an alternate location.

Once you have successfully installed gphoto2, turn on your camera and connect it to your computer via USB cable. A prompt identifying your camera model will appear--if not, the gphoto2 installation likely failed. If you see the prompt, type the following command:

You will be rewarded for your efforts with a prompt listing your total shutter actuations. If your camera body is not supported (all supported models are listed on gphoto2's compatibility page), no data will be shown.


Hi I followed the steps but ran into issues at step no 4 while loading gphoto2

After giving those commands to load gphoto2 i am getting the following message in the terminal

"Loaded plugins:langpacks,pres​to,refresh-packagekit
you need to be root to perform this command "

any suggestion how to resolve this and load gphoto2

thanks




  
  LOG IN TO REPLY
MOkoFOko
THREAD ­ STARTER
nut impotent and avoiding Geoff
Avatar
19,889 posts
Likes: 22
Joined Jun 2010
Location: Michigan
     
Jun 22, 2011 21:22 |  #11

psubrahmanyam wrote in post #12642189 (external link)
Hi I followed the steps but ran into issues at step no 4 while loading gphoto2

After giving those commands to load gphoto2 i am getting the following message in the terminal

"Loaded plugins:langpacks,pres​to,refresh-packagekit
you need to be root to perform this command "

any suggestion how to resolve this and load gphoto2

thanks

If you're getting this error, then you didn't enter the

su -

command first, which switches you to root.


My Gearlist

  
  LOG IN TO REPLY
coolchu001
Senior Member
279 posts
Joined May 2011
     
Jun 22, 2011 21:24 |  #12

Just ran gphoto2 from fedora via VMWare on my mac (just download the iso on mac, mount it in VMWare and boot from VMWare CD drive). I currently have 394 actuations on my refurb 7D. I know I have taken at least 300 photos with it, which means my 7D came with less than 94 shots! :-D


Gearlist|Feedback|For Sale

  
  LOG IN TO REPLY
rt440
Member
115 posts
Joined Sep 2010
Location: NorCal
     
Jun 23, 2011 02:30 as a reply to  @ coolchu001's post |  #13

did exactly what instructions stated and got a shutter count of 24 on my refurb 7D. thank you! :)


5D III ~ 16-35L II ~ 24-70L II ~ 70-200L II : OMD E-M1 ~ M.ZD silver 17, 45, 75 f1.8

  
  LOG IN TO REPLY
oldvultureface
Goldmember
Avatar
4,279 posts
Gallery: 85 photos
Best ofs: 2
Likes: 385
Joined Jun 2008
Location: Northwest Indiana USA
     
Jun 23, 2011 06:54 as a reply to  @ rt440's post |  #14

:)

IMAGE: http://i735.photobucket.com/albums/ww357/oldvultureface/POTN/IMG_7359copy.jpg



  
  LOG IN TO REPLY
MOkoFOko
THREAD ­ STARTER
nut impotent and avoiding Geoff
Avatar
19,889 posts
Likes: 22
Joined Jun 2010
Location: Michigan
     
Jun 23, 2011 07:07 |  #15

oldvultureface wrote in post #12643835 (external link)
:)

QUOTED IMAGE

I really hope that wasn't a recently acquired refurb :D 7k is kind of high.


My Gearlist

  
  LOG IN TO REPLY
sponsored links (only for non-logged)

156,766 views & 0 likes for this thread, 50 members have posted to it and it is followed by 3 members.
Walkthrough: Install gphoto2 (read shutter count T2i, 7D, etc) on Linux LiveCD or USB
FORUMS Cameras, Lenses & Accessories Canon Digital Cameras 
AAA
x 1600
y 1600

Jump to forum...   •  Rules   •  Forums   •  New posts   •  RTAT   •  'Best of'   •  Gallery   •  Gear   •  Reviews   •  Member list   •  Polls   •  Image rules   •  Search   •  Password reset   •  Home

Not a member yet?
Register to forums
Registered members may log in to forums and access all the features: full search, image upload, follow forums, own gear list and ratings, likes, more forums, private messaging, thread follow, notifications, own gallery, all settings, view hosted photos, own reviews, see more and do more... and all is free. Don't be a stranger - register now and start posting!


COOKIES DISCLAIMER: This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and to our privacy policy.
Privacy policy and cookie usage info.


POWERED BY AMASS forum software 2.58forum software
version 2.58 /
code and design
by Pekka Saarinen ©
for photography-on-the.net

Latest registered member is Andrea20
1487 guests, 193 members online
Simultaneous users record so far is 15,144, that happened on Nov 22, 2018

Photography-on-the.net Digital Photography Forums is the website for photographers and all who love great photos, camera and post processing techniques, gear talk, discussion and sharing. Professionals, hobbyists, newbies and those who don't even own a camera -- all are welcome regardless of skill, favourite brand, gear, gender or age. Registering and usage is free.