| 1 | == TellStick installation - Linux == |
| 2 | |
| 3 | The Linux installation of TellStick requires kernel version 2.6.14 or later. You will also need support for the driver {{{ftdi_sio}}}. |
| 4 | |
| 5 | To find out which version of the kernel you are running, use this command: |
| 6 | {{{ |
| 7 | #!sh |
| 8 | uname -r |
| 9 | }}} |
| 10 | |
| 11 | === Using kernel 2.6.20 or earlier === |
| 12 | |
| 13 | If you are using kernel version 2.6.14 to 2.6.20 you need the kernel driver compiled as a module. If it is compiled into the kernel it will not find TellStick. |
| 14 | {{{ftdi_sio}}} could be found under: |
| 15 | {{{ |
| 16 | Device Drivers---> |
| 17 | USB support---> |
| 18 | USB Serial Converter support---> |
| 19 | <M> USB FTDI Single Port Serial Driver (EXPERIMENTAL) |
| 20 | }}} |
| 21 | |
| 22 | Insert the module into the kernel by: |
| 23 | {{{ |
| 24 | #!sh |
| 25 | modprobe ftdi_sio vendor=0x1781 product=0x0c30 |
| 26 | }}} |
| 27 | |
| 28 | For Ubuntu, do the following changes to {{{/etc/modprobe.d/options}}}: |
| 29 | {{{ |
| 30 | modprobe ftdi_sio vendor=0x1781 product=0x0c30 |
| 31 | }}} |
| 32 | Then, update the module settings: |
| 33 | {{{ |
| 34 | #!sh |
| 35 | update-modules |
| 36 | }}} |
| 37 | |
| 38 | After makeing this change, the module could be loaded without any extra parameters: |
| 39 | {{{ |
| 40 | #!sh |
| 41 | modprobe ftdi_sio |
| 42 | }}} |
| 43 | |
| 44 | === Installing the software === |
| 45 | |
| 46 | To compile {{{telldus-core}}} you need cmake version 2.4.0 or later. |
| 47 | |
| 48 | Download the latest source code from Telldus and unpack it: |
| 49 | {{{ |
| 50 | #!sh |
| 51 | cd /usr/src |
| 52 | gunzip telldus-core-{version}.tar.gz #Change {version} to the downloaded version |
| 53 | tar xvf telldus-core-{version}.tar |
| 54 | }}} |
| 55 | |
| 56 | This creates the directory /usr/src/telldus-core-{version} containing the files |
| 57 | from the archive. We only support the GNU version of tar archiving utility. Note |
| 58 | on some systems it is called gtar. |
| 59 | |
| 60 | Go to the new directory |
| 61 | {{{ |
| 62 | #!sh |
| 63 | cd telldus-core |
| 64 | }}} |
| 65 | |
| 66 | ==== Configuring ==== |
| 67 | |
| 68 | Telldus Core is built using CMake (http://www.cmake.org), version 2.6.0 is the |
| 69 | minimum required version. This means there is no configure-script, but you |
| 70 | need to run cmake. |
| 71 | |
| 72 | To configure telldus-core for your machine type: |
| 73 | {{{ |
| 74 | #!sh |
| 75 | cmake . |
| 76 | }}} |
| 77 | in the package directory. |
| 78 | |
| 79 | By default, Telldus Core is configured for installation in the /usr/local |
| 80 | directory, but this can be changed by using the -DCMAKE_INSTALL_PREFIX=/usr |
| 81 | option. Alternatively, the DESTDIR="/opt" option can be used to specify a "local" |
| 82 | installation within the source directory when running "make install". |
| 83 | |
| 84 | ==== Building ==== |
| 85 | To create the library and compile all the tools type: |
| 86 | |
| 87 | {{{ |
| 88 | #!sh |
| 89 | make |
| 90 | }}} |
| 91 | |
| 92 | If you did not configure Telldus Core using the -DCMAKE_INSTALL_PREFIX=/usr |
| 93 | option, you need to install the library and tools in the appropriate place. To |
| 94 | do this, type: |
| 95 | |
| 96 | {{{ |
| 97 | #!sh |
| 98 | su -c "make install" |
| 99 | }}} |
| 100 | |
| 101 | and enter the root password. |
| 102 | |
| 103 | If you want to install in another directory, type: |
| 104 | |
| 105 | {{{ |
| 106 | #!sh |
| 107 | su -c "make DESTDIR=/opt install" |
| 108 | }}} |
| 109 | |
| 110 | Note that on some systems the make utility is named differently, e.g. {{{gmake}}}. |
| 111 | |