author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sat, 10 Feb 2018 01:49:07 +0200 | |
changeset 2230 | 9e6ad6607a9e |
parent 2228 | 837f1337c59b |
permissions | -rw-r--r-- |
1363
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
1 |
.. -*- coding: utf-8; -*- |
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
2 |
|
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
3 |
======== |
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
4 |
Photo. |
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
5 |
======== |
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
6 |
.. contents:: |
1905
fba288d59662
Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1775
diff
changeset
|
7 |
:local: |
1363
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
8 |
|
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
9 |
Retrieving media from digital cameras. |
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
10 |
====================================== |
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
11 |
:: |
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
12 |
|
1364
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
13 |
$ sudo apt-get install gphoto2 |
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
14 |
$ sudo addgroup camera |
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
15 |
$ sudo adduser user camera |
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
16 |
$ /usr/lib/i386-linux-gnu/libgphoto2/print-camera-list udev-rules mode 0660 group camera | sudo sh -c "cat >/etc/udev/rules.d/90-my-libgphoto2.rules" |
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
17 |
|
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
18 |
You can write own rules:: |
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
19 |
|
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
20 |
$ lsusb | grep Nikon |
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
21 |
Bus 001 Device 005: ID 04b0:031c Nikon Corp. |
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
22 |
|
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
23 |
$ cat /etc/udev/rules.d/90-my-camera.rules |
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
24 |
ATTRS{idVendor}=="04b0", ATTRS{idProduct}=="031c", MODE="0660", GROUP="camera" |
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
25 |
|
1775
f1573cc42aa7
List and grab all files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1364
diff
changeset
|
26 |
After all those actions restart Linux or restart udev:: |
f1573cc42aa7
List and grab all files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1364
diff
changeset
|
27 |
|
f1573cc42aa7
List and grab all files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1364
diff
changeset
|
28 |
$ sudo service udev restart |
1364
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
29 |
|
1775
f1573cc42aa7
List and grab all files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1364
diff
changeset
|
30 |
and relogin to take ``camera`` group assigned to your user account. |
f1573cc42aa7
List and grab all files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1364
diff
changeset
|
31 |
|
f1573cc42aa7
List and grab all files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1364
diff
changeset
|
32 |
Check if your camera detected:: |
1364
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
33 |
|
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
34 |
$ gphoto2 --auto-detect |
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
35 |
|
1775
f1573cc42aa7
List and grab all files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1364
diff
changeset
|
36 |
List and grab all files:: |
f1573cc42aa7
List and grab all files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1364
diff
changeset
|
37 |
|
f1573cc42aa7
List and grab all files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1364
diff
changeset
|
38 |
$ gphoto2 --list-files |
f1573cc42aa7
List and grab all files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1364
diff
changeset
|
39 |
$ gphoto2 --get-all-files |
f1573cc42aa7
List and grab all files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1364
diff
changeset
|
40 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
41 |
Install GUI client:: |
1364
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
42 |
|
1363
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
43 |
$ sudo apt-get install gtkam |
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
44 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
45 |
https://wiki.archlinux.org/index.php/Libgphoto2 |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
46 |
Digital Cameras |
1364
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
47 |
|
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
48 |
|
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
49 |