Debian Codegraph @

doc/Installing_Linux.html

raw symbols SCIP
1 <!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html;
5 charset=windows-1252">
6 <meta http-equiv="content-type" content="text/html;
7 charset=windows-1252">
8 <meta name="GENERATOR" content="Mozilla/4.73 [en] (WinNT; I)
9 [Netscape]">
10 <title>Argyll Installation on Linux</title>
11 </head>
12 <body>
13 <h1> <u>Installing the software on Linux with X11<br>
14 </u></h1>
15 <br>
16 You will need to unpack the downloaded file in the location you have
17 chosen to hold the executable files. Typically this might be in <span
18 style="font-style: italic;">/usr/local/</span>, or perhaps <span
19 style="font-style: italic;">$HOME/bin/</span>. You would then
20 unpack the files using <span style="font-weight: bold;">tar -zxf</span>
21 <span style="font-weight: bold;">archivename.tgz</span>, which will
22 create a directory <span style="font-weight: bold;">Argyll_VX.X.X</span>,
23 where X.X.X is the version number, and the executables will be in <span
24 style="font-weight: bold;">Argyll_VX.X.X/bin</span> You will also
25 have to configure your $PATH environment variable to give access to
26 the executables from your command line environment. The .tgz file
27 also contains several useful reference files (such as scanner chart
28 recognition templates, sample illumination spectrum etc.) in the ref
29 sub-directory, as well as all the current HTML documentation in a
30 doc sub-directory. You may want to copy things to more standard
31 locations such as /usr/local/bin, /usr/local/argyll/bin etc.,
32 depending on the conventions used on your system.<br>
33 <br>
34 Some systems (Fedora ?) seem to be missing normal X11 libraries like
35 <b>libXss.so</b>, so you may have to install <b>libXScrnSaver</b>,
36 i.e. "sudo dnf install libXScrnSaver".<br>
37 <br>
38 <big style="color: rgb(51, 102, 255);"><span style="font-weight:
39 bold;"><a name="bell"></a>Note on the system bell:</span></big><br>
40 <br>
41 When reading strips using the Eye-One Pro or ColorMunki instrument,
42 the system bell is used to indicate when the instrument the ready to
43 be used, and to provide feedback on any problems. On some Linux
44 installations the system bell may be disabled. As well as checking
45 the terminal and GUI sound preferences, you may have to enable the
46 used of the PC speaker driver, which can be done by adding the
47 command <span style="font-weight: bold;">/sbin/modprobe pcspkr </span>to
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62 the <span style="font-weight: bold;">/etc/rc.local</span> startup
63 script. You may also have to run <span style="font-weight: bold;">xset
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78 b 100 1000 100</span> in your local setup, if you are running in
79 an X11 environment. You can check that the system bell is operating
80 by doing an "echo ^G", where ^G is ctrl-G.<br>
81 <br>
82 <big style="color: rgb(51, 102, 255);"><span style="font-weight:
83 bold;"><a name="multimonitor"></a>Note on X11 multi-monitor
84 setups:</span></big><br>
85 <br>
86 When working with a multi-monitor X11 configuration, note that you
87 will only be able to individually calibrate monitors if the
88 multi-window extension you are using (if any), supports access to
89 the individual screen Video LUT tables that are used for
90 calibration. The native X11 multi-screen addressing supports this,
91 as does the Xinerama extension, and XRandR V1.2.<br>
92 <br>
93 The proprietary NVidia TwinView and ATI MergeFB extensions do not
94 currently support access to the individual screen Video LUTs, so
95 calibration of each screen independently is impossible if either of
96 these extensions are running. You can switch to using Xinerama to
97 solve this problem, or you can try doing a calibration for the
98 screens that do have accessible Video LUTs with these proprietary
99 extensions, or ignore calibration and rely purely on display
100 profiling. Use the dispwin tool to figure out what works on your
101 system. The NVidia ATI binary drivers do not seem to properly
102 support XRandR V1.2 either, even though they claim to do so. You may
103 have to set the <span style="font-weight: bold;"></span><span
104 style="font-weight: bold;">ARGYLL_IGNORE_XRANDR1_2</span>
105 environment variable if the XRandR V1.2 extension is faulty.<br>
106 <br>
107 If these limitations trouble you, then as a valuable customer of
108 NVidia or AMD/ATI, perhaps you should contact them and urge them to
109 fix the problems with Video LUT access in their proprietary
110 multi-monitor extensions and XRandR implementation, bringing their
111 support for multi-monitors on X11 up to the same standards as other
112 operating systems. Ask them to add full and correct support for the
113 XRandR V1.2 extension.<br>
114 <br>
115 <big style="color: rgb(51, 102, 255);"><span style="font-weight:
116 bold;"><a name="VideoLUTs"></a>Fixing access to Video LUTs:</span></big><br>
117 <br>
118 Some users have noted that their default X11 installation doesn't
119 properly enable access to the video card Video Lookup Tables
120 (RAMDAC). The Video LUTs are used for display calibration purposes,
121 and a warning will be issues by the <span style="font-weight:
122 bold;">dispcal</span> and <span style="font-weight: bold;">dispread</span>
123 tools if there is a problem with this. Without access to the
124 VideoLUTs, you won't be able to use display calibration.<br>
125 <br>
126 The problem may be because certain X11 extensions aren't being
127 loaded by default. You may want to check that you have<br>
128 <br>
129 <big style="color: rgb(51, 102, 255);"><span style="font-weight:
130 bold;"></span></big>&nbsp; Load&nbsp; "extmod" <br>
131 <br>
132 in&nbsp;the&nbsp;appropriate&nbsp;(or&nbsp;any)&nbsp;section&nbsp;of
133 your Xorg.conf file, to allow the XF86Video&nbsp;LUT
134 extensions&nbsp;to function correctly.<br>
135 <br>
136 Another source of problems is if the display isn't configured with a
137 suitable visual. Typically for high quality color you need to be
138 using at least <span style="font-weight: bold;">24 bits</span> per
139 pixel (8 Bits for each of Red, Green and Blue channels), but more
140 importantly the number of entries in the the VideoLUTs needs to
141 match the depth of the screen. So if the VideoLUTs have 256 entries
142 per channel, then the screen must be using 8 bits per channel to
143 match. Or 64 entries and 6 bits. Or 4096 entries and 12 bits, etc.
144 Running "dispwin -D" may give some clues as to what the nature of
145 the problem is. You might have to look into your xorg.conf or XRANDR
146 setup, or on some distributions there will be some configuration
147 program that will let you choose the display configuration (ie. YaST
148 or SaX2 on openSUSE, etc.).<br>
149 <br>
150 <big style="color: rgb(51, 102, 255);"><span style="font-weight:
151 bold;"><a name="InstAccess"></a>Setting up instrument access:<br>
152 <br>
153 </span></big>By default most Linux based systems make devices
154 inaccessible to user mode programs, so it is necessary to make some
155 modification to your permissions so that Argyll tools are able to
156 access the Color Measurement Instruments. In order from newest to
157 oldest, the following sub-systems may need to be configured to
158 permit this:<br>
159 <br>
160 &nbsp; <a style="font-weight: bold;" href="#None">No device
161 configuration needed when running from the console:</a><span
162 style="font-weight: bold; text-decoration: underline;"><br>
163 <br>
164 </span>&nbsp;&nbsp;&nbsp; <a href="#None">Mandriva 2008.0 default
165 installation</a><br>
166 <br>
167 <h5>&nbsp; <a href="Installing_Linux.html#udev1">USB instruments
168 access using udev:</a></h5>
169 <a href="#udev1"></a>&nbsp;&nbsp;&nbsp; <a
170 href="Installing_Linux.html#udev1">Ubuntu 10.04</a><br>
171 &nbsp;&nbsp;&nbsp; <a href="Installing_Linux.html#udev1">Fedora
172 Core 8</a><br>
173 &nbsp;&nbsp;&nbsp; <a href="#udev1">Mandriva 2008.1</a><br>
174 &nbsp;&nbsp;&nbsp; <a href="#udev1">OpenSuSE 10.3</a><br>
175 &nbsp;&nbsp;&nbsp; <a href="#udev1">Ubuntu 7.1</a><br>
176 &nbsp;&nbsp;&nbsp; <a href="#udev1">Kubuntu 7.1</a><br>
177 &nbsp;&nbsp;&nbsp; <a href="#udev1">Debian 4.0</a><br>
178 <h5>&nbsp; <a href="#hotplug">USB instruments access using hotplug:</a></h5>
179 &nbsp;&nbsp; <a href="#hotplug">Red Hat 4.0</a><br>
180 &nbsp;&nbsp; <a href="Installing_Linux.html#hotplug">Fedora Core 4</a><br>
181 &nbsp;&nbsp; <a href="Installing_Linux.html#hotplug">Fedora Core 3</a><br>
182 &nbsp;&nbsp; <a href="Installing_Linux.html#hotplug">Fedora Core 2</a><br>
183 <br>
184 <h5>&nbsp; <span style="text-decoration: underline;"></span><a
185 href="#serial">Serial instrument access:</a></h5>
186 &nbsp;&nbsp; <a href="#serial">All</a><br>
187 <br>
188 <span style="font-weight: bold;">NOTE:</span> That <b>mtp-probe</b>
189 /&nbsp; <span style="font-weight: bold;">libmtp</span> been known
190 to interfere with device access, particularly the Spyder 3 and
191 DTP94. Recent versions of the libmtp should ignore any instrument
192 marked as COLOR_MEASUREMENT_DEVICE by the
193 /etc/udev/rules.d/55-Argyll.rules file, but for older systems you
194 probably need to disable libmtp (look in the udev configuration).<br>
195 <br>
196 The <b>JETI</b> specbos <b>1211</b><b>,&nbsp;</b><b>1201</b><b>,
197 1511, 1501</b> and the <b>Klien K10A</b> makes use of the <a
198 href="http://www.ftdichip.com/Drivers/VCP.htm">FTDI Virtual COM
199 Port Drivers</a> (VCP), that should come with any recent version
200 of Linux. Older versions of Linux may not support the FTDI FT231XS
201 chip that the <b>JETI</b> specbos <b>1511, 1501</b> use. You may
202 have to add yourself to the<span style="font-weight: bold;">
203 tty,&nbsp;</span><span style="font-weight: bold;">uucp</span>
204 or&nbsp;<b>dialout</b> group to have permission to open the
205 instrument.<br>
206 <br>
207 <span style="font-weight: bold;"></span>
208 <hr style="width: 100%; height: 2px;">
209 <h5><span style="color: rgb(204, 51, 204);"><a name="None"></a>No
210 device configuration needed:</span></h5>
211 A few systems have in place&nbsp; a security configuration such that
212 anyone logging in at the console of a machine has access to all the
213 local devices.<span style="color: rgb(204, 51, 204);"><span
214 style="font-weight: bold;"><br>
215 </span></span>
216 <h5><span style="color: rgb(204, 51, 204);"><a name="udev1"></a>USB
217 instruments access using udev with existing </span><span
218 style="color: rgb(204, 51, 204);"><span style="font-weight:
219 bold;"><font color="#330033">/etc/udev/rules.d</font> or</span>
220 <font color="#330033"> /usr/lib/udev/rules.d/69-cd-sensors.rules</font>
221 file.<br>
222 </span></h5>
223 <span style="color: rgb(204, 51, 204);"> </span>Recent Fedora based
224 systems include Gnome Color Manager, which comes with a udev rule
225 for color instruments. You can check this by looking for the <span
226 style="font-weight: bold;">/etc/udev/rules.d</span> or in <b>/usr/lib/udev/rules.d/69-cd-sensors.rules</b>
227 file. If this exists and is up to date enough to include the
228 instrument you want to use, then all you have to do is add yourself
229 to the <b>colord</b> group, ie:<br>
230 <br>
231 &nbsp;&nbsp; sudo usermod -a -G colord $USER<br>
232 <br>
233 If the <b>69-cd-sensors.rules</b> file is out of date and does not
234 include the latest instruments supported by Argyll, then the
235 simplest thing to do is to replace the <b>69-cd-sensors.rules</b>
236 file with the <span style="font-weight: bold;">usb/</span><span
237 style="font-weight: bold;">55-Argyll.rules</span>. You will need
238 to do this as root, and set the owner as root, group root,
239 permissions 644. You may need to re-plug in your instrument to get
240 changes to the udev rules recognised.<br>
241 <h5><span style="color: rgb(204, 51, 204);"><a name="udev2"></a>USB
242 instruments access using udev, with no existing <font
243 color="#330033">/etc/udev/rules.d</font> or <font
244 color="#330033">/usr/lib/udev/rules.d/69-cd-sensors.rules</font>
245 file.<br>
246 </span></h5>
247 Most recent systems use udev to manage device names and permissions,
248 but by default color instruments may not be accessible to normal
249 system users.<br>
250 To solve this a udev rule file needs to be added that modifies the
251 group and permission of any Color Measurement Instruments, and you
252 may then need to add yourself to that group.<br>
253 <br>
254 First check whether other rules are in <span style="font-weight:
255 bold;">/etc/udev/rules.d</span> or in <b>/usr/lib/udev/rules.d</b>,
256 and use the appropriate directory.<br>
257 (You may also want to check in that directory whether
258 55-Argyll.rules or some other .rules file that is setup to enable
259 color instruments already exists in that directory.)<br>
260 <br>
261 <span style="font-weight: bold;"></span>Copy the file <span
262 style="font-weight: bold;">usb/</span><span style="font-weight:
263 bold;">55-Argyll.rules</span> from the binary or source
264 distribution into <span style="font-weight: bold;">/etc/udev/rules.d/55-Argyll.rules</span>
265 or <span style="font-weight: bold;">/usr/lib/udev/rules.d/55-Argyll.rules
266
267
268
269
270
271
272
273 </span>(as appropriate) with&nbsp;owner root, group root,
274 permissions 644.<br>
275 <br>
276 If you are on an <span style="font-weight: bold;">older system</span>
277 that uses a udev that doesn't recognize the syntax used in
278 55-Argyll.rules, or that doesn't have rules to create the libusb
279 /dev/bus/usb/00X/00Y device entries, you should install the <span
280 style="font-weight: bold;">usb/45-Argyll.rules</span> file instead
281 - See below.<br>
282 <br>
283 On recent systems the new rules file will be notices as soon as you
284 plug the instrument in again.<br>
285 On older systems you may need to run <b>/sbin/udevtrigger</b>,&nbsp;
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301 <b>/sbin/udevcontrol reload_rules</b> or&nbsp; <span
302 style="font-weight: bold;">/sbin/udevstart</span> or reboot to get
303 the new file noticed.<br>
304 <br>
305 (You may want to refer to <a
306 href="http://reactivated.net/writing_udev_rules.html">this
307 document</a> for more guidance on modifying udev rules, as well as
308 <a
309 href="http://www.google.com/search?hl=en&amp;q=man+udev&amp;btnG=Search&amp;meta=&amp;aq=f&amp;oq=">this</a>.)<br>
310 <br style="font-weight: bold;">
311 <span style="font-weight: bold;">YOU THEN MAY NEED TO:</span><br>
312 <br>
313 If your system is <span style="font-weight: bold;">not</span> using
314 the ACL to manage device access for console users (the file <span
315 style="font-weight: bold;">/var/run/ConsoleKit/database</span>
316 doesn't exist on your system), then you will <span
317 style="text-decoration: underline;">need to add</span> yourself to
318 the <span style="font-weight: bold;">colord</span> group, if you
319 are not already a member of it. You can do this either by using a
320 "Users and Groups" system administration tool, or on the command
321 line running as root:<br>
322 <br>
323 &nbsp;&nbsp; sudo usermod -a -G colord $USER<br>
324 <br>
325 or<br>
326 &nbsp;&nbsp;&nbsp; su root<br>
327 &nbsp;&nbsp;&nbsp; usermod -a -G colord $USER<br>
328 <br>
329 (If the usermod program isn't found as root, it might be in
330 /usr/sbin, ie. use /usr/sbin/usermod .... etc.<br>
331 &nbsp;If usermod doesn't recognize the -a flag try "usermod -A
332 colord $USER".<br>
333 &nbsp;If this doesn't work you will have to run "id yourusername" to
334 list the current supplemental<br>
335 &nbsp;groups, and add them plus colord using just "usermod -G
336 group1,group2,... yourusername")<br>
337 <br>
338 You may find that the <b>colord</b><b></b> group doesn't exist on
339 your system, and if so you will need to create it:<br>
340 <br>
341 &nbsp; sudo groupadd -r colord<br>
342 <br>
343 and then add yourself to the <b>colord</b> group.<br>
344 <br>
345 You may have to log out and then in again for the groups to become
346 effective.<br>
347 <br>
348 You can check whether the instrument is being recognized and set to
349 the colord group by comparing the output of <span
350 style="font-weight: bold;">ls -l -R /dev/bus/usb</span> without
351 and then with the instrument plugged in.<br>
352 <br>
353 You can test whether your instrument is accessible by plugging it in
354 and then running "spotread -?" and looking for it listed after the <span
355 style="font-weight: bold;">-c</span> option.<br>
356 <h5><span style="color: rgb(204, 51, 204);"><a name="hotplug"></a>USB
357 instruments
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373 access using hotplug:<br>
374 </span></h5>
375 Under <span style="font-weight: bold;">much older versions of Linux</span>,
376 you should look into the hotplug system configuration for USB
377 devices. You know you are running this because the <span
378 style="font-weight: bold;">/etc/hotplug</span> directory exists on
379 your system.<br>
380 <br>
381 Assuming we want to configure for all Argyll supported USB
382 instruments, copy the file <span style="font-weight: bold;">usb/</span><span
383 style="font-weight: bold;">Argyll.usermap</span> from the binary
384 or source distribution into&nbsp; <span style="font-weight: bold;">/etc/hotplug/usb/Argyll.usermap</span>
385 with owner root, group root, permissions 644.<span
386 style="font-weight: bold;"></span><br>
387 <br>
388 <br>
389 &nbsp;(For even older versions, append the lines above to <span
390 style="font-weight: bold;">/etc/hotplug/usb.usermap</span>, and
391 you may have to run <span style="font-weight: bold;">update-usb.usermap</span>)<br>
392 <br>
393 Then copy the file <span style="font-weight: bold;">usb/</span><span
394 style="font-weight: bold;">Argyll</span> from the binary or source
395 distribution into <span style="font-weight: bold;">/etc/hotplug/usb/Argyll</span>
396 with owner root, group root, permissions 744.<span
397 style="font-weight: bold;"></span><br>
398 <br>
399 <span style="font-weight: bold;">YOU THEN NEED TO:</span><br>
400 <br>
401 You will then <span style="text-decoration: underline;">need to add</span>
402 yourself to the <span style="font-weight: bold;">colord</span>
403 group, if you are not already a member of it. You can do this either
404 by using a "Users and Groups" system administration tool, or on the
405 command line running as root:<br>
406 <br>
407 &nbsp;&nbsp; sudo usermod -a -G colord $USER<br>
408 <br>
409 or<br>
410 &nbsp;&nbsp;&nbsp; su root<br>
411 &nbsp;&nbsp;&nbsp; usermod -a -G colord $USER<br>
412 <br>
413 <br>
414 (If the usermod program isn't found as root, it might be in
415 /usr/sbin, ie. use /usr/sbin/usermod .... etc.<br>
416 &nbsp;If usermod doesn't recognize the -a flag try "usermod -A
417 colord $USER".<br>
418 &nbsp;If this doesn't work you will have to run "id yourusername" to
419 list the current suplemental<br>
420 &nbsp;groups, and add colord using just "usermod -G
421 group1,group2,... yourusername"<br>
422 &nbsp;Another option may be to use gpasswd -a $USER colord))<br>
423 <br>
424 You may find that the <span style="font-weight: bold;">colord</span>
425 group doesn't exist on your system, and if so you will need to
426 create it:<br>
427 <br>
428 &nbsp; sudo groupadd -r colord<br>
429 <br>
430 and then add yourself to the colord group.<br>
431 <br>
432 You may have to log out and then in again for the groups to become
433 effective.<br>
434 <br>
435 You can test whether your instrument is accessible by plugging it in
436 and then running "spotread -?" and looking for it listed after the <span
437 style="font-weight: bold;">-c</span> option.<br>
438 <span style="font-weight: bold;"></span>&nbsp; <br>
439 <h5><span style="color: rgb(204, 51, 204);"><a name="serial"></a>Serial
440 instruments
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456 access:</span><br>
457 </h5>
458 If you have a serial instrument then you may find that by default
459 you don't have permission to access the serial ports or a Serial to
460 USB adapter. Most systems make the serial ports available to any
461 user in the <span style="font-weight: bold;">tty</span>, <span
462 style="font-weight: bold;">uucp </span>or <b>dialout </b>group,
463 so the best way of getting access to the serial ports is to add
464 yourself to the correct group. (You can identify the correct group
465 by looking at the group name shown by <b>ls -l /dev/ttyS*</b> )<b><br>
466 <br>
467 </b>&nbsp;You can add yourself to a group either by using a "Users
468 and Groups" system administration tool, or on the command line using
469 "usermod":<br>
470 <br>
471 &nbsp;&nbsp;&nbsp; su root<br>
472 &nbsp;&nbsp;&nbsp; usermod -a -G dialout $USER<br>
473 <br>
474 or<br>
475 <br>
476 &nbsp;&nbsp; sudo usermod -a -G dialout $USER<br>
477 <br>
478 (If the usermod program isn't found as root, it might be in
479 /usr/sbin, ie. use /usr/sbin/usermod .... etc.<br>
480 &nbsp;If usermod doesn't recognize the -a flag try "usermod -A
481 dialout $USER".<br>
482 &nbsp;If this doesn't work you will have to run "id yourusername" to
483 list the current suplemental<br>
484 &nbsp;groups, and add a tty, uucp or dialout group using just
485 "usermod -G group1,group2,... yourusername"<br>
486 &nbsp;Another option may be to use gpasswd -a $USER dialout)<br>
487 <br>
488 You may have to log out and then in again, or even re-boot your
489 system for the group to become effective.<span style="font-weight:
490 bold;"><br>
491 </span>
492 <p>&nbsp; <br>
493 &nbsp; <br>
494 &nbsp; <br>
495 &nbsp; <br>
496 &nbsp; <br>
497 &nbsp; </p>
498 </body>
499 </html>