Difference between revisions of "Installing MythTV SVN on Debian Sid"

From MythTV Official Wiki
Jump to: navigation, search
(Getting MythTV)
m (debian-multimedia.org -> deb-multimedia.org)
 
(54 intermediate revisions by 25 users not shown)
Line 1: Line 1:
= Information =
+
{{outdated}}
  
This is an Tutorial on installing MythTV on a new installed Debian SID Machine.
+
This is a Tutorial to installing MythTV on a new installed Debian SID Machine.
  
= UDEV in current debian =
+
== Getting the necessary Debian Packages ==
 +
Install the mysql server:
  
If you want to use udev in the current debian sid, you sould switch back your sources.list from debian sid to stabel, get udev, set the udev packet to be hold, and change your sources back to sid.
+
apt-get install mysql-server
The current udev of debian sid requires kernel 2.6.12 wich is not aviable via apt. so you build your own kernel 2.6.12 packages or use the old udev.
+
 
 +
Don't forget to set a mysql root user password if you haven't already done so while performing the installation:
 +
 
 +
mysqladmin -u root password yourpasswordhere
 +
 
 +
Next, we need to add 2 more sources to our sources.list:
 +
deb http://www.deb-multimedia.org/ sid main
 +
deb-src http://www.deb-multimedia.org/ sid main
 +
 
 +
Now, get the rest of the needed packages to build myth via:
 +
 
 +
apt-get update
 +
apt-get build-dep mythtv
 +
 
 +
== Getting MythTV ==
 +
 
 +
Unless you have a really good reason not to, you should probably just get the packaged version issuing:
 +
apt-get install mythtv
 +
and if you want extras you can search for them with apt-cache search mythtv
 +
 
 +
== Building yourself (experts) ==
 +
 
 +
=== Building from upstream ===
 +
 
 +
There are a few prerequisites that are needed when compiling MythTV from source.
 +
 
 +
# apt-get install libqt3-mt-mysql sudo screen libfreetype6-dev liblame-dev
 +
 
 +
MythTV recommends that you create a mythtv user to compile and configure your MythTV installation. This will prevent making mistakes that could render your computer unusable (i.e. doing a rm -rf * in the wrong directory). As root, do the following:
 +
 
 +
# useradd -m mythtv
 +
# passwd mythtv
 +
# visudo
 +
 
 +
