author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Mon, 22 Feb 2016 12:41:52 +0200 | |
changeset 1903 | 901e7394849f |
parent 1775 | f1573cc42aa7 |
child 1905 | fba288d59662 |
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 |
.. include:: HEADER.rst |
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 |
======== |
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
5 |
Photo. |
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
6 |
======== |
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
7 |
.. contents:: |
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 |
|
1364
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
41 |
Install GUI client: |
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 |
|
1364
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
45 |
https://wiki.archlinux.org/index.php/Libgphoto2 |
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
46 |
Digital Cameras |
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 |