Talk:Installing MythTV SVN on Fedora

From MythTV Official Wiki
Jump to: navigation, search


I suggest to add libdvdread and libdvdread-devel to the list of packages to install for mythplugins. Without those you cannot enable transcoding in MythDVD.

Fedora 9

The command

$ rpm -Uvh

in the Repositories section of the wiki page fails, apparently because can't be found. (5/24/08)

I'd hoped fedorafaq would be more timely with their release of they yum configuration rpm, but I guess they haven't. I've made a note of it in the section. --Dillwead 04:53, 26 May 2008 (UTC)
I'm using Fedora 8 (I like to stay one step back from the bleeding edge) and I found that replacing "9" with "8" worked as expected. --Wormholio 11:16, 26 September 2008 (UTC)

Fedora 12

Here's what I did to install under Fedora 12:

Packages needed:

From the CD install root menu:

  • Office and Productivity
  • Software Development
  • Web Server

Customize the software selection:

  • Sound and Video section
    • Unselect
      • alsa-plugins-pulseaudio-1.0.21-2.fc12.i686
      • pulseaudio-0.9.19-2.fc12.i686
      • pulseaudio-module-bluetooth-0.9.19-2.fc12.i686
      • pulseaudio-utils-0.9.19-2.fc12.i686
    • Select
      • ardour-2.8.2-3.fc12.i686
      • aumix-2.8-21.fc12.i686
      • dvdauthor-0.6.14-10.fc12.i686
      • dvdisater-0.72.1-1.fc12.i686
  • Servers
    • Select
      • MySQL Database
      • Windows File Server

Create Mythtv user

Initial Setup

  • Add Mythtv user to sudo list
    • usermod –aG wheel mythic
    • visudo
      • Find the line:# %wheel ALL=(ALL) ALL
      • Change to: %wheel ALL=(ALL) ALL
  • Disable screen saver
    • System>Preferences> Screensaver
      • Uncheck:
        • Activate screensaver when computer is idle
        • Lock screen when screensaver is active
      • Click on “Power Management”
        • Put computer to sleep when inactive for: Never
        • Spin down hard disks when possible: uncheck
        • Put display to sleep when inactive for: Never
  • Disable SELinux
    • System>Administration>SELinux Management
      • Set to Permissive
        • System Default Enforcing Mode
        • Current Enforcing Mode
  • Adjust Firewall permissions
    • System>Administration>Firewall
    • For access to an HDHomerun, disable the firewall for now:
      • Click on the Disable button
  • Enable Network Time Protocol (NTP)
    • System>Administration>Date & Time
    • Verify that “Synchronize date and time over the network” is checked
    • Verify that there are NTP Servers
  • Configure Sound
    • Guides used:
    • System>Preferences>Sound
    • Hardware tab:
      • Profile: Digital Stereo (HDMI) Output
    • Test Sound:
    • Remove pulseaudio
      • sudo yum remove pulseaudio
    • Install alsa modules
      • sudo yum install alsa alsa-lib alsa-tools alsa-firmware alsa-tools alsa-utils alsamixergui python-alsa python-alsaudio wine-alsa
    • restart system
    • switch alsa to using the hdmi output:
      • run alsamixer
      • hit <F6>
      • choose the correct sound card (in my case “HDA Intel”)
      • I also increased the Master output to unity gain (100%)
    • Copy the .asoundrc to ~/
      • From
      • Edit the .asoundrc
        • Run “aplay –l” to see the hardware devices on your system
        • In a separate terminal window, run vi ~/.asoundrc
          • In the section starting with: ##### Configuration File #####
            • Uncomment:# slave.pcm "dmix-digital" to slave.pcm "dmix-digital"
            • Comment:slave.pcm "dmix-analog" to # slave.pcm "dmix-analog"
          • Scroll down to the section starting with: # Alias for analog output on the card
            • Update the device # as appropriate, comment out and uncomment as appropriate
            • Correct values determined by the aplay –l results
          • Scroll down to the section starting with: # Alias for digital (S/PDIF) output on the card
            • Update the device # as appropriate, comment out and uncomment as appropriate
            • Correct values determined by the aplay –l results
          • Save and close ~/.asoundrc
        • Backup your alsa configuration: /sbin/alsactl -f ~/asound.backup store 0
  • Enable auto login for mythtv user
    • If you are using the default Fedora login manager, the edit is not difficult:Just add the following lines to the [daemon] section of /etc/gdm/custom.conf:
  • Restart computer to test auto login
  • Install packages necessary:
    • In this process occasionally you’ll get warnings about importing GPG keys, allow them
    • Add repositories:
    • MythTV packages
      • sudo yum install gcc-c++ freetype-devel lame-devel qt-devel mysql-server mysql-devel lirc lirc-devel
      • sudo yum install subversion mesa-libGLU-devel libXv-devel libXxf86vm-devel libdca-devel make
      • sudo yum install libXmu-devel qt-MySQL libXvMC-devel kdelibs-devel arts-devel perl-ExtUtils-MakeMaker
      • sudo yum install qt qt-devel qt-MySQL qt4 qt4-devel qt4-mysql qt4-x11
    • MythTV Plugin packages
      • sudo yum install fftw2 fftw2-devel libid3tag libid3tag-devel libmad-devel flac-devel libdvdcss-devel
      • sudo yum install libtiff-devel libcdaudio-devel SDL-devel cdparanoia-devel libexif-devel fftw3 fftw3-devel
      • sudo yum install libvorbis-devel faac faac-devel faad2 faad2-devel taglib taglib-devel libvisual-devel lame taglib taglib-devel taglib-doc
    • MythWeb packages
      • sudo yum install httpd php php-mysql
    • firewire packages
      • sudo yum install libavc1394 libavc1394-devel libiec61883 libiec61883-devel libraw1394 libraw1394-devel
    • configure LIRC
      • Reference link:
      • Check if LIRC is already installed: sudo find / -name lircd | grep lirc
      • Check if LIRC is running:
        • ps –ef | grep lirc
        • if not running only grep lirc will show up
      • Check if it’s already turned on:
        • chkconfig --list | grep lirc
        • Should return a result like:lirc 0:off 1:off 2:off 3:off 4:off 5:off 6:off
          • The # is which runlevel
          • Turn it on if not on:
          • sudo chkconfig --level 2345 lirc on
      • Reboot system
      • Check if LIRC is running: ps –ef | grep lirc
        • You should now see a line like: root 1250 1 0 14:50  ? 00:00:00 /usr/sbin/lircd –device=/dev/lirc0
      • Check that LIRC is receiving signal from the remote:
        • sudo mode2
        • each time you press a key on the remote, you should see lines like:
