Difference between revisions of "UBUNTU/Installation"

From VDR Wiki
Jump to: navigation, search
m (link to DEBIAN_Configuring_VDR)
m (link to DEBIAN_Configuring_VDR)
Line 13: Line 13:
 
* Continue to [[DEBIAN_Compiling_VDR_Source_Packages]]
 
* Continue to [[DEBIAN_Compiling_VDR_Source_Packages]]
  
== Configuring VDR ==
+
== Configuring VDR and plugins ==
 
* See [[DEBIAN_Configuring_VDR]]
 
* See [[DEBIAN_Configuring_VDR]]
  
= Install and Configure VDR Plugins on Ubuntu =
 
If you have chosen to compile packages from source (as described above) you may now want to compile some of the plugin packages in the same way. You will already have checked out all the original tarballs, so all that remains is to checkout the debian build scripts for each plugin that you are interested, compile with svn-buildpackage and install with dpkg.
 
 
You can see which plugins are available for compiling by listing the tarball folder or by [http://svn.debian.org/wsvn/pkg-vdr-dvb/vdr/?rev=0&sc=0 browsing the websvn interface].
 
 
Having installed the plugin package you can configure it according to the generic information available in the README files in /usr/share/doc/vdr-plugin-* or [[Plugins|elsewhere on this wiki]].
 
 
I will give details of compiling the Xineliboutput plugin because it is one that I have some experience with and one that anyone using a budget DVB card should try. Other options for budget card users are:
 
* '''vdr-plugin-dxr3''': See [[Dxr3-plugin]] (If you have a DXR3 hardware MPEG decoder card)
 
* '''vdr-plugin-softdevice''': See [[Softdevice-plugin]]
 
* '''vdr-plugin-streamdev''': See [[Streamdev-plugin]]
 
* '''vdr-plugin-xine''': See [[Xine-plugin]] (note this different to the xineliboutput plugin below, although similar idea)
 
 
== Compile and Install Xineliboutput Plugin ==
 
The [http://users.tkk.fi/~phintuka/vdr/vdr-xineliboutput/ Xineliboutput plugin] allows you to render both DVB MPEG stream and the VDR OSD using libxine and processing power of your CPU. If you have a budget DVB card and your computer is powerful enough Xinelibout may be ideal for you. Additionally, it can stream the video and OSD across a LAN which allows you to setup a headless VDR server (using modest hardware) while the picture is displayed on and control is handled by one or more client machines elsewhere on the LAN.
 
 
Xineliboutput is not available in any of the Ubuntu repositories so we compile it from the latest Debian Package Sources as described above in the section [[UBUNTU/Installation#Installing from Debian Package Sources|Installing from Debian Package Sources]]. Briefly:
 
<pre>
 
richard@vito:~/src/debian-vdr$ svn co svn://svn.debian.org/svn/pkg-vdr-dvb/vdr/vdr-plugin-xineliboutput/trunk vdr/vdr-plugin-xineliboutput
 
</pre>
 
<pre>
 
richard@vito:~/src/debian-vdr$ cd vdr/vdr-plugin-xineliboutput/
 
richard@vito:~/src/debian-vdr/vdr/vdr-plugin-xineliboutput$ svn-buildpackage -rfakeroot -uc -us
 
</pre>
 
<pre>
 
richard@vito:~/src/debian-vdr/vdr/vdr-plugin-xineliboutput$ cd ../../build-area/
 
richard@vito:~/src/debian-vdr/build-area$ ls *.deb
 
libxine-xvdr_0.99rc4-1_i386.deb
 
vdr_1.4.1-1_i386.deb
 
vdr-dev_1.4.1-1_all.deb
 
vdr-plugin-examples_1.4.1-1_i386.deb
 
vdr-plugin-sky_1.4.1-1_i386.deb
 
vdr-plugin-xineliboutput_0.99rc4-1_i386.deb
 
vdr-plugin-xineliboutput-fb_0.99rc4-1_i386.deb
 
vdr-plugin-xineliboutput-x_0.99rc4-1_i386.deb
 
xineliboutput-remote-fb_0.99rc4-1_i386.deb
 
xineliboutput-remote-x_0.99rc4-1_i386.deb
 
</pre>
 
<pre>
 
richard@vito:~/src/debian-vdr/build-area$ sudo dpkg -i *xine*.deb
 
</pre>
 
This will install the vdr plugin plus the lightweight client apps for X11 and fb, plus a xine plugin which allows you to connect to the VDR stream from standard xine-ui.
 
== Configure Xineliboutput Plugin and Player ==
 
If Xinelibout installed without problems, you now have to configure it.
 
* First read the README files.
 
<pre>
 
richard@vito:~$ less /usr/share/doc/vdr-plugin-xineliboutput/README.gz
 
</pre>
 
All the information you need to configure the plugin is in that README and in the configuration file its self.
 
Debian VDR Plugin configurations live in /etc/vdr/plugins. In this case:
 
<pre>
 
richard@vito:~$ sudo nano -w /etc/vdr/plugins/plugin.xineliboutput.conf
 
</pre>
 
For general information on installing and configuring this plugin see [[Xineliboutput-plugin]].
 
== Compile the Xine-ui Source Package to Enable VDR Keys ==
 
Using xine-ui gives you many features which are not available in the lightweight clients eg Zooming and allows you to easily switch to DVD playback with full menus.
 
 
Unfortunately the stock Ubuntu Dapper xine-ui is not compiled with the necessary --enable-vdr-keys flag which enables full control of VDR. But it is not difficult to recompile xine-ui from the source packages. First glance at [http://www.murrayc.com/blog/permalink/2006/04/21/building-modified-debian-packages/ this guide to recompiling Debian packages] then follow these steps:
 
* Install all build dependencies
 
<pre>
 
richard@lazar:~/src/debian-xine/xine-ui-0.99.4$ sudo apt-get build-dep xine-ui
 
</pre>
 
* Download the xine-ui source package
 
<pre>
 
richard@lazar:~/src/debian-xine/xine-ui-0.99.4$ apt-get source xine-ui
 
</pre>
 
* Update the debian/rules file
 
<pre>
 
richard@lazar:~/src/debian-xine/xine-ui-0.99.4$ nano -w debian/rules
 
</pre>
 
<pre>
 
configure: configure-stamp
 
configure-stamp:
 
        dh_testdir
 
        ./configure --prefix=/usr --mandir=\$${prefix}/share/man \
 
                        --enable-vdr-keys \
 
...
 
</pre>
 
* Update the changelog file
 
<pre>
 
richard@lazar:~/src/debian-xine/xine-ui-0.99.4$ dch --nmu
 
</pre>
 
<pre>
 
xine-ui (0.99.4-0ubuntu6.1) dapper; urgency=low
 
 
  * Non-maintainer upload.
 
  * Added --enable-vdr-keys
 
...
 
</pre>
 
* Build the package.
 
<pre>
 
richard@lazar:~/src/debian-xine/xine-ui-0.99.4$ debuild -us -uc
 
</pre>
 
* And install
 
<pre>
 
richard@lazar:~/src/debian-xine/xine-ui-0.99.4$ sudo dpkg -i ../xine-ui_0.99.4-0ubuntu6.1_i386.deb
 
</pre>
 
 
[[Category:Ubuntu]]
 
[[Category:Ubuntu]]

Revision as of 16:43, 20 July 2006

Install and Configure VDR on Ubuntu

This article contains tips and advice for setting up VDR and plugins on Ubuntu. Ubuntu releases are based on snapshots of Debian Unstable; therefore the following may be of use to Debian users too. Indeed, later in this article we show how to compile bleading edge versions of the VDR packages from the Debian VDR and DVB Packaging Project.

Installing from Binary Packages

VDR has been available in the Ubuntu Universe repository since Warty.

This article assumes that you have installed Ubuntu Dapper and have installed and confirmed to be working a Linux compatible DVB device.

Before you can install VDR packages, you must first add the Universe repository to your Apt sources list. Now you can use Aptitude or Synaptic to search for available vdr packages.

Installing from Debian Package Sources

  • You will need to install svn-buildpackage, which lives in the Ubuntu Universe repository, so if you haven't already done so, add Universe to your sources.lst
  • Continue to DEBIAN_Compiling_VDR_Source_Packages

Configuring VDR and plugins