UBUNTU/Installation: Difference between revisions

From VDR Wiki
Jump to navigation Jump to search
Line 20: Line 20:


== Installing VDR from e-tobi.net source packages ==
== Installing VDR from e-tobi.net source packages ==
* updated 2/5/2007 (VA, Finland)

IMPORTANT INFO BEFORE INSTALLATION!!
IMPORTANT INFO BEFORE INSTALLATION!!
* make sure your DVB card works before doing this
* this is only recommended if Ubuntu supplied packages are not enough, for example you need extra plugins
* tested on Ubuntu Edgy/Feisty, recommended only for advanced users!!
* make sure your DVB card works before doing this (I used kaffeine player for testing)
* this example includes subtitles patch
* tested on Ubuntu Edgy/Feisty, recommended only for advanced users!!
(needed for DVB subtitles at least in some European countries)
* this example includes subtitles patch (needed for DVB subtitles at least in some European countries)
* this process must be done again after dist-upgrades
* this process must be done again after dist-upgrades
* prepare for bugs, if you experience problems wait for newer versions

VDR
<br>
1. Remove all installed Ubuntu VDR packages.
VDR
$ sudo apt-get remove vdr vdr-dev
<br>
* NOTE this does not remove configuration files, consider using Synaptic complete removal
1. Remove all installed Ubuntu VDR packages.
<br>
2. Add the following to /etc/apt/sources.list.
$ sudo apt-get remove vdr vdr-dev
deb-src http://e-tobi.net/vdr-experimental sid base addons vdr
<br><br>
2. Add the following to /etc/apt/sources.list.
3. Update packagelist and install compile tools.
<br>
$ sudo apt-get update
<nowiki>deb-src http://e-tobi.net/vdr-experimental sid base addons vdr</nowiki>
$ sudo apt-get install dpkg-dev build-essential fakeroot
<br><br>
3. Update packagelist and install compile tools.
3. Make a directory for source code files.
<br>
$ cd ~
$ sudo apt-get update<br>
$ mkdir vdr-src
$ sudo apt-get install dpkg-dev build-essential fakeroot
$ cd vdr-src
<br><br>
3. Make a directory for source code files.
4. Install VDR sourcecode.
<br>
$ apt-get source vdr
$ cd ~<br>
$ mkdir vdr-src<br>
5. Try to get depencies automatically.
$ cd vdr-src
$ sudo apt-get build-dep vdr
<br><br>
4. Install VDR sourcecode.
6. Make sure you have some needed packages.
<br>
$ sudo apt-get install debhelper linux-headers-generic libjpeg62-dev dpatch libcap-dev libncurses5-dev
$ apt-get source vdr
<br><br>
7. Activate subtitles patch by editing file vdr-1.4.*/debian/patches/00list.
5. Try to get depencies automatically.
Do this only if you need DVB subtitles. Remove comments from the following lines.
<br>
opt-27_subtitles-ttxtsubs
$ sudo apt-get build-dep vdr
opt-27-x_subtitles-ttxtsubs-volumebar-fix
<br><br>
6. Make sure you have some needed packages.
You can also activate other patches, but be careful as they might conflict each other.
<br>
$ sudo apt-get install debhelper linux-headers-generic libjpeg62-dev dpatch libcap-dev libncurses5-dev
8. Compile VDR and create deb packages.
<br><br>
7. Activate subtitles patch by editing file vdr-1.4.*/debian/patches/00list. Remove comments from the following lines:
$ cd ~/vdr-src/vdr-1.4.*<br>
<br>
$ fakeroot debian/rules binary
opt-27_subtitles-ttxtsubs<br>
opt-27-x_subtitles-ttxtsubs-volumebar-fix
After this there should be vdr_1.4.*.deb and vdr-dev_1.4.*.deb packages in ~/vdr-src.
<br>
You can also activate other patches, but be careful as they might conflict each other.
9. Install deb packages.
<br><br>
8. Compile VDR and create deb packages.
<br>
$ cd ~/vdr-src<br>
$ cd ~/vdr-src/vdr-1.4.*<br>
$ sudo dpkg -i vdr_1.4*.deb vdr-dev_1.4*.deb
$ sudo /etc/init.d/vdr stop
$ fakeroot debian/rules binary
(stop vdr, plugins need to be activated)
<br><br>
After this there should be vdr_1.4.*.deb and vdr-dev_1.4.*.deb packages in ~/vdr-src.
DONE! Continue to install plugins below.
<br><br>
9. Install deb packages.
PLUGINS
<br>
$ cd ~/vdr-src<br>
Browse e-tobi.net selection at http://www.e-tobi.net/repositories/repositories.html
$ sudo dpkg -i vdr_1.4*.deb vdr-dev_1.4*.deb
Below are a couple of examples to install them.
<br><br>
DONE! Continue to install plugins below
vdr-plugin-subtitles
<br><br>
$ cd ~/vdr-src
PLUGINS
$ apt-get source vdr-plugin-subtitles
<br>
$ sudo apt-get build-dep vdr-plugin-subtitles
Browse e-tobi.net selection at http://www.e-tobi.net/repositories/repositories.html<br>
$ cd vdr-plugin-subtitles-*
Below are a couple of examples to install them
$ fakeroot debian/rules binary
<br><br>
$ cd ..
vdr-plugin-subtitles
$ sudo dpkg -i vdr-plugin-subtitles_*.deb
<br>
$ cd ~/vdr-src<br>
$ apt-get source vdr-plugin-subtitles<br>
vdr-plugin-xineliboutput
$ sudo apt-get build-dep vdr-plugin-subtitles<br>
$ cd vdr-plugin-subtitles-*<br>
$ apt-get source vdr-plugin-xineliboutput
$ sudo apt-get build-dep vdr-plugin-xineliboutput
$ fakeroot debian/rules binary<br>
$ cd vdr-plugin-xineliboutput-*
$ cd ..<br>
$ fakeroot debian/rules binary
$ sudo dpkg -i vdr-plugin-subtitles_*.deb<br>
$ cd ..
<br><br>
vdr-plugin-xineliboutput
$ sudo dpkg -i vdr-plugin-xineliboutput_*.deb libxine-xvdr_*.deb libxineliboutput-sxfe_*.deb xineliboutput-sxfe_*.deb
<br>
MORE PLUGINS
$ apt-get source vdr-plugin-xineliboutput<br>
$ sudo apt-get build-dep vdr-plugin-xineliboutput<br>
Below are listed a couple of useful plugins. Install the same way as above.
$ cd vdr-plugin-xineliboutput-*<br>
It can be wise to install these after you are sure vdr is working.
$ fakeroot debian/rules binary<br>
vdr-plugin-remote (remote control support)
$ cd ..<br>
vdr-plugin-osdteletext (used at least in europe)
$ sudo dpkg -i vdr-plugin-xineliboutput_*.deb libxine-xvdr_*.deb libxineliboutput-sxfe_*.deb xineliboutput-sxfe_*.deb
vdradmin-am (control vdr via web)
<br><br>
MORE PLUGINS
USEFUL TIPS
<br>
Below are listed a couple of useful plugins. Install the same way as above.
Starting VDR (started automatically during deb installation)
<br>
$ sudo /etc/init.d/vdr start
remote (remote control support)<br>
osdteletext (used at least in europe)
Config files (if you make changes, remember to restart VDR)
<br><br>
USEFUL TIPS
/etc/default/vdr
<br>
# Enable VDR
Starting VDR (started automatically during deb installation)<br>
ENABLED=1
/etc/init.d/vdr start
# change default path to save recordings
<br><br>
VIDEO_DIR="/path/to/videodir"
Config files (if you make changes, remember to restart VDR)
# use this only to configure remote control keys via sxfe, comment out for normal use
<br><br>
# USER=your_username_which_is_running_X_session
<code>
/etc/default/vdr<br>
/etc/vdr/plugins/plugin.xineliboutput.conf
VIDEO_DIR="/path/to/video" # change default path to save recordings<br>
--local=none # disable sxfe access, consider enabling if you have a dedicated VDR box
USER=your_username_which_is_running_X_session # use this only to configure remote control keys via sxfe, comment out for normal use
--remote=37890 # add network support in order to access it via xine player
<br><br>
--primary
/etc/vdr/plugins/plugin.xineliboutput.conf<br>
NOTE, first time starting VDR use --local=sxfe --remote=none to configure remote control keys.
--local=none # disable sxfe access, consider enabling if you have a dedicated VDR box<br>
Remember to use correct USER above (normally VDR is run as "vdr" user which does not have access to your X session)
--remote=37890 # add network support in order to access it via xine player<br>
Otherwise xine xvdr access does not seem to work because it's waiting for remote control configuration.
--primary<br>
Also temporarily "chmod 777 /var/lib/vdr" so that remote.conf can be written.
NOTE, first time starting VDR use --local=sxfe --remote=none to configure remote control keys.<br>
Also temporarily chmod 777 /var/lib/vdr so remote.conf can be written.
/var/lib/vdr/channels.conf
</code>
This is a required file with channel frequency info in your area.
<br><br>
See http://www.linuxtv.org/vdrwiki/index.php/Syntax_of_channels.conf for more info.
/var/lib/vdr/channels.conf<br>
This is a required file with channel frequency info in your area, see http://www.linuxtv.org/vdrwiki/index.php/Syntax_of_channels.conf for more info.
DONE!!
<br><br>
DONE!!
You should be able to access VDR via xine-ui (select XVDR). See xineliboutput for more frontends.
<br><br>
If you have later problems to use xine-ui, try the sxfe option (mentioned earlier) to debug.
You should be able to access VDR via xine-ui (select XVDR). See xineliboutput for more frontends.
If you have later problems to use xine-ui, try the sxfe option (mentioned earlier) to debug.





