https://www.linuxtv.org/vdrwiki/api.php?action=feedcontributions&user=193.113.57.161&feedformat=atomVDR Wiki - User contributions [en]2024-03-19T05:37:54ZUser contributionsMediaWiki 1.39.6https://www.linuxtv.org/vdrwiki/index.php?title=VDR_installation&diff=4796VDR installation2007-10-10T08:50:53Z<p>193.113.57.161: /* Network */</p>
<hr />
<div>This page explains how to compile and install VDR on your linux system (if you don't want to have it done for you by your distro's package manager).<br />
<br />
==Requirements==<br />
{{Box Info|<br />
The variable ''$SOURCEDIR'' stands for the directory where all the sources archives should be decompressed. Common directories are ''/usr/local/src'', ''/usr/src'' and the home directory of the user.<br />
}}<br />
<br />
To install [[VDR]], the [[linuxtv:DVB Standard|DVB]] driver has to be placed in the DVB directory, parallel to VDR.<br />
<pre><br />
$SOURCEDIR/DVB<br />
$SOURCEDIR/VDR<br />
</pre><br />
For the DVB driver in kernel 2.6 create a symbolic link<br />
<pre><br />
ln -s /usr/src/linux $SOURCEDIR/DVB<br />
</pre><br />
or use your distribution's kernel headers package.<br />
<br />
For everything concerning the DVB driver see [[DVB installation]].<br />
<br />
Also the [[JPEG]] library has to be present on the system. In a typical distribution, the library and the development headers are in separate packages; to be able to compile VDR, you need both (though to run it, you need only the library). If you want or need to install it from source:<br />
<pre><br />
cd $SOURCEDIR<br />
tar -xvzf jpegsrc.v6b.tar.gz<br />
cd jpeg-6b<br />
./configure --prefix=/usr/local<br />
make<br />
make install<br />
ldconfig<br />
</pre><br />
<br />
{{Box Warning|<br />
VDR 1.2.x and older 1.3.x don't work with NPTL (''Native Posix Thread Library''). Either don't use NPTL, or set the environment variable LD_ASSUME_KERNEL by entering<br />
<br />
<nowiki>export LD_ASSUME_KERNEL=2.4.1</nowiki><br />
<br />
before running VDR.<br />
<br />
VDR 1.3.27 and later do not appear to have any problems with NPTL.<br />
<br />
Also, please make sure your environment is NOT set to use UTF-8 or any other multibyte character representation. If so, it should be replaced by something like iso8859-1. Depending on the distribution the variables LANG and LC_CTYPE could be in different locations. These have to be set before starting VDR<br />
<br />
<nowiki>export LANG=de_DE.iso8859-1</nowiki><br />
<nowiki>export LC_CTYPE=de_DE.iso8859-1</nowiki><br />
<br />
de_DE.euro should also work.<br />
}}<br />
<br />
First of all a recent version of [[VDR]] is required. There are two releases to choose from, the stable release with an even version number (like 1.2.x) and the developer release with a odd version number (like 1.3.x).<br />
<br />
Which version to choose? The developer release has more features, but for the stable release more plugins are available. Both stable and development packages can be downloaded from [ftp://ftp.cadsoft.de/vdr/]<br />
<br />
==Installation==<br />
The source is decompressed in the ''$SOURCEDIR'' and a symbolic link to ''VDR'' is created<br />
<pre><br />
cd $SOURCEDIR<br />
tar -jxvf /path/to/vdr-<VERSION>.tar.bz2<br />
ln -s vdr-<VERSION> VDR<br />
cd VDR<br />
</pre><br />
<br />
Now a simple<br />
<pre><br />
make<br />
</pre><br />
compiles VDR. <br />
<br />
The VDR build can be customised, using one of the following option with the ''make'' command<br />
{|<br />
|bgcolor=#efefef|REMOTE=[[RCU]]<br />
| ''"Remote Control Unit"'', a purpose-build for VDR infrared receiver (see [http://www.cadsoft.de/vdr/remote.htm])<br />
|-<br />
|bgcolor=#efefef|REMOTE=[[LIRC]]<br />
| ''"Linux Infrared Remote Control"''. Infrared receiver for Linux (see [http://www.lirc.org])<br />
|-<br />
|bgcolor=#efefef|VFAT=1<br />
| If the video directory is a Windows VFAT partition or should be shared via samba, this parameter is needed<br />
|-<br />
|bgcolor=#efefef|NO_KBD=1<br />
| disables keyboard control<br />
|}<br />
<br />
With this the ''make'' command could look like this<br />
<pre><br />
make VFAT=1 REMOTE=LIRC<br />
</pre><br />
<br />
If the plugins should also be compiled, use this<br />
<pre><br />
make VFAT=1 REMOTE=LIRC all plugins<br />
</pre><br />
But see [[plugin installation]] for more information on this.<br />
<br />
All the parameter can be put into a ''Make.config'' file in the VDR directory for convenience<br />
<pre><br />
cp Make.config.template Make.config<br />
$EDITOR Make.config<br />
</pre><br />
with e.g.<br />
<pre><br />
REMOTE=LIRC VFAT=1<br />
</pre><br />
<br />
At first the desired directory has to be created<br />
<pre><br />
su<br />
mkdir /var/spool/video<br />
mkdir /var/spool/epg<br />
mkdir /etc/vdr<br />
mkdir /usr/lib/vdr<br />
</pre><br />
These directory are for the recordings, for the EPG data, the configuration files and for the plugins. The directory can of course be altered to the personal likings. Especially the from the video directory separated configuration directory has the advantage of using different VDR versions with different configurations, but with one directory for the recordings.<br />
<br />
Now the needed files must be copied over<br />
<pre><br />
cp vdr /usr/bin<br />
cp *.conf /etc/vdr<br />
cp PLUGINS/lib/* /usr/lib/vdr<br />
</pre><br />
<br />
Some programs need the ''svdrpsend.pl'' script in the $PATH, like [[vdrconvert-plugin]]/[[vdrrip-plugin]]<br />
<pre><br />
cp svdrpsend.pl /usr/local/bin<br />
</pre><br />
<br />
If the manual pages are disired<br />
<pre><br />
gzip -c vdr.1 > /usr/man/man1/vdr.1.gz<br />
gzip -c vdr.5 > /usr/man/man5/vdr.5.gz<br />
</pre><br />
<br />
==Configuration==<br />
===Invocation===<br />
At startup VDR needs to know where all the file are and should go<br />
<pre><br />
vdr --video=/var/spool/video \<br />
--epgfile=/var/spool/epg \<br />
--config=/etc/vdr \<br />
--lib=/usr/lib/vdr \<br />
[further parameter]<br />
</pre><br />
For further parameters see [[VDR options]].<br />
<br />
===Network===<br />
VDR offers the possibility to be controlled over the network with the help of the [[svdrp|SVDRP]] protocol. In the configuration file ''svdrphosts.conf'' every host and/or network is listed that is allowed to access to VDR. Only ''localhost'' is allowed in the standard configuration.<br />
<br />
There is a project which is '''work in progress''' aims to provide a network remote control. It has just started and it's very buggy but it shouldn't take long for it to be more stable. It is called '''vdr-netremote''' and you can find it [http://pattryn.blogspot.com/search/label/vdr here].<br />
<br />
===Miscellaneous===<br />
''runvdr'' is a start script for VDR that comes with the sources. It not only starts VDR it also starts the DVB driver and recovers all after a crash.<br />
<br />
==Links==<br />
{|<br />
| [1]<br />
| http://www.cadsoft.de/vdr<br />
| VDR homepage<br />
|-<br />
| [2]<br />
| ftp://ftp.cadsoft.de/vdr/Developer<br />
| VDR download directory<br />
|-<br />
| [3]<br />
| http://www.cadsoft.de/vdr/remote.htm<br />
| Remote Control Unit for VDR<br />
|-<br />
| [4]<br />
| http://www.lirc.org<br />
| LIRC homepage<br />
|-<br />
| [5]<br />
| http://www.ijg.org<br />
| libjpeg<br />
|}<br />
<br />
<!-- Link to german wiki page --><br />
[[de:VDR Installation]]</div>193.113.57.161https://www.linuxtv.org/vdrwiki/index.php?title=VDR_installation&diff=4795VDR installation2007-10-10T08:50:15Z<p>193.113.57.161: /* Network */</p>
<hr />
<div>This page explains how to compile and install VDR on your linux system (if you don't want to have it done for you by your distro's package manager).<br />
<br />
==Requirements==<br />
{{Box Info|<br />
The variable ''$SOURCEDIR'' stands for the directory where all the sources archives should be decompressed. Common directories are ''/usr/local/src'', ''/usr/src'' and the home directory of the user.<br />
}}<br />
<br />
To install [[VDR]], the [[linuxtv:DVB Standard|DVB]] driver has to be placed in the DVB directory, parallel to VDR.<br />
<pre><br />
$SOURCEDIR/DVB<br />
$SOURCEDIR/VDR<br />
</pre><br />
For the DVB driver in kernel 2.6 create a symbolic link<br />
<pre><br />
ln -s /usr/src/linux $SOURCEDIR/DVB<br />
</pre><br />
or use your distribution's kernel headers package.<br />
<br />
For everything concerning the DVB driver see [[DVB installation]].<br />
<br />
Also the [[JPEG]] library has to be present on the system. In a typical distribution, the library and the development headers are in separate packages; to be able to compile VDR, you need both (though to run it, you need only the library). If you want or need to install it from source:<br />
<pre><br />
cd $SOURCEDIR<br />
tar -xvzf jpegsrc.v6b.tar.gz<br />
cd jpeg-6b<br />
./configure --prefix=/usr/local<br />
make<br />
make install<br />
ldconfig<br />
</pre><br />
<br />
{{Box Warning|<br />
VDR 1.2.x and older 1.3.x don't work with NPTL (''Native Posix Thread Library''). Either don't use NPTL, or set the environment variable LD_ASSUME_KERNEL by entering<br />
<br />
<nowiki>export LD_ASSUME_KERNEL=2.4.1</nowiki><br />
<br />
before running VDR.<br />
<br />
VDR 1.3.27 and later do not appear to have any problems with NPTL.<br />
<br />
Also, please make sure your environment is NOT set to use UTF-8 or any other multibyte character representation. If so, it should be replaced by something like iso8859-1. Depending on the distribution the variables LANG and LC_CTYPE could be in different locations. These have to be set before starting VDR<br />
<br />
<nowiki>export LANG=de_DE.iso8859-1</nowiki><br />
<nowiki>export LC_CTYPE=de_DE.iso8859-1</nowiki><br />
<br />
de_DE.euro should also work.<br />
}}<br />
<br />
First of all a recent version of [[VDR]] is required. There are two releases to choose from, the stable release with an even version number (like 1.2.x) and the developer release with a odd version number (like 1.3.x).<br />
<br />
Which version to choose? The developer release has more features, but for the stable release more plugins are available. Both stable and development packages can be downloaded from [ftp://ftp.cadsoft.de/vdr/]<br />
<br />
==Installation==<br />
The source is decompressed in the ''$SOURCEDIR'' and a symbolic link to ''VDR'' is created<br />
<pre><br />
cd $SOURCEDIR<br />
tar -jxvf /path/to/vdr-<VERSION>.tar.bz2<br />
ln -s vdr-<VERSION> VDR<br />
cd VDR<br />
</pre><br />
<br />
Now a simple<br />
<pre><br />
make<br />
</pre><br />
compiles VDR. <br />
<br />
The VDR build can be customised, using one of the following option with the ''make'' command<br />
{|<br />
|bgcolor=#efefef|REMOTE=[[RCU]]<br />
| ''"Remote Control Unit"'', a purpose-build for VDR infrared receiver (see [http://www.cadsoft.de/vdr/remote.htm])<br />
|-<br />
|bgcolor=#efefef|REMOTE=[[LIRC]]<br />
| ''"Linux Infrared Remote Control"''. Infrared receiver for Linux (see [http://www.lirc.org])<br />
|-<br />
|bgcolor=#efefef|VFAT=1<br />
| If the video directory is a Windows VFAT partition or should be shared via samba, this parameter is needed<br />
|-<br />
|bgcolor=#efefef|NO_KBD=1<br />
| disables keyboard control<br />
|}<br />
<br />
With this the ''make'' command could look like this<br />
<pre><br />
make VFAT=1 REMOTE=LIRC<br />
</pre><br />
<br />
If the plugins should also be compiled, use this<br />
<pre><br />
make VFAT=1 REMOTE=LIRC all plugins<br />
</pre><br />
But see [[plugin installation]] for more information on this.<br />
<br />
All the parameter can be put into a ''Make.config'' file in the VDR directory for convenience<br />
<pre><br />
cp Make.config.template Make.config<br />
$EDITOR Make.config<br />
</pre><br />
with e.g.<br />
<pre><br />
REMOTE=LIRC VFAT=1<br />
</pre><br />
<br />
At first the desired directory has to be created<br />
<pre><br />
su<br />
mkdir /var/spool/video<br />
mkdir /var/spool/epg<br />
mkdir /etc/vdr<br />
mkdir /usr/lib/vdr<br />
</pre><br />
These directory are for the recordings, for the EPG data, the configuration files and for the plugins. The directory can of course be altered to the personal likings. Especially the from the video directory separated configuration directory has the advantage of using different VDR versions with different configurations, but with one directory for the recordings.<br />
<br />
Now the needed files must be copied over<br />
<pre><br />
cp vdr /usr/bin<br />
cp *.conf /etc/vdr<br />
cp PLUGINS/lib/* /usr/lib/vdr<br />
</pre><br />
<br />
Some programs need the ''svdrpsend.pl'' script in the $PATH, like [[vdrconvert-plugin]]/[[vdrrip-plugin]]<br />
<pre><br />
cp svdrpsend.pl /usr/local/bin<br />
</pre><br />
<br />
If the manual pages are disired<br />
<pre><br />
gzip -c vdr.1 > /usr/man/man1/vdr.1.gz<br />
gzip -c vdr.5 > /usr/man/man5/vdr.5.gz<br />
</pre><br />
<br />
==Configuration==<br />
===Invocation===<br />
At startup VDR needs to know where all the file are and should go<br />
<pre><br />
vdr --video=/var/spool/video \<br />
--epgfile=/var/spool/epg \<br />
--config=/etc/vdr \<br />
--lib=/usr/lib/vdr \<br />
[further parameter]<br />
</pre><br />
For further parameters see [[VDR options]].<br />
<br />
===Network===<br />
VDR offers the possibility to be controlled over the network with the help of the [[svdrp|SVDRP]] protocol. In the configuration file ''svdrphosts.conf'' every host and/or network is listed that is allowed to access to VDR. Only ''localhost'' is allowed in the standard configuration.<br />
<br />
There is a project which is '''work in progress''' aims to provide a network remote control. It has just started and it's very buggy but it shouldn't take long for it to be more stable. You can find it [http://pattryn.blogspot.com/search/label/vdr here vdr-netremote].<br />
<br />
===Miscellaneous===<br />
''runvdr'' is a start script for VDR that comes with the sources. It not only starts VDR it also starts the DVB driver and recovers all after a crash.<br />
<br />
==Links==<br />
{|<br />
| [1]<br />
| http://www.cadsoft.de/vdr<br />
| VDR homepage<br />
|-<br />
| [2]<br />
| ftp://ftp.cadsoft.de/vdr/Developer<br />
| VDR download directory<br />
|-<br />
| [3]<br />
| http://www.cadsoft.de/vdr/remote.htm<br />
| Remote Control Unit for VDR<br />
|-<br />
| [4]<br />
| http://www.lirc.org<br />
| LIRC homepage<br />
|-<br />
| [5]<br />
| http://www.ijg.org<br />
| libjpeg<br />
|}<br />
<br />
<!-- Link to german wiki page --><br />
[[de:VDR Installation]]</div>193.113.57.161