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

From MythTV Official Wiki
Jump to: navigation, search
(Improved the instructions)
(More improvements.)
Line 31: Line 31:
 
There are a few prerequisites that are needed when compiling MythTV from source.
 
There are a few prerequisites that are needed when compiling MythTV from source.
  
  $ sudo apt-get install libqt3-mt-mysql sudo screen
+
  # apt-get install libqt3-mt-mysql sudo screen
  
 
MythTV recommends that you create a mythtv user to compile and configure your MythTV installation. As root, do the following:
 
MythTV recommends that you create a mythtv user to compile and configure your MythTV installation. As root, do the following:
Line 64: Line 64:
  
 
  $ ./configure --prefix=/usr/local --enable-dvb
 
  $ ./configure --prefix=/usr/local --enable-dvb
 +
$ qmake PREFIX=/usr/local mythtv.pro
 
  $ make
 
  $ make
 
  $ sudo make install
 
  $ sudo make install
Line 71: Line 72:
 
To build the plugins, do the same thing, but using
 
To build the plugins, do the same thing, but using
  
 +
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 liblame-dev libxvmc-dev
 
  $ cd ..
 
  $ cd ..
 
  $ svn co http://cvs.mythtv.org/svn/trunk/mythplugins
 
  $ svn co http://cvs.mythtv.org/svn/trunk/mythplugins
 
+
$ cd mythplugins
You will need to apt-get these packages to build all the plugins:
+
$ ./configure --prefix=/usr/local
 
+
$ qmake mythplugins.pro
  $ sudo apt-get install libcdparanoia0-dev libmad0-dev libid3tag0-dev kdelibs4-dev libflac++-dev liblame-dev libxvmc-dev
+
$ make
 +
$ sudo make install
  
 
Finally, you can build the themes using
 
Finally, you can build the themes using
  
  svn co http://cvs.mythtv.org/svn/trunk/myththemes
+
$ cd ..
 +
$ svn co http://cvs.mythtv.org/svn/trunk/myththemes
 +
$ cd myththemes
 +
$ ./configure --prefix=/usr/local
 +
$ make
 +
$ sudo make install
  
 
=== Building from packaged source ===
 
=== Building from packaged source ===

Revision as of 23:55, 19 October 2007

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

Dont forget to set a mysql root user password:

mysqladmin -u root password yourpasswordhere

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

deb http://www.debian-multimedia.org/ sid main 
deb-src http://www.debian-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

Now you can get mythtv sources, but unless you have a really good reason to use the latest version from sid maybe you should just:

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

MythTV recommends that you create a mythtv user to compile and configure your MythTV installation. 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 and type ZZ then 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
$ svn co http://cvs.mythtv.org/svn/trunk/mythtv

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

$ cd mythtv

When then start a screen so that we can leave the computer (close the ssh session) easily while the compilation takes place.

$ screen

If you can 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
$ qmake PREFIX=/usr/local mythtv.pro
$ 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.

To build the plugins, do the same thing, but using

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 liblame-dev libxvmc-dev
$ cd ..
$ svn co http://cvs.mythtv.org/svn/trunk/mythplugins
$ cd mythplugins
$ ./configure --prefix=/usr/local
$ qmake mythplugins.pro
$ 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

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).