Then add this line to the document (if you're in vi, press i, then type/paste the line, then press Esc, type ZZ and press return):
 +
mythtv  ALL=(ALL) ALL
 +
 
 +
Now login (using ssh or directly on the computer) with the mythtv user and do the following:
 +
 
 +
$ mkdir mythtv_build
 +
$ cd mythtv_build
 +
$ svn co http://cvs.mythtv.org/svn/trunk/mythtv
 +
 
 +
This creates a folder called mythtv where the actual sources are in.
 +
 
 +
$ cd mythtv
 +
 
 +
Then start screen so that you can leave the computer (close the ssh session) easily while the compilation takes place.
 +
 
 +
$ screen
 +
 
 +
If you want to leave the computer, just press Ctlr-A then press d. The screen will disappear from the screen but continue to run in the background. The get the screen back, type
 +
 
 +
$ screen -r
  
= Getting the nessecary Debian Packages =
+
and the screen will reappear.
  
At this time, in Debian SID the Dependecies of the kdelibs are broken, so the could not get being installed. Therefore you had to got to install the package libopenexr2 by hand that the apt-get works.
+
Now compile MythTV with something like:
  
  wget http://debian.experimentos.cl/debian/pool/main/o/openexr/libopenexr2_1.2.2-2_i386.deb
+
  $ ./configure --prefix=/usr/local --enable-dvb
  dpkg -i libopenexr2_1.2.2-2_i386.deb
+
$ make
 +
  $ sudo make install
  
after that you could get the kdelibs
+
The configure line above is only an example. In this example, the installation is configured to be under '''/usr/local'''. If you want to put it somewhere else, you can alter the '''--prefix''' argument. Run ./configure --help to see what options are available and necessary for you.
  
apt-get install kdelibs4
+
You will need to apt-get these packages to build all the plugins:
  
now at first we need the mysql server:
+
$ sudo apt-get install libcdparanoia0-dev libmad0-dev libid3tag0-dev kdelibs4-dev libflac++-dev libxvmc-dev
 +
$ cd ..
 +
$ svn co http://cvs.mythtv.org/svn/trunk/mythplugins
 +
$ cd mythplugins
 +
$ ./configure --prefix=/usr/local
 +
$ make
 +
$ sudo make install
  
  apt-get install mysql-server
+
Finally, you can build the themes using
 +
 
 +
  $ cd ..
 +
$ svn co http://cvs.mythtv.org/svn/trunk/myththemes
 +
$ cd myththemes
 +
$ ./configure --prefix=/usr/local
 +
$ make
 +
$ sudo make install
 +
 
 +
MythWeb is really nice to have, and you can install it like so:
  
and of course the config of the mysql server in the current sid is also broken we need to fix it. open the my.cnf in /etc/mysql and add a "#" for the following lines:
+
$ cd ..
 +
$ sudo cp -r mythplugins/mythweb /var/www/
  
#old passwords
+
You may need to edit the configuration file
#bind-address
 
  
now edit the debian.cnf and enter a valid mysql root user account.
+
$ sudo nano /var/www/mythweb/mythweb.conf.apache
  
at next step we need to add 2 more sources to our sources.list
+
change <Directory "/var/www/html" > to <Directory "/var/www/mythweb" >
  
deb ftp://ftp.nerim.net/debian-marillat/ sid  main
+
Next you will need to copy the configuration file to the httpd
deb-srv ftp://ftp.nerim.net/debian-marillat/ sid  main
 
  
now we can get the rest of the needed package sto build myth via:
+
$ sudo cp /var/www/mythweb/mythweb.conf.apache /etc/apache/conf.d/mythweb.conf
  
apt-get update
+
You then need to make sure your web server can write to the 'data' directory in mythweb
apt-get install subversion subversion-tools liblame0 liblame-dev libqt3-headers libmysqlclient10-dev libvorbis-dev libartsc0-dev libasound2-dev libqt3-mt-dev libqt3c102-mt-mysql phpmyadmin xmltv devscripts liblircclient-dev liblircclient0 libdvdnav-dev libflac-dev libmad0-dev libcdaudio0-dev libcdparanoia0-dev libid3tag0-dev fftw-dev libsdl1.2-dev kdelibs4-dev libdvdread3-dev festival-dev festival libxml-simple-perl libdvdcss2 ffmpeg transcode w32codecs xvid4conf avidemux dvdstyler libxinerama-dev libxxf86vm-dev libtiff4-dev
 
  
= Getting MythTV =
+
$ sudo chgrp -R www-data /var/www/mythweb/data
 +
$ sudo chmod g+rw /var/www/mythweb/data
 +
$ sudo /etc/init.d/apache2 restart
  
Now you can get mythtv:
+
=== Building from packaged source ===
  
  svn co http://cvs.mythtv.org/svn/trunk/mythtv
+
If you include the following two lines in /etc/apt/sources.list
 +
  deb http://www.debian-multimedia.org sid main
 +
deb-src http://www.debian-multimedia.org sid main
 +
then you can use the usual
 +
apt-get source mythtv mythplugins myththemes
 +
to retrieve Christian Marillat's source packages, followed by (as superuser)
 +
apt-get build-dep mythtv mythplugins myththemes
 +
to setup the build dependencies.
 +
Now you can build with the usual
 +
dpkg-buildpackage -uc -b -rfakeroot
 +
as usual (in each of the three created directories).
  
and compile it via:
 
  
  ./configure --prefix=/usr --arch=athlon-xp --enable-dvb --enable-dvb-eit --disable-joystick-menu --disable-ivtv --disable-firewire --disable-audio-arts --disable-audio-jack --dvb-path=/usr/include --enable-opengl-vsync --enable-mp3lame --enable-memalign-hack
+
== Creating the database ==
make
+
Now create the database..
make install
+
  mysql --user=root --password < /usr/share/mythtv/sql/mc.sql
  
you can change that configure line, because not all of you have a athlon xp or need no joystick menu...
+
== Starting MythTV ==
  
= Starting MythTV =
+
Now you can setup mythbackend via mythtv-setup (there you will be prompted to seleted the user and password to access the database: use user root and the password you have selected earlier).
  
now you can setup mythbackend via mythtv-setup.
+
[[Category:Distribution_Specific_Install_Guides]]

Latest revision as of 14:30, 14 November 2012

Time.png Outdated: The information on this page may no longer be relevant to the current release of MythTV, 34.0. Please consider helping to update it. This page was last modified on 2012-11-14.

This is a Tutorial to installing MythTV on a new installed Debian SID Machine.

Getting the necessary Debian Packages

Install the mysql server:

apt-get install mysql-server

Don't forget to set a mysql root user password if you haven't already done so while performing the installation:

mysqladmin -u root password yourpasswordhere

Next, we need to add 2 more sources to our sources.list:

deb http://www.deb-multimedia.org/ sid main 
deb-src http://www.deb-multimedia.org/ sid main

Now, get the rest of the needed packages to build myth via:

apt-get update
apt-get build-dep mythtv

Getting MythTV

Unless you have a really good reason not to, you should probably just get the packaged version issuing:

apt-get install mythtv

and if you want extras you can search for them with apt-cache search mythtv

Building yourself (experts)

Building from upstream

There are a few prerequisites that are needed when compiling MythTV from source.

# apt-get install libqt3-mt-mysql sudo screen libfreetype6-dev liblame-dev

MythTV recommends that you create a mythtv user to compile and configure your MythTV installation. This will prevent making mistakes that could render your computer unusable (i.e. doing a rm -rf * in the wrong directory). As root, do the following:

# useradd -m mythtv
# passwd mythtv
# visudo

Then add this line to the document (if you're in vi, press i, then type/paste the line, then press Esc, type ZZ and press return):

mythtv  ALL=(ALL) ALL

Now login (using ssh or directly on the computer) with the mythtv user and do the following:

$ mkdir mythtv_build
$ cd mythtv_build
$ svn co http://cvs.mythtv.org/svn/trunk/mythtv

This creates a folder called mythtv where the actual sources are in.

$ cd mythtv

Then start screen so that you can leave the computer (close the ssh session) easily while the compilation takes place.

$ screen

If you want to leave the computer, just press Ctlr-A then press d. The screen will disappear from the screen but continue to run in the background. The get the screen back, type

$ screen -r

and the screen will reappear.

Now compile MythTV with something like:

$ ./configure --prefix=/usr/local --enable-dvb
$ make
$ sudo make install

The configure line above is only an example. In this example, the installation is configured to be under /usr/local. If you want to put it somewhere else, you can alter the --prefix argument. Run ./configure --help to see what options are available and necessary for you.

You will need to apt-get these packages to build all the plugins:

$ sudo apt-get install libcdparanoia0-dev libmad0-dev libid3tag0-dev kdelibs4-dev libflac++-dev libxvmc-dev
$ cd ..
$ svn co http://cvs.mythtv.org/svn/trunk/mythplugins
$ cd mythplugins
$ ./configure --prefix=/usr/local
$ make
$ sudo make install

Finally, you can build the themes using

$ cd ..
$ svn co http://cvs.mythtv.org/svn/trunk/myththemes
$ cd myththemes
$ ./configure --prefix=/usr/local
$ make
$ sudo make install

MythWeb is really nice to have, and you can install it like so:

$ cd ..
$ sudo cp -r mythplugins/mythweb /var/www/

You may need to edit the configuration file

$ sudo nano /var/www/mythweb/mythweb.conf.apache

change <Directory "/var/www/html" > to <Directory "/var/www/mythweb" >

Next you will need to copy the configuration file to the httpd

$ sudo cp /var/www/mythweb/mythweb.conf.apache /etc/apache/conf.d/mythweb.conf

You then need to make sure your web server can write to the 'data' directory in mythweb

$ sudo chgrp -R www-data /var/www/mythweb/data
$ sudo chmod g+rw /var/www/mythweb/data
$ sudo /etc/init.d/apache2 restart

Building from packaged source

If you include the following two lines in /etc/apt/sources.list

deb http://www.debian-multimedia.org sid main
deb-src http://www.debian-multimedia.org sid main

then you can use the usual

apt-get source mythtv mythplugins myththemes

to retrieve Christian Marillat's source packages, followed by (as superuser)

apt-get build-dep mythtv mythplugins myththemes

to setup the build dependencies. Now you can build with the usual

dpkg-buildpackage -uc -b -rfakeroot

as usual (in each of the three created directories).


Creating the database

Now create the database..

  mysql --user=root --password < /usr/share/mythtv/sql/mc.sql

Starting MythTV

Now you can setup mythbackend via mythtv-setup (there you will be prompted to seleted the user and password to access the database: use user root and the password you have selected earlier).