Revision as of 06:55, 2 May 2007

Install and Configure VDR on Ubuntu

This article contains tips and advice for setting up VDR and plugins on Ubuntu.

Info
Info

Ubuntu releases are based on snapshots of Debian Unstable so you can mostly refer to the Debian documentation.

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

Installing VDR from e-tobi.net source packages

* updated 2/5/2007 (VA, Finland)

IMPORTANT INFO BEFORE INSTALLATION!!
* this is only recommended if Ubuntu supplied packages are not enough, for example you need extra plugins
* make sure your DVB card works before doing this (I used kaffeine player for testing)
* tested on Ubuntu Edgy/Feisty, recommended only for advanced users!!
* this example includes subtitles patch (needed for DVB subtitles at least in some European countries)
* this process must be done again after dist-upgrades

VDR
1. Remove all installed Ubuntu VDR packages.
$ sudo apt-get remove vdr vdr-dev
* NOTE this does not remove configuration files, consider using Synaptic complete removal

2. Add the following to /etc/apt/sources.list.
deb-src http://e-tobi.net/vdr-experimental sid base addons vdr

3. Update packagelist and install compile tools.
$ sudo apt-get update
$ sudo apt-get install dpkg-dev build-essential fakeroot

3. Make a directory for source code files.
$ cd ~
$ mkdir vdr-src
$ cd vdr-src

