1 # Red Hat 6 & CentOS 6 Linux {#rhel6}
5 This version of Linux has **x64/AMD64 Support Only**. Contact Galil if another version
6 is required for an application.
8 See the \link installation \endlink page for supported versions.
11 On Red Hat, gclib is distributed in an RPM repository. The following steps can be performed to install gclib.
13 ### Download Galil's repository information
15 This step installs Galil's RPM repositories and only needs to be done once.
17 Point a browser at http://www.galil.com/sw/pub/rhel/6/galilrpm-2-1.noarch.rpm and install the rpm.
20 Install gclib package, approve "Installed size" and "Importing GPG key", if prompted.
30 ##Serial Ports and USB
31 If access to the serial ports or USB (e.g. DMC-4103) is desired through gclib, the following will provide steps to join the correct access group. If using USB, be sure the controller is powered and the usb is plugged in before beginning.
33 ###Determine group with access
35 $ ls -l /dev/ttyUSB* /dev/ttyS*
36 crw-rw----. 1 root dialout 4, 64 Mar 3 16:39 /dev/ttyS0
37 crw-rw----. 1 root dialout 4, 65 Mar 3 16:39 /dev/ttyS1
38 crw-rw----. 1 root dialout 4, 66 Mar 3 16:39 /dev/ttyS2
39 crw-rw----. 1 root dialout 4, 67 Mar 3 16:39 /dev/ttyS3
40 crw-rw----. 1 root dialout 188, 0 Mar 6 11:08 /dev/ttyUSB0
42 In the above listing, **dialout** is the group that needs to be joined. **uucp** is another common group that may be listed.
44 ###Add the desired *username* to the group.
46 $ sudo gpasswd -a username dialout
47 [sudo] password for username:
48 Adding user username to group dialout
50 Log out and back in for change to take effect.
53 username wheel dialout
55 gclib can now connect to serial and usb devices from user *username*.
58 If using a Galil PCI controller, the PCI driver must be installed.
60 ###Install prerequisites
66 # yum install kernel-devel-$(uname -r)
67 # yum install kernel-headers-$(uname -r)
70 ###Extract source and build driver
72 $ tar -xf /usr/share/doc/gclib/src/gclib_pci.tar.gz
75 ###Copy module and add to kernel
77 # cp galilpci.ko /lib/modules/$(uname -r)
81 ###Add galil group for access to PCI
83 # groupadd -f -K GID_MIN=100 -K GID_MAX=499 galil
84 # cp 90-galilpci.rules /etc/udev/rules.d/
85 # udevadm control --reload-rules
87 # usermod -a -G galil username #exchange "username" with actual user's name
89 Logout and back in. The PCI hardware is now available for access.
92 crw-rw---- 1 root galil 10, 56 Jun 9 11:07 /dev/galilpci0
93 $ echo -e "\x12\x16\r" > /dev/galilpci0
99 The documentation is left as a tarball to minimize disk usage. The latest release version of the user manual is available at the following link.
100 * http://www.galil.com/sw/pub/all/doc/gclib/html/
103 The following allows viewing of the html docs from the installation.
105 $ tar -xzf /usr/share/doc/gclib/gclib_doc.tar.gz html
106 $ firefox html/index.html