Installing MythTV on Debian
This page is up-to-date as of MythTV version 0.28, the current release is 31.0
This page will describe how to install on Debian, using the package manager. Currently no MythTV-approved repository exists so the packages need to be built from source. This is an easy process using a script that can be checked out from git.
Build your own Packages
First install the dependancies instructions can be found at Build_from_Source#Installing_Build_Dependencies_without_Ansible
Getting and compiling the source code
|Step||Command to run|
|create a directory|
|clone the git mythtv packages|
|Start the build. This script checks out the latest version of fixes/0.28 from git and builds the packages. 31-fixes.|
In general, you should probably choose the stable version. If you don't mind if your MythTV system is non-functional or has serious bugs that may prevent proper operation/result in lost recordings or inability to play back recordings, you may try using the unstable, development code replace the above
master. If using unstable, development code, you should follow the mythtv-commits and mythtv-dev mailing lists.
After about 30 minutes the build will complete and there will be a lot of .deb files in the current directory.
Choose Your Package
Decide what type of installation you need.
If this is your first system and you are using a single box for recording and watching, you need a complete frontend, backend and database. Choose the mythtv package.
If you are adding a Frontend to an existing system, to allow for watching on another TV or computer system, choose the mythtv-frontend package.
If you are adding a Slave Backend use mythtv-backend. This is an advanced usage that few people will need.
There are packages for installing a complete system, or for installing parts of a multi server system.
|mythtv||Complete frontend and backend system with database.|
|mythtv-frontend||Frontend that connects to a separate backend.|
|mythtv-backend||Backend without database. This is either a master backend where there is a separate database server or a slave backend.|
|mythtv-backend-master||Master Backend with database.|
|mythtv-database||MythTV database only. Advanced use where there is a separate database server from backend. You will need to also install mysql server when using this.|
|mythplugins||Plugins for a frontend system. Install this after installing your main package from earlier in this list.|
|mythbuntu-control-centre||Mythbuntu Control Center is a part of MythBuntu but can be installed on any Ubuntu system to help with configuration tasks. It is not essential, all of the functions it provides can be done with other tools. Install this after installing your main package from earlier in this list.|
Once you have the correct Release version in your repository, install the package, as follows:
dpkg-scanpackages -m . | gzip -c > Packages.gz echo "deb [trusted=yes] file:///full/path/to/build/packaging/deb ./" | sudo tee /etc/apt/sources.list.d/mythtv.list sudo apt-get update sudo apt-get install packagename
See Ticket URL
The packages do the following:
- Install mythtv software and all prerequisites.
- Install MySQL database software.
- Create a MySQL database user for MythTV
- Set up the MythTV configuration file.
- Create an upstart configuration that automatically runs the backend at system startup time.
- Configure a weekly backup of the database using Anacron.
- Create desktop entries to launch MythTV and the MythTV setup from the GUI menus (Unity, Gnome or other desktops you may have installed).
Once the software is installed, proceed to Configuring MythTV.