Home‎ > ‎Tom's Ideas And Notes‎ > ‎

Installing MythTV 0.25 on Fedora 17

posted May 30, 2012, 6:33 PM by Tom Gutwin   [ updated Dec 1, 2012, 6:42 PM ]
MythTV
I have been running MythTV since 2005 and this is the latest upgrade I have done. I have done this a few times and the 1st time (back in 2005) I built everything fron source, so I have solved many issues in my time. 

UPDATED to add comments on intel and nvidia video issues. See bottom of this post

That said, here is what I went through.

Original System:

  • Fedora 14
  • MythTV v0.24
  • Asus Motherboard P7H55-M Pro with integrated Intel H55 Chipset for HDMI,DVI and VGA
  • Intel i5 6 series (Clarkdale) 680 @ 3.6 GHz (the series 6 enables the onboard Video)
  • 2x2TB Seagate drives
  • This system holds all my photos, music files and video files

New System:

  • Fresh install (no upgrade)
  • to F17 and MythTV 0.25 fixes.
  • Same computer as before
  • Restore ALL previous recordings back into MythTV
  • photos, music files and video files

Detailed Steps:

  1. Full Backup of existing system including ensuring all reqious videos and recordings are backed up

  2. double check all my photos are safe

  3. Specific backup of mySQL database using MySQL Workbench  and dump commands

  4. get iso and double check the download checksum

  5. Think about how to partition the drives
    • My partition layout
      • 1st of my 2TB drives (/dev/sda)
        • /boot - 500MB
        • /       - 14000MB
        • /media1 - all the rest
      • 2nd of my 2TB drives (/dev/sdb)
        • /media2 - all the rest

  6. Install F17
    • select the online updates repo
    • manually select the software packages to install
      • make sure to select mysqld plus many others
      • NO mythtv yet - do it later
    • finish install
    • reboot

  7. Finish install
    • setup your userID etc
    • Check that all seems to be working

  8. Disable selinux
    • edit /etc/sysconfig/selinux
    • change line to SELINUX=disabled
    • reboot

  9. adjust/turn off firewall
    • systemctl stop firewalld.service
    • systemctl disable firewalld.service
    • OR If wanted you could just open vnc, smb, ssh and http ports as desired

  10. Enable desktop sharing
    • vino-preferences

  11. Set gnome gdm to auto-login
    • change /etc/gdm/custom.conf to the following

      /etc/gdm/custom.conf

      # GDM configuration storage

      [daemon]
      TimedLoginEnable=true
      TimedLogin=tgutwin
      TimedLoginDelay=1

      [security]

      [xdmcp]

      [greeter]

      [chooser]

      [debug]


  12. Re-mount my NAS backup network shares (setup the /ets/fstab)
    • /mnt/droboShare/media
    • /mnt/droboShare/media2
    • and all my other shares

  13. Copy all my user files back

  14. Setup mysql database
    • systemctl status  mysqld.service
      • mysqld.service - MySQL database server
      • Loaded: loaded (/usr/lib/systemd/system/mysqld.service; disabled)
      • Active: inactive (dead)
      • CGroup: name=systemd:/system/mysqld.service

    • Start mysqld
      [tgutwin@mythtv ~]$ sudo systemctl start  mysqld.service
      • [sudo] password for tgutwin:
    • [tgutwin@mythtv ~]$ sudo systemctl enable  mysqld.service

    • set mySQL secure settings
      • sudo mysql_secure_installation
      • mysql -u root -p
        Enter password:


        Welcome to the MySQL monitor.  Commands end with ; or \g.
        Your MySQL connection id is 11
        Server version: 5.5.23 MySQL Community Server (GPL)
        Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
        Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

        Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

        mysql> grant all on *.* to root@'10.0.0.253';
        Query OK, 0 rows affected (0.00 sec)

        mysql> grant all on *.* to root@'warp4.webarts.bc.ca' identified by 'passwordHere';
        Query OK, 0 rows affected (0.00 sec)

        mysql> FLUSH privileges; Query OK, 0 rows affected (0.00 sec)

        mysql> quit
        Bye

  15. Reloaded the db dump from previous mythtv db (mythconverg)

  16. add JDK into opt and setup paths and classpath

  17. install stunnel and copy back /etc/stunnel/stunnel.conf

    /etc/stunnel/stunnel.conf

    client = yes

    [ssmtp]
    accept  = 10.0.0.213:465
    connect = smtp.gmail.com:465




  18. Add rpmfusion repo
    • restore/Copy /etc/lirc files
      cp ~/.lircrc
      re-create ln -s ~/.lircrc /root/.lircrc yum install lirc
      install mythtv
      and backend and all the plugins
      from rpmfusion

      do the setup for the cards

      **** make sure the channel change script is executable by everyone that needs to exec it
      chmod guo+x /home/share/bin/starChanChange.sh

      BTW here is my script

      starChanChange.sh IR Blasterchannel change script

      #!/bin/bash
      echo "Channel Change to $1"
      REMOTE_NAME=StarchoiceIRC450 # Define my remote name here
      #REMOTE_NAME=hdPvrBlaster # Define my remote name here
      for digit in $(echo $1 | sed -e 's/./& /g'); do # Accept input from MythTV
      /usr/bin/irsend SEND_ONCE $REMOTE_NAME $digit # Send the output to Lirc
      sleep 0.333 # note, you may have to tweak
      # the interdigit delay up a bit
      done # got last digit from MythTV
      #irsend SEND_ONCE $REMOTE_NAME ENTER # Add a ENTER to speed up channel changing.
      #sleep 0.4
      #/usr/bin/irsend SEND_ONCE $REMOTE_NAME BACK # Get the OSD off the screen, it annoys me and I don't want it on my recordings.

      # hdPVR has issues if starting to close to a chan Change
      #sleep 4


      sudo rmmod lirc_dev
      sudo rmmod lirc_serial
      sudo rmmod ir_lirc_codec
      sudo /bin/setserial /dev/ttyS0 uart none
      sudo modprobe lirc_dev
      sudo modprobe lirc_serial
      sudo modprobe ir_lirc_codec
      sudo systemctl start lirc.service
      sudo systemctl enable lirc.service

  19. restore backed up udev rules for video devices into /etc/udev/rules.d/*
  20. Install mythtv

Other Problems

Intel video issues

Colour problems:

I am running into a problem with the latest version of the intel video driver for intel integrated chipset I am using - H55 With a Clarkdale i5 processor.
Actually I think it is my Onkyo AVR thinking the HDMI signal is analog and not rgb.
Before I upgraded to F17 (from F13) things were okay, but now when the signal is processed by the AVR my screen has a pink shade to it.
The Workaround:
When I bypass the AVR and go straight to my TV everything is fine.
Fow now
  • I just turn my AVR off and
  • the HDMI pass-thru sends the HDMI signal straight thru to my TV and all is fine!
So I need to figure out if I can force some setting in the driver to be a certain signal to get it to work.
Side note... 

I went out and bought an NVidia based card (they are cheap and I know they have good VDPAU suppport).  I'll let you know how it works out.

Seems the Onboard Intel video does not like/allow a 2nd video card. When the bios has the intel onboard starting, the nvidia does not work. Hmmmm, Fedora sees the card but won't work.  Driver install from source does work.

Interesting side benefit since installing the nVidia driver (even though it does not get loaded) is that the colour issues on the Intel output is fixed. (nice, but I do not know why)


SLOW jittery HD playback

I am finding that my Intel integrated video (Intel H55 chipset on my Asus P7H55-M Pro motherboard) is not up to the challenge. 1080 HD h264 video has a very slight but noticeable stutter vibration.  I went through pretty much every MythTV video playback setting and DE-interlace setting and nothing helped.
The Workaround:
Finally I had some success when tried disabling composite in the X configuration. This disables the use of Gnome 3 but that's fine since this is a dedicated MythTV box. I still have visible DE-interlace lines that the Hardware can't seem to get rid of.
I have spent hours on config settings :(

Trial and error found a de-interlace setting that gives me a visibly usable system!
Everything now seems to be working without any visible glitches!!!
Comments