Introduction

This is a quick howto using http://wilsonet.com/mythtv/fcmyth.php as a guide. I just want to test out the playback capabilities of MythTV with the idea that I can use it for MP3, JPG, MPEG playback over my LAN. I'm not really interested in video capture (My TiVo does a fine job) and I just want a quick test. If you aren't already quite familiar with Fedora or Linux in general this howto may not be of use to you.

Hardware

AMD Athlon(tm) 64 Processor 3000+ 1800Mhz with 512MB RAM.

Software

  1. Inform yum where it can get the requisite RPMs
    [root@luther ~]# cd /etc/yum.repos.d/
    [root@luther yum.repos.d]# wget http://wilsonet.com/mythtv/atrpms.repo
    [root@luther yum.repos.d]# wget http://wilsonet.com/mythtv/freshrpms.repo
    
  2. Install the software. There is a "meta-rpm" called mythtv-suite that will install all the dependencies.
    [root@luther ~]# yum install mythtv-suite
    

    Eventually you will see something like the following:

    Dependencies Resolved
    
    =============================================================================
     Package                 Arch       Version          Repository        Size 
    =============================================================================
    Installing:
     mythtv-suite            x86_64     0.18.1-55.at     atrpms            3.2 k
    Installing for dependencies:
     a52dec                  x86_64     0.7.4-7.2.fc4    freshrpms          50 k
     atrpms                  noarch     61-1.at          atrpms             19 k
     compat-libstdc++-33     x86_64     3.2.3-47.fc4     base              224 k
     faad2                   x86_64     2.0-4.2.fc4      freshrpms         376 k
     ffmpeg                  x86_64     0.4.9-10_cvs20050612.rhfc4.at  atrpms            1.2 M
     fftw                    x86_64     2.1.5-8          extras            443 k
     fribidi                 x86_64     0.10.4-8         base               51 k
     imlib2                  x86_64     1.2.1-1.fc4      extras            562 k
     kakasi                  x86_64     2.3.4-20.rhfc4.at  atrpms             77 k
     lame                    x86_64     3.96.1-10.rhfc4.at  atrpms            591 k
     libcdaudio              x86_64     0.99.12-5.rhfc4.at  atrpms             44 k
     libdc1394_control13     x86_64     1.1.0-4.rhfc4.at  atrpms             25 k
     libid3tag               x86_64     0.15.1-3.b       extras             46 k
     libmad                  x86_64     0.15.1b-3.2.fc4  freshrpms          78 k
     libmyth                 x86_64     0.18.1-114.rhfc4.at  atrpms            4.3 M
     libquicktime            x86_64     0.9.7-2.2.fc4    freshrpms         374 k
     lirc                    x86_64     0.7.2-1.1.fc4    extras            354 k
     lzo                     x86_64     1.08-4           extras             53 k
     mjpegtools              x86_64     1.6.3-10_rc1.rhfc4.at  atrpms            852 k
     mpeg2dec                x86_64     0.4.0-5b.2.fc4   freshrpms          89 k
     mplayer                 x86_64     4:1.0-46_pre7.rhfc4.at  atrpms            9.1 M
     mplayer-fonts           noarch     4:1.0-6.at       atrpms            1.0 M
     mysql-server            x86_64     4.1.12-2.FC4.1   updates-released  6.9 M
     mythbrowser             x86_64     0.18.1-113.rhfc4.at  atrpms             88 k
     mythdvd                 x86_64     0.18.1-113.rhfc4.at  atrpms            232 k
     mythgallery             x86_64     0.18.1-113.rhfc4.at  atrpms            173 k
     mythgame                x86_64     0.18.1-113.rhfc4.at  atrpms            396 k
     mythmkmovie             x86_64     1.1.4-4.rhfc4.at  atrpms             30 k
     mythmusic               x86_64     0.18.1-113.rhfc4.at  atrpms            598 k
     mythnews                x86_64     0.18.1-113.rhfc4.at  atrpms             80 k
     mythphone               x86_64     0.18.1-113.rhfc4.at  atrpms            413 k
     mythplugins             x86_64     0.18.1-113.rhfc4.at  atrpms            9.9 k
     myththemes              noarch     0.18-104.at      atrpms            7.6 M
     mythtv                  x86_64     0.18.1-114.rhfc4.at  atrpms            424 k
     mythtv-backend          x86_64     0.18.1-114.rhfc4.at  atrpms            329 k
     mythtv-frontend         x86_64     0.18.1-114.rhfc4.at  atrpms            1.0 M
     mythtv-setup            x86_64     0.18.1-114.rhfc4.at  atrpms             74 k
     mythtv-theme-MediaCenter  noarch     0.17-4.at        atrpms            2.8 M
     mythtv-theme-MythCenter  noarch     0.17-1.at        atrpms            780 k
     mythtv-theme-abstract   noarch     0.20040910-2.at  atrpms            937 k
     mythtv-theme-isthmus    noarch     0.20040804-1.at  atrpms            194 k
     mythtv-theme-photo      noarch     4-6.at           atrpms            754 k
     mythtv-theme-purplegalaxy  noarch     0.20031214-3.at  atrpms            866 k
     mythtv-theme-sleek      noarch     0.35-2.at        atrpms            368 k
     mythtv-theme-visor      noarch     1:0.16.2-5.at    atrpms            2.8 M
     mythtv-themes           x86_64     0.18.1-114.rhfc4.at  atrpms            4.5 M
     mythvideo               x86_64     0.18.1-113.rhfc4.at  atrpms            482 k
     mythweather             x86_64     0.18.1-113.rhfc4.at  atrpms            968 k
     mythweb                 noarch     0.18-68.at       atrpms            494 k
     perl-Archive-Zip        noarch     1.14-1           base              137 k
     perl-Class-MethodMaker  x86_64     2.06-3           extras            564 k
     perl-Curses             x86_64     1.06-4.rhfc4.at  atrpms            129 k
     perl-DBD-MySQL          x86_64     2.9007-1         base              139 k
     perl-HTML-TableExtract  noarch     1.08-5.rhfc4.at  atrpms             32 k
     perl-HTML-Tree          noarch     3.18-5.rhfc4.at  atrpms            204 k
     perl-IO-stringy         noarch     2.110-7.rhfc4.at  atrpms             70 k
     perl-Lingua-Preferred   noarch     0.2.4-2.rhfc4.at  atrpms             10 k
     perl-MIME-Lite          noarch     3.01-3.fc4       extras             72 k
     perl-MailTools          noarch     1.67-1.fc4       extras             86 k
     perl-SOAP-Lite          noarch     0.60a-3.rhfc4.at  atrpms            184 k
     perl-Term-ProgressBar   noarch     2.05-4.rhfc4.at  atrpms             17 k
     perl-TermReadKey        x86_64     2.30-2.rhfc4.at  atrpms             30 k
     perl-Text-Kakasi        x86_64     2.04-1           extras             30 k
     perl-TimeDate           noarch     1:1.16-3         base               32 k
     perl-Tk                 x86_64     804.027-9.rhfc4.at  atrpms            2.5 M
     perl-Tk-TableMatrix     x86_64     1.1-14.rhfc4.at  atrpms            122 k
     perl-WWW-Mechanize      noarch     1.14-2.fc4       extras            127 k
     perl-XML-Simple         noarch     2.14-1.fc4       extras             68 k
     perl-XML-Writer         noarch     0.4.6-8.rhfc4.at  atrpms             19 k
     perl-XMLTV              noarch     0.5.40-62.rhfc4.at  atrpms            100 k
     portaudio               x86_64     18.1-5           extras             88 k
     qt-MySQL                x86_64     1:3.3.4-15.4     updates-released   50 k
     transcode               x86_64     1.0.0-18.rhfc4.at  atrpms            3.8 M
     xmltv                   noarch     0.5.40-62.rhfc4.at  atrpms            126 k
     xmltv-grabbers          noarch     0.5.40-62.rhfc4.at  atrpms            224 k
     xmltv-gui               noarch     0.5.40-62.rhfc4.at  atrpms             24 k
     xvidcore                x86_64     1.0.3-1.2.fc4    freshrpms         206 k
    
    Transaction Summary
    =============================================================================
    Install     78 Package(s)         
    Update       0 Package(s)         
    Remove       0 Package(s)         
    Total download size: 63 M
    Is this ok [y/N]: y
    
  3. Enable mysqld for next boot and start it now.
    [root@luther ~]# chkconfig mysqld on
    [root@luther ~]# service mysqld start
    
  4. Secure your database and create the mythtv database. See the wilsonnet FAQ for info on tweaking mysql performance.
    [root@luther ~]# mysqladmin -u root password 'secret'
    [root@luther ~]# mysql -p < /usr/share/doc/mythtv-0.18.1/database/mc.sql
    
  5. Create mythtv user.
    [root@luther ~]# useradd -c 'Myth TV' mythtv
    
  6. Run mythtv-setup.
    [root@luther ~]# xhost + localhost
    [root@luther ~]# su - mythtv
    [mythtv@luther ~]$ mythtv-setup
    

    This will fire up a pretty fullscreen GUI to configure mythtv.

    For my simple test setup I set the directories to /home/mythtv to preclude any permissions problems. My mouse cursor didn't show up, so I had to arrow around.

  7. Start the backend server which will listen on TCP ports 6543 and 6544.
    [mythtv@luther ~]$ mythbackend &
    

    At this point you would also fill the db with programming info, but I'm not doing video capture and I'm just testing, so I don't care.

  8. Start the frontend interface.
    [mythtv@luther ~]$ mythfronend
    

    This gave me a segfault. I thought maybe selinux had something to do with it, so I disabled that. Still have the same result though. I saw mention of the same problem on the mythtv-users list, so maybe it will sort its self out soon. I was hoping for an easy RPM based test. I may break down and try a manual compile later.

    [mythtv@luther ~]$ mythfrontend
    2005-10-01 11:21:42.110 New DB connection, total: 1
    Total desktop width=1600, height=1200, numscreens=1
    2005-10-01 11:21:42.232 Using screen 0, 1600x1200 at 0,0
    2005-10-01 11:21:42.252 mythfrontend version: 0.18.1.20050523-1 www.mythtv.org
    2005-10-01 11:21:42.254 Enabled verbose msgs : important general
    Conflict in /usr/lib/qt-3.3/plugins/styles/bluecurve.so:
      Plugin uses incompatible Qt library!
      expected build key "x86_64 Linux g++-4.* full-config", got "i686 Linux g++-4.* full-config".
    2005-10-01 11:21:44.859 Switching to square mode (G.A.N.T.)
    Corrupt JPEG data: bad Huffman code
    2005-10-01 11:21:47.170 Joystick disabled.
    mythtv: could not connect to socket
    mythtv: No such file or directory
    lirc_init failed for mythtv, see preceding messages
    2005-10-01 11:21:47.348 Registering Internal as a media playback plugin.
    2005-10-01 11:21:47.516 Inserting MythDVD initial database information.
    Segmentation fault
    [mythtv@luther ~]$
    

    Error in /var/log/messages:

    Oct  1 11:21:47 luther kernel: mythfrontend[31239] general protection rip:3d00d5134c rsp:7fffff9491a0 error:0
    

    Ah ha! There may be a fix at hand.