Difference between revisions of "Installing MythTV on Debian"
Stevegoodey (talk | contribs) (Undo revision 64331 by Stevegoodey (talk)) |
Dantheperson (talk | contribs) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{User Manual TOC}} | {{User Manual TOC}} | ||
− | {{UpToDate | + | {{UpToDate 30}} |
=Introduction= | =Introduction= | ||
− | This page will describe how to install | + | This page will describe how to build MythTV from source and then install using the package manager. |
+ | |||
+ | See [[Packages]] to install pre-built packages. | ||
=Build your own Packages= | =Build your own Packages= | ||
Line 19: | Line 21: | ||
|- | |- | ||
|clone the git mythtv packages | |clone the git mythtv packages | ||
− | |<code>cd ~/build<br>git clone <nowiki>https://github.com/MythTV/packaging.git</nowiki> -b fixes/ | + | |<code>cd ~/build<br>git clone <nowiki>https://github.com/MythTV/packaging.git</nowiki> -b fixes/30<br>cd packaging/deb</code> |
|- | |- | ||
− | |Start the build. This script checks out the latest version of fixes/ | + | |Start the build. This script checks out the latest version of fixes/30 from git and builds the packages. {{CurrentRelease}}. |
− | |<code>./build-debs.sh fixes/ | + | |<code>./build-debs.sh fixes/30</code> |
|- | |- | ||
|} | |} | ||
− | 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 <code>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 <code>fixes/30</code> with <code>master</code>. If using unstable, development code, you should follow the [http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits mythtv-commits] and [http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev 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. | After about 30 minutes the build will complete and there will be a lot of .deb files in the current directory. | ||
Line 55: | Line 57: | ||
| mythplugins || Plugins for a frontend system. Install this after installing your main package from earlier in this list. | | mythplugins || Plugins for a frontend system. Install this after installing your main package from earlier in this list. | ||
|- | |- | ||
− | | | + | | mythweb || MythWeb provides a frontend for scheduling and managing recordings from a web browser. |
|} | |} | ||
Line 61: | Line 63: | ||
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: | ||
− | + | 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 <i>packagename</i> | |
+ | |||
+ | See [https://code.mythtv.org/trac/ticket/13151#comment:2 Ticket URL] | ||
The packages do the following: | The packages do the following: |
Latest revision as of 07:34, 23 May 2022
This page is up-to-date as of MythTV version 30, the current release is 33.1
Contents
Introduction
This page will describe how to build MythTV from source and then install using the package manager.
See Packages to install pre-built packages.
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
|
clone the git mythtv packages | cd ~/build
|
Start the build. This script checks out the latest version of fixes/30 from git and builds the packages. 33.1. | ./build-debs.sh fixes/30
|
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/30
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.
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. |
mythweb | MythWeb provides a frontend for scheduling and managing recordings from a web browser. |
Install Software
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.