Size: 2492
Comment: +categ
|
Size: 2461
Comment: small updates
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
A Linux newbee with a digital camera (USB) used to work with Microsoft Windows XP is familiar that the operating system identifies the digital camera after connection with the computer. In Linux however this isn't always the case. | A Linux newbee with a digital camera (USB) used to work with Microsoft Windows is familiar that the operating system identifies the digital camera after connection with the computer. In Linux however this isn't always the case. |
Line 6: | Line 6: |
However, it's much simpeler than one would expect. Aside from this HOWTO being specific towards the Canon Ixus 50 (also called Canon Powershot SD400), this HOWTO can be used for most digital cameras. | However, it is much simpler than one would expect. Aside from this HOWTO being specific towards the Canon Ixus 50 (also called Canon Powershot SD400), this HOWTO can be used for most digital cameras. |
Line 10: | Line 10: |
To detect as root what kind of camera is connected at the USB interface : | To detect as root what kind of camera is connected at the USB interface: |
Line 15: | Line 15: |
Output example (date time localhost removed) : | Output example (date time localhost removed): |
Line 22: | Line 22: |
In this example it's clear that the camera is using the specific protocol, called '''gphoto2'''; the gphoto2 digital camera command-line client, which can be used by applications to access various digital camera models. An additional interesting packet '''gtkam''', is a graphical application based on GTK+ for digital still cameras supported by gphoto2. More information can be found an [[http://www.gphoto.org/|gphoto.org]]. | In this example it's clear that the camera is using the specific protocol, called '''gphoto2'''; the gphoto2 digital camera command-line client, which can be used by applications to access various digital camera models. An additional interesting package '''gtkam''', is a graphical application based on GTK+ for digital still cameras supported by gphoto2. More information can be found an [[http://www.gphoto.org/|gphoto.org]]. |
Line 24: | Line 24: |
Required package(s) : | Required package(s): |
Line 26: | Line 26: |
apt-get install gphoto2 apt-get install gtkam |
apt install gphoto2 gtkam |
Line 30: | Line 29: |
In order to verify if your camera is detected correctly, you can execute : | In order to verify if your camera is detected correctly, you can execute: |
Line 36: | Line 35: |
Output example : | Output example: |
Line 45: | Line 44: |
For the command line application gphoto2 I refer to it's self explaining man page, the graphical application gtkam is completely self explaining, including picture preview, etc. Without any change, those applications should be started as root. In order to launch the programs as a normal user, you have to update the group settings (adding the preferred usernames to the camera group). | For the command line application gphoto2 I refer to it's self explaining manual page, the graphical application gtkam is completely self explaining, including picture preview, etc. Without any change, those applications should be started as root. In order to launch the programs as a normal user, you have to update the group settings (adding the preferred usernames to the camera group). |
Line 47: | Line 46: |
Output example | Output example: |
Line 50: | Line 49: |
laptop:~#cat /etc/group | laptop:~# cat /etc/group |
Line 63: | Line 62: |
apt-get install gimageview | apt install gimageview |
Line 67: | Line 66: |
CategoryHardware | CategoryHardware |
Digital Cameras
Introduction
A Linux newbee with a digital camera (USB) used to work with Microsoft Windows is familiar that the operating system identifies the digital camera after connection with the computer. In Linux however this isn't always the case.
However, it is much simpler than one would expect. Aside from this HOWTO being specific towards the Canon Ixus 50 (also called Canon Powershot SD400), this HOWTO can be used for most digital cameras.
Practical
To detect as root what kind of camera is connected at the USB interface:
cat /var/log/syslog
Output example (date time localhost removed):
kernel: usb 5-1: USB disconnect, address 4 kernel: usb 5-1: new high speed USB device using address 5 usb.agent[6116]: libgphoto2: loaded successfully
In this example it's clear that the camera is using the specific protocol, called gphoto2; the gphoto2 digital camera command-line client, which can be used by applications to access various digital camera models. An additional interesting package gtkam, is a graphical application based on GTK+ for digital still cameras supported by gphoto2. More information can be found an gphoto.org.
Required package(s):
apt install gphoto2 gtkam
In order to verify if your camera is detected correctly, you can execute:
gphoto2 --auto-detect
Output example:
Model Port ---------------------------------------------------------- Canon Digital IXUS 50 (PTP mode) usb: Canon Digital IXUS 50 (PTP mode) usb:005,003
For the command line application gphoto2 I refer to it's self explaining manual page, the graphical application gtkam is completely self explaining, including picture preview, etc. Without any change, those applications should be started as root. In order to launch the programs as a normal user, you have to update the group settings (adding the preferred usernames to the camera group).
Output example:
laptop:~# cat /etc/group ... camera:x:107:username1,username2 ...
Thumbnail Viewer
For viewing the pictures after uploading them to your Linux machine, a number of ?Thumbnail Viewer programs are available. The lightweight ?gqview program can be used, or the ?gimageview or ?gthumb viewers.
Recommended package(s):
apt install gimageview