Installing MythTV 0.20.1 on Linux Fedora Core 6 for Australian TV

References

Previous notes

Prerequisites

  • Installation of Fedora Core 6 (Web Server profile) with latest updates applied ...
    • Kernel 2.6.19 (or more recent)
    • MySQL 5.0.27 (or more recent)
  • Recommended option ... install the xfs filesystem for separate disk partition, specifically for large video files ...
    yum install xfsprogs
    
    mkfs -t xfs -f -L /content /dev/sda8  # Assume that a large disk partition has been allocated for video files
    vi /etc/fstab
      LABEL=/content  /content  xfs  defaults  1 2
    mkdir /content
    mount /content
  • Recommended option ... install yumex (yum extender gui) ...
    yum install yumex
    

Description

  • Configure Livna yum repository (enabled by default) ...

    These days, I almost exclusively use the Livna yum repository and avoid mixing RPMs from other repository collections, unless strictly necessary, e.g. this MythTV installation

    rpm -Uhv     http://rpm.livna.org/livna-release-6.rpm
    rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
    
  • Configure ATRPMs yum repository (disabled by default) ...
    vi /etc/yum.repos.d/atrpms.repo
      [atrpms]
      name=ATrpms - Stable
      baseurl=http://dl.atrpms.net/fc$releasever-$basearch/atrpms/stable
      gpgcheck=1
      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY.atrpms
      enabled=0
    
    rpm --import http://ATrpms.net/RPM-GPG-KEY.atrpms
    
  • Install complete MythTV suite ...
    yum install --disablerepo=livna ---enablerepo=atrpms mythtv-suite
    

    This installs faad2-2.5-7.fc6.at, which breaks mplayer and mencoder (if they installed from Livna), we'll fix that next

    If you prefer a graphical package installer, then use yumex and don't forget to disable the Livna repository and enable ATRPMs repository, then install the "mythtv-suite" package

  • Fix-up broken mplayer and mencoder ...
    rpm -e --nodeps faad2-2.5-7.fc6.at  # Remove ATRPMs version
    yum install faad2                   # Restore Livna version
  • Set-up MySQL MythTV database ...
    chkconfig mysqld on
    
    service mysqld start
    
    mysqladmin -u root password 'mythtv'  # Choose your own password here !
    
    mysqladmin -u root -p -h localhost.localdomain password 'mythtv'
    
    mysql -u root -p </usr/share/doc/mythtv-0.20.1/database/mc.sql
    
    mysql -u root -p mythconverg  # Permit all remote acccess
      mysql> grant all on mythconverg.* to mythtv@"%" identified by "mythtv";
      mysql> flush privileges;
    
  • You may need to set-up your audio, specifically for MythTV
  • You may want to set-up a remote control for MythTV
  • Set-up location for MythTV recordings on an xfs filesystem (see prerequisites above) ...
    mkdir /content/mythtv
    chmod a+rwx /content/mythtv  # You may prefer to be less open than this !
    
  • Set-up Australian EPG (Electronic Program Guide) ...
    mkdir -p /usr/local/download/linux/xmltv
    cd       /usr/local/download/linux/xmltv
    wget http://www.onlinetractorparts.com.au/rohbags/xmltvau/tv_grab_au-0.6.2.tar.gz
    
    mkdir /usr/share/xmltv/tv_grab_au
    tar -zxf /usr/local/download/linux/xmltv/tv_grab_au-0.6.2.tar.gz -C /usr/share/xmltv/tv_grab_au
    mv /usr/share/xmltv/tv_grab_au/tv_grab_au /usr/bin/tv_grab_au
    mv /usr/share/xmltv/tv_grab_au/tv_grab_au.1.gz /usr/share/man/man1
    
    # Changed "askQuestion" to "ask_choice"
    sed -i 's/askQuestion/ask_choice/g' /usr/bin/tv_grab_au
    
    tv_grab_au --configure  # Choose options that suit your location and viewing preferences
    
    tv_grab_au --days 1 --output test-xmltv.xml  # Test it !
    more test-xmltv.xml
  • Configure MythTV backend ...
    mythtv-setup
    
    mythfilldatabase
    
    view /var/log/mythtv/mythfilldatabase.log
    
  • Start MythTV backend ...
    chkconfig mythbackend on
    
    service mythbackend start
    
    view /var/log/mythtv/mythbackend.log
  • Start and configure MythTV frontend ...
    mythfrontend
    
     
     

Copyright Notice

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License

Comments (0)