个人工具

“UbuntuHelp:LircSupport”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(正在重定向到 UbuntuHelp:InstallLirc
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
 +
#REDIRECT [[UbuntuHelp:InstallLirc]]
 
{{From|https://help.ubuntu.com/community/LircSupport}}
 
{{From|https://help.ubuntu.com/community/LircSupport}}
 
{{Languages|UbuntuHelp:LircSupport}}
 
{{Languages|UbuntuHelp:LircSupport}}
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.
 
<pre><nowiki>
 
$  uname -r</nowiki></pre>
 
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:
 
<pre><nowiki>
 
$  sudo apt-get install linux-source-<kver> linux-headers-`uname -r`</nowiki></pre>
 
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.
 
<pre><nowiki>
 
$  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</nowiki></pre>
 
and install the required packages.
 
<pre><nowiki>
 
$  sudo apt-get install build-essential kernel-package lirc-modules-source dialog</nowiki></pre>
 
To finish setting up our build environment, we need to copy over a few specialized config files for our kernel by doing this:
 
<pre><nowiki>
 
$  sudo cp /boot/config-`uname -r` /usr/src/linux/.config
 
$  cd /usr/src/linux
 
$  sudo make oldconfig</nowiki></pre>
 
== Compiling the lirc module ==
 
<pre><nowiki>
 
$  cd /usr/src/linux
 
$  sudo make include/linux/version.h
 
$  sudo make modules</nowiki></pre>
 
That last line will take a while.
 
Extract the lirc modules source.
 
<pre><nowiki>
 
$  cd /usr/src
 
$  tar -xvzf lirc-modules.tar.gz</nowiki></pre>
 
----
 
[[category:CategoryDocumentation]] [[category:CategoryHardware]]
 
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年4月23日 (三) 11:46的最新版本

重定向至: