Difference between revisions of "Installing MythTV on Debian"

From MythTV Official Wiki
Jump to: navigation, search
(Believed to work for 0.28 (updated version), ... I note mythbuntu-control-centre etc may no longer be relevant if mythbuntu falling out of fashion.)
(Install Software)
Line 61: Line 61:
 
Once you have the correct Release version in your repository, install the package, as follows:
 
Once you have the correct Release version in your repository, install the package, as follows:
  
 +
<code>sudo dpkg-scanpackages -m . | gzip -c > Packages.gz</code>
 +
<code>sudo echo "deb [trusted=yes] file:///full/path/to/build/packaging/deb ./" > /etc/apt/sources.list.d/mythtv.list</code>
 +
<code>sudo apt-get update</code?
 
<code>sudo apt-get install <i>packagename</i><br></code>
 
<code>sudo apt-get install <i>packagename</i><br></code>
  

Revision as of 08:58, 15 October 2017

Software-update-available.png This page is up-to-date as of MythTV version 0.28, the current release is 29.0

Introduction

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

Dependencies

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 cd
mkdir ~/build
clone the git mythtv packages cd ~/build
git clone https://github.com/MythTV/packaging.git -b fixes/0.28
cd packaging/deb
Start the build. This script checks out the latest version of fixes/0.28 from git and builds the packages. 29-fixes. ./build-debs.sh fixes/0.28

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 fixes/0.28 with 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.

Available Packages
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.

Install Software

Once you have the correct Release version in your repository, install the package, as follows:

sudo dpkg-scanpackages -m . | gzip -c > Packages.gz sudo echo "deb [trusted=yes] file:///full/path/to/build/packaging/deb ./" > /etc/apt/sources.list.d/mythtv.list sudo apt-get update</code? <code>sudo apt-get install packagename

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.