author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Mon, 19 Oct 2015 17:04:52 +0300 | |
changeset 1769 | cadd23f8127f |
parent 1364 | f8956fff6019 |
child 1775 | f1573cc42aa7 |
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 |
|
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
26 |
After all those actions restart Linux. |
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
27 |
|
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
28 |
Check if your camera detected: |
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
29 |
|
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
30 |
$ gphoto2 --auto-detect |
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
31 |
|
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
32 |
Install GUI client: |
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
33 |
|
1363
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
34 |
$ sudo apt-get install gtkam |
8e426051845b
Retrieving media from digital cameras.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
35 |
|
1364
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
36 |
https://wiki.archlinux.org/index.php/Libgphoto2 |
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
37 |
Digital Cameras |
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
38 |
|
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
39 |
|
f8956fff6019
Wiring udev rules to fix permissions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1363
diff
changeset
|
40 |