space 1950
pulse 50
        • hit <ctl>-c to back out
      • create a lircd.conf
        • sudo irrecord –d <device> <file name>
          • Asks to do a couple of tasks, follow the instructions on the screen, hitting keys on the remote
          • For mapping the keys, use the above link as the key for the key names, keep track of which are used, will be needed for creating the lircrc file
        • edit the <file name> to enter model # of remote and any other vital information: sudo vi <file name>
        • sudo cp <file name> /etc/lirc/lircd.conf
        • restart the lirc process: sudo service lirc restart
        • test that the mapping of the keys works:
          • run command: irw
          • you should see the keys defined in the irrecord
          • hit <ctl>-c to back out
      • You still need to create the lircrc to link to mythtv, but you need to install mythtv first…
    • Install HDHomerun drivers
      • Download from
        • Feel free to download both the libhdhomerun and HDHomeRun_Config
        • But you only need the libhdhomerun to get Myth working
      • cd <where you downloaded it to>
      • tar –xvf libhdhomerun_<datestring>.tgz
      • cd libhdhomerun
      • make
      • sudo cp hdhomerun_config /usr/local/bin
      • detect the HDHomerun
        • hdhomerun_config discover
        • if successful you should see the following line: hdhomerun device <DeviceID> found at <IP Address>
      • To install hdhomerun_config_gui
        • tar –xvf hdhomerun_config_gui_<datestring>.tgz
        • cd hdhomerun_config_gui
        • ./configure
        • make
        • sudo make install
      • Install VLC to to ease testing
        • Sudo yum install vlc
      • Test HDHomerun
        • Guide used:
        • Check that you can scan on the tuners:
          • Tuner 0: hdhomerun_config <DeviceID> scan /tuner0 scan0.txt
          • Tuner 1: hdhomerun_config <DeviceID> scan /tuner1 scan1.txt
          • Outputs to scan0.txt, scan1.txt what channels were scanned and detected
          • The guide has steps to test with VLC
        • If you have the GUI interface installed
          • To launch the GUI:hdhomerun_config_gui
  • Install MythTV
    • Grant mythtv user permission to access the /usr/local directory: sudo chown <mythtv user id>.<mythtv user group> /usr/local
    • Change directory to /usr/local: cd /usr/local
    • Check out source code:
    • Install MythTV Source
      • Goto the mythtv directory: cd /usr/local/mythtv/mythtv
      • Configure the make files: ./configure --prefix=/usr/local
      • Make the application: make
      • Install the application: sudo make install
    • Install MythPlugins Source
      • Goto the mythtv directory: cd /usr/local/mythtv/ mythplugins
      • Configure the make files: ./configure --prefix=/usr/local
      • Make the application: make
      • Install the application: sudo make install