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

From MythTV Official Wiki
Jump to: navigation, search
(Getting MythTV: Page advised not being root, but the makefile invokes ldconfig)
Line 20: Line 20:
 
  apt-get build-dep mythtv
 
  apt-get build-dep mythtv
  
-
 
  
 
== Getting MythTV ==
 
== Getting MythTV ==
Line 28: Line 27:
 
and if you want extras you can search for them with apt-cache search mythtv
 
and if you want extras you can search for them with apt-cache search mythtv
  
If you really insist building yourself:
+
== Building yourself (experts) ==
  
add your user to the staff group so you get write permission to usr/local
+
=== Building from upstream ===
now after logging in as a user (DON'T USE ROOT) do this:
+
 
 +
Add your user to the staff group so you get write permission to /usr/local. Now after logging in as a user (DON'T USE ROOT) do this:
  
 
  svn co http://cvs.mythtv.org/svn/trunk/mythtv
 
  svn co http://cvs.mythtv.org/svn/trunk/mythtv
Line 48: Line 48:
  
 
You will probably want to be root to run the "make install" part, though, because that target invokes ldconfig to set up shared library paths, and usually nobody but root can do this.
 
You will probably want to be root to run the "make install" part, though, because that target invokes ldconfig to set up shared library paths, and usually nobody but root can do this.
 +
 +
=== 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).
  
 
== Starting MythTV ==
 
== Starting MythTV ==

Revision as of 05:42, 13 September 2006

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

Getting the necessary Debian Packages

now at first we need the mysql server:

apt-get install mysql-server

now set the mysql root user password

mysqladmin -u root password yourpasswordhere

at next step 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 we can get the rest of the needed package 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

Add your user to the staff group so you get write permission to /usr/local. Now after logging in as a user (DON'T USE ROOT) do this:

svn co http://cvs.mythtv.org/svn/trunk/mythtv

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

cd mythtv

and compile it with something like:

 ./configure --prefix=/usr/local --arch=athlon-xp --enable-dvb --enable-dvb-eit
make
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 probably want to be root to run the "make install" part, though, because that target invokes ldconfig to set up shared library paths, and usually nobody but root can do this.

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

Starting MythTV

now you can setup mythbackend via mythtv-setup.