特殊:Badtitle/NS100:InstallLirc/Dapper:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/InstallLirc/Dapper}} {{Languages|UbuntuHelp:InstallLirc/Dapper}} This guide will describe how to install lirc support in Ubuntu Dapper. == Introdu... |
小无编辑摘要 |
||
第31行: | 第31行: | ||
$ tar -xvzf lirc-modules.tar.gz</nowiki></pre> | $ tar -xvzf lirc-modules.tar.gz</nowiki></pre> | ||
---- | ---- | ||
[[category:CategoryHardware]] | |||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2009年5月12日 (二) 17:29的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/InstallLirc/Dapper }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/af | • {{#if: UbuntuHelp:InstallLirc/Dapper|Afrikaans| [[::InstallLirc/Dapper/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/ar | • {{#if: UbuntuHelp:InstallLirc/Dapper|العربية| [[::InstallLirc/Dapper/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/az | • {{#if: UbuntuHelp:InstallLirc/Dapper|azərbaycanca| [[::InstallLirc/Dapper/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/bcc | • {{#if: UbuntuHelp:InstallLirc/Dapper|جهلسری بلوچی| [[::InstallLirc/Dapper/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/bg | • {{#if: UbuntuHelp:InstallLirc/Dapper|български| [[::InstallLirc/Dapper/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/br | • {{#if: UbuntuHelp:InstallLirc/Dapper|brezhoneg| [[::InstallLirc/Dapper/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/ca | • {{#if: UbuntuHelp:InstallLirc/Dapper|català| [[::InstallLirc/Dapper/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/cs | • {{#if: UbuntuHelp:InstallLirc/Dapper|čeština| [[::InstallLirc/Dapper/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/de | • {{#if: UbuntuHelp:InstallLirc/Dapper|Deutsch| [[::InstallLirc/Dapper/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/el | • {{#if: UbuntuHelp:InstallLirc/Dapper|Ελληνικά| [[::InstallLirc/Dapper/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/es | • {{#if: UbuntuHelp:InstallLirc/Dapper|español| [[::InstallLirc/Dapper/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/fa | • {{#if: UbuntuHelp:InstallLirc/Dapper|فارسی| [[::InstallLirc/Dapper/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/fi | • {{#if: UbuntuHelp:InstallLirc/Dapper|suomi| [[::InstallLirc/Dapper/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/fr | • {{#if: UbuntuHelp:InstallLirc/Dapper|français| [[::InstallLirc/Dapper/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/gu | • {{#if: UbuntuHelp:InstallLirc/Dapper|ગુજરાતી| [[::InstallLirc/Dapper/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/he | • {{#if: UbuntuHelp:InstallLirc/Dapper|עברית| [[::InstallLirc/Dapper/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/hu | • {{#if: UbuntuHelp:InstallLirc/Dapper|magyar| [[::InstallLirc/Dapper/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/id | • {{#if: UbuntuHelp:InstallLirc/Dapper|Bahasa Indonesia| [[::InstallLirc/Dapper/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/it | • {{#if: UbuntuHelp:InstallLirc/Dapper|italiano| [[::InstallLirc/Dapper/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/ja | • {{#if: UbuntuHelp:InstallLirc/Dapper|日本語| [[::InstallLirc/Dapper/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/ko | • {{#if: UbuntuHelp:InstallLirc/Dapper|한국어| [[::InstallLirc/Dapper/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/ksh | • {{#if: UbuntuHelp:InstallLirc/Dapper|Ripoarisch| [[::InstallLirc/Dapper/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/mr | • {{#if: UbuntuHelp:InstallLirc/Dapper|मराठी| [[::InstallLirc/Dapper/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/ms | • {{#if: UbuntuHelp:InstallLirc/Dapper|Bahasa Melayu| [[::InstallLirc/Dapper/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/nl | • {{#if: UbuntuHelp:InstallLirc/Dapper|Nederlands| [[::InstallLirc/Dapper/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/no | • {{#if: UbuntuHelp:InstallLirc/Dapper|norsk| [[::InstallLirc/Dapper/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/oc | • {{#if: UbuntuHelp:InstallLirc/Dapper|occitan| [[::InstallLirc/Dapper/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/pl | • {{#if: UbuntuHelp:InstallLirc/Dapper|polski| [[::InstallLirc/Dapper/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/pt | • {{#if: UbuntuHelp:InstallLirc/Dapper|português| [[::InstallLirc/Dapper/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/ro | • {{#if: UbuntuHelp:InstallLirc/Dapper|română| [[::InstallLirc/Dapper/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/ru | • {{#if: UbuntuHelp:InstallLirc/Dapper|русский| [[::InstallLirc/Dapper/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/si | • {{#if: UbuntuHelp:InstallLirc/Dapper|සිංහල| [[::InstallLirc/Dapper/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/sq | • {{#if: UbuntuHelp:InstallLirc/Dapper|shqip| [[::InstallLirc/Dapper/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/sr | • {{#if: UbuntuHelp:InstallLirc/Dapper|српски / srpski| [[::InstallLirc/Dapper/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/sv | • {{#if: UbuntuHelp:InstallLirc/Dapper|svenska| [[::InstallLirc/Dapper/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/th | • {{#if: UbuntuHelp:InstallLirc/Dapper|ไทย| [[::InstallLirc/Dapper/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/tr | • {{#if: UbuntuHelp:InstallLirc/Dapper|Türkçe| [[::InstallLirc/Dapper/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/vi | • {{#if: UbuntuHelp:InstallLirc/Dapper|Tiếng Việt| [[::InstallLirc/Dapper/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/yue | • {{#if: UbuntuHelp:InstallLirc/Dapper|粵語| [[::InstallLirc/Dapper/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/zh | • {{#if: UbuntuHelp:InstallLirc/Dapper|中文| [[::InstallLirc/Dapper/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/zh-hans | • {{#if: UbuntuHelp:InstallLirc/Dapper|中文(简体)| [[::InstallLirc/Dapper/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:InstallLirc/Dapper | UbuntuHelp:InstallLirc/Dapper | {{#if: | :}}InstallLirc/Dapper}}/zh-hant | • {{#if: UbuntuHelp:InstallLirc/Dapper|中文(繁體)| [[::InstallLirc/Dapper/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:InstallLirc/Dapper|:InstallLirc/Dapper|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :InstallLirc/Dapper/zh | | {{#ifexist: InstallLirc/Dapper/zh | | {{#ifeq: {{#titleparts:InstallLirc/Dapper|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:InstallLirc/Dapper|1|-1|}} | zh | | }}
This guide will describe how to install lirc support in Ubuntu Dapper.
Introduction
Most of the info on this page comes from http://www.abarbaccia.com/ and http://www.ubuntuforums.org/archive/index.php/t-20952.html. Really thanks to the authors. The guide is specific for an home-brew serial reciver.
Preparing the system
The first step is to get the kernel source packages. This is done by first finding out what kernel we are running.
$ uname -r
This should spit out a line like "2.6.15-26-386". Note: this will vary according to the kernel version you are using. We only want the first 3 numbers: e.g. 2.6.15. To download the source:
$ sudo apt-get install linux-source-<kver> linux-headers-`uname -r`
Where <kver> is the three numbers mentioned above (2.6.15 in my case).
Now we need to extract the source we just downloaded and link it to the appropriate directory.
$ sudo tar xvjf /usr/src/linux-source-*.tar.bz2 -C /usr/src/ $ sudo ln -s /usr/src/linux-source-<kver> /usr/src/linux $ sudo ln -s /usr/src/linux /lib/modules/`uname -r`/build
and install the required packages.
$ sudo apt-get install build-essential kernel-package lirc-modules-source dialog
To finish setting up our build environment, we need to copy over a few specialized config files for our kernel by doing this:
$ sudo cp /boot/config-`uname -r` /usr/src/linux/.config $ cd /usr/src/linux $ sudo make oldconfig
Compiling the lirc module
$ cd /usr/src/linux $ sudo make include/linux/version.h $ sudo make modules
That last line will take a while.
Extract the lirc modules source.
$ cd /usr/src $ tar -xvzf lirc-modules.tar.gz