Install MythTV

The majority of the rest of the work should be handled by debian packaging.

A backend will need to have mysql-server installed as well as mythtv-backend. Mythtv-backend doesn't depend on mysql-server since the mysql server can be located elsewhere on your network.

  1. Install the mythtv software.
    • Note: If this is a secondary backend, don't install mythtv-database or mysql-server. Just configure this backend to connect to the master backend instead.

    • From Synaptic Package Manager, Search for mysql-server. Choose mysql-server. Search for mythtv-. Choose mythtv-backend, and mythtv-database. Press the apply button and mythtv will be installed.

    • Behind the scenes, a mythtv user will be created in PAM as well as mysql for database use. The database will be installed into mysql and the initial configuration performed. Also a mythtv group will be made. All users that you want to have access to mythtv configuration or usage need to be in this group.
    • You will be asked for the password to the root account of mysql. By default, there is no password.

  2. Next, you need to edit the mysql configuration to allow outside hosts to connect:

    $ sudo nano /etc/mysql/my.cnf

    Look for the line that reads:

    • bind-address=

    and comment out that line by placing a # at the beginning.

    Then, restart mysql:

    $ sudo /etc/init.d/mysql restart
  3. Next, add yourself and any other users that need MythTV acces to the mythtv group.

    • To add users to the mythtv group, use this command:

    # sudo usermod -a -G mythtv USERNAME
    • Where USERNAME is the name of the user you are adding to the mythtv group.
  4. VERY IMPORTANT: If you do not add your main user account to the mythtv group, you will get the dreaded database errors when you run mythtv-setup! For the addition to the group to take effect, a fresh login needs to occur-- so log out of your current session and then log back in right now.

  5. Now it's time to set up MythTV

  6. Filling the Database

    The last step before starting the backend, is to fill the database with program guide data.

    # sudo mythfilldatabase

    Depending on the number of channels, the server load and the speed of your internet connection, this may take a few minutes.

  7. Start the Backend Server

    When The database fill is complete, the backend will automatically restart. Check to be sure it is running and that it started correctly:

    To check that the backend in now running:

    $ ps -p `cat /var/run/mythtv/`

    If you don't see output like:

    •   PID TTY          TIME CMD
      30711 ?        00:00:00 mythbackend

    then there was an error.

    Next, check the backend log file for obvious errors:

    $ more /var/log/mythtv/mythbackend.log

    Also, see Troubleshooting for more help.

  8. Remotely test your frontend. Since you won't be installing the frontend locally, you will need to configure your frontend to properly connect to this backend to test its functionality.

MythTV/Install/Live/Backend (last edited 2008-06-27 10:15:01 by localhost)