4. Install VDR sourcecode.
 $ apt-get source vdr

5. Try to get depencies automatically.
$ sudo apt-get build-dep vdr

6. Make sure you have some needed packages.
$ sudo apt-get install debhelper linux-headers-generic libjpeg62-dev dpatch libcap-dev libncurses5-dev

7. Activate subtitles patch by editing file vdr-1.4.*/debian/patches/00list.
Do this only if you need DVB subtitles. Remove comments from the following lines.
opt-27_subtitles-ttxtsubs
opt-27-x_subtitles-ttxtsubs-volumebar-fix

You can also activate other patches, but be careful as they might conflict each other.

8. Compile VDR and create deb packages.

$ cd ~/vdr-src/vdr-1.4.*
$ fakeroot debian/rules binary After this there should be vdr_1.4.*.deb and vdr-dev_1.4.*.deb packages in ~/vdr-src. 9. Install deb packages. $ cd ~/vdr-src
$ sudo dpkg -i vdr_1.4*.deb vdr-dev_1.4*.deb $ sudo /etc/init.d/vdr stop (stop vdr, plugins need to be activated) DONE! Continue to install plugins below. PLUGINS Browse e-tobi.net selection at http://www.e-tobi.net/repositories/repositories.html Below are a couple of examples to install them. vdr-plugin-subtitles $ cd ~/vdr-src $ apt-get source vdr-plugin-subtitles $ sudo apt-get build-dep vdr-plugin-subtitles $ cd vdr-plugin-subtitles-* $ fakeroot debian/rules binary $ cd .. $ sudo dpkg -i vdr-plugin-subtitles_*.deb vdr-plugin-xineliboutput $ apt-get source vdr-plugin-xineliboutput $ sudo apt-get build-dep vdr-plugin-xineliboutput $ cd vdr-plugin-xineliboutput-* $ fakeroot debian/rules binary $ cd .. $ sudo dpkg -i vdr-plugin-xineliboutput_*.deb libxine-xvdr_*.deb libxineliboutput-sxfe_*.deb xineliboutput-sxfe_*.deb MORE PLUGINS Below are listed a couple of useful plugins. Install the same way as above. It can be wise to install these after you are sure vdr is working. vdr-plugin-remote (remote control support) vdr-plugin-osdteletext (used at least in europe) vdradmin-am (control vdr via web) USEFUL TIPS Starting VDR (started automatically during deb installation) $ sudo /etc/init.d/vdr start Config files (if you make changes, remember to restart VDR) /etc/default/vdr # Enable VDR ENABLED=1 # change default path to save recordings VIDEO_DIR="/path/to/videodir" # use this only to configure remote control keys via sxfe, comment out for normal use # USER=your_username_which_is_running_X_session /etc/vdr/plugins/plugin.xineliboutput.conf --local=none # disable sxfe access, consider enabling if you have a dedicated VDR box --remote=37890 # add network support in order to access it via xine player --primary NOTE, first time starting VDR use --local=sxfe --remote=none to configure remote control keys. Remember to use correct USER above (normally VDR is run as "vdr" user which does not have access to your X session) Otherwise xine xvdr access does not seem to work because it's waiting for remote control configuration. Also temporarily "chmod 777 /var/lib/vdr" so that remote.conf can be written. /var/lib/vdr/channels.conf This is a required file with channel frequency info in your area. See http://www.linuxtv.org/vdrwiki/index.php/Syntax_of_channels.conf for more info. DONE!! You should be able to access VDR via xine-ui (select XVDR). See xineliboutput for more frontends. If you have later problems to use xine-ui, try the sxfe option (mentioned earlier) to debug.