Installation for dummies:


Linux Mandrake is considered as the simplest distribution for newbies.
Therefore, the purpose of this HowTo is to present you some simple methods to install XdTV on a Linux Mandrake distribution.

Actually XdTV installation gets more and more complicated because, firstly, it works with other softwares and secondly, because it needs more and more libraries:

Softwares:
- To use teletext, XdTV works with AleVT (http://www.goron.de/~froese/) which is now included into the XdTV tarball.
- To use NextView (Electronic TV Programme Guide), XdTV works with Nxtvepg (http://nxtvepg.sourceforge.net/)

Libraries:

So, any newbie might come across some problems to compile correctly XdTV.
This Howto propose you a simple method to make an installation without any problem.

1) Use the XdTV URPMI repository:

Debian users are very proud of their update software named apt-get.
The Mandrake distribution has also a such software named URPMI.

You have just installed a new version of your favorite Mandrake distribution  with 3 or 5 CD-Roms (3 if you have
downloaded it, 5 if you have bought it). But, some packages are missing
because they are managed apart from the Linux Mandrake official project:

XdTV URPMI repository propose you the missing packages needed to fully use XdTV. To add them,
you just have to type this command into a shell:

urpmi.addmedia xdtv http://xawdecode.sourceforge.net/download/cvs.mdk.rpm with hdlist.cz

All repositories can be upgraded if you type this command:

urpmi.update xdtv

Finally, to install XdTV, you just have to type this command into a shell:

urpmi xdtv xdtv-OSD-font xdtv-devel


2) Use the PLF URPMI repository:

To install XdTV, il also possible to use the PLF repository:
Use this web site to configure it: http://easyurpmi.zarb.org/
This web site can help you to add several URPMI sources in addition to the PLF one http://plf.zarb.org

To add the PLF repository, you have to type a such command:

urpmi.addmedia plf ftp://ftp.free.fr/pub/Distributions_Linux/plf/mandrake/10.0 with hdlist.cz

Next type this command to import the PLF PGP key:

lynx -source http://plf.zarb.org/plf.asc | gpg --import

When all needed sources are added (it could take a long time if there is a lot of RPMS), you just have to type this command in a shell with root rights:

urpmi xdtv

The package manager makes several tests and proposes you to download all other XdTV needed packages.

Sometimes, if you want to update your URPMI sources, you just have to type this command:

urpmi.update plf

Method number 2:

With this method you have to download all packages manually and put them into the same folder, and finally, you have to install them all together.

Which packages do I need to download?

libffmpeg
libdivx4linux0
libxvid4
xterm
libzvbi0
liblirc0
liblame0
liblirc0
libalsa2
libXaw3d7 (Or better this library: libneXtaw0)

  1. Download all these packages
  2. Put them in the same folder
  3. Copy in this folder all the XdTV packages: xdtv xdtv-OSD-font xdtv-devel
  4. Finally type this command: rpm -Uvh *.rpm

The installation is finished.

Method number 3:

With this method you are going to compile the XdTV tarball. This method can be break down in 3 sub methodes

  • Use the spec file included into the XdTV tarball
  • Use an extrenal spec file
  • Use a XdTV src.rpm file

But before doing anything, you have to download, and next install, all the developpment packages needed (If you want to compile XdTV you need some developpment libraries).

Here are all developpment libraries needed:

XdTV needed libraries:

libXaw3d7-devel (a better library could be: libneXtaw0-devel)
libjpeg62-devel
XFree86-devel or libxorg-x11-devel

Codecs libraries & remote control support:

libdivx4linux0-devel
libffmpeg-devel
liblame0-devel
libxvid4-devel
libzvbi0-devel
libalsa2-devel
liblirc0-devel

  1. Download all these libraries (some of them into XdTV or PLF repository, others into the Contribs repository, all others into the official Mandrake CD-Roms)
  2. Put them in a folder
  3. Install them with this command: rpm -Uvh *.rpm

Your system in now ready: you can compile XdTV from the source files.

-> With the spec file included into the XdTV source files:

  1. With root rights, go to folder where XdTV tarball are (one tar.gz file)
  2. Type this command: rpm -ta xxxx.tar.gz (xxx is the software file name)
  3. One rpm file is created, you can find it in this folder: /usr/src/RPM/RPMS/i586
  4. To install this package, type this command: rpm -Uvh /usr/src/RPM/RPMS/i586/xxxx.rpm (xxx is the software file name)


For information:
-ta: "t" meens "tar" and "a" meens "all", so with these parameters *.rpm and *.src.rpm files are built
-tb: "t" meens "tar" and "b" meens "binary", so with these parameters only *.rpm file is built

-> With an external SPEC file:

  1. Copy xxxx.tar.gz tarball in /usr/src/RPM/SOURCES folder and put the SPEC file in /usr/src/RPM/SPEC folder
  2. Type this command: rpm -ba /usr/src/RPM/SPEC/xxxx.spec 
  3. The created RPM file can be found into the /usr/src/RPM/RPMS/i586 folder
  4. Finally, to install this RPM package, you have to type this last command: rpm -Uvh /usr/src/RPM/RPMS/i586/xxxx.rpm (xxx is the software file name)

-> With a src.rpm file:

  1. Type this command from XdTV src.rpm folder: rpm --rebuild xxxx.src.rpm
  2. The created RPM file can be found into the /usr/src/RPM/RPMS/i586 folder
  3. Finally, to install this RPM package, type this last command: rpm -Uvh /usr/src/RPM/RPMS/i586/xxxx.rpm (xxx is the software file name)

 

Copyright (c) 2002 Keuleu - Pingus - BlindMan
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1
or any later version published by the Free Software Foundation;
with the Invariant Sections being LIST THEIR TITLES, with the
Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
A copy of the license is included in the section entitled "GNU
Free Documentation License"