PDA

View Full Version : Basic Guide To Installing MythTV On Fedora



gadgetwiz
28th January 2013, 03:48 PM
This is a basic guide to assist with installing MythTV on a single computer in Fedora. This guide was originally created Fedora 19/20/21 and has been updated for Fedora 22.

This is not a meant to be a comprehensive MythTV installation guide or a hardware troubleshooting thread. Rather, it's a basic guide to quickly get you up and running MythTV.

It's well worth the effort to take the 20 or 30 minutes required to setup MythTV. It's by far the most powerful and robust Digital TV Tuner/PVR available. It's also very efficient and with a lightweight DE, you can achieve HDTV playback & recording on minimal hardware.

Hardware: You'll need a DVB-T device with the appropriate kernel drivers installed. LinuxTV is a good place to check to ensure your device is supported in Linux.

http://www.linuxtv.org/wiki/index.php/DVB-T_PCI_Cards

Make sure you have an antenna (or other cable source) connected to the DVB device.

It's useful to have an active internet connection to update the schema during installation.You can optionally specify the IP address of your PC, if you want to access MythTV from other clients on your LAN,. You'll need enough hard drive space to record Live HD TV so make sure you set aside enough drive space to cover buffering of live TV. I recommend 10g as a minimum but more is better. If you plan on recording Live HDTV, you'll need 30g minimum but 100g+ is recommended to be able to save a reasonable number of recordings.

Step 1:
Create two folders on your hard drive for later use: mythlive & mythpvr

Step 2: As root: Install MythTV

Fedora 19/20/21

yum install mythtv

Fedora 22

dnf install mythtv

Step 3: Create a database for MythTV to store its configuration data.

-(A)- As root: Start MySQL service

Fedora 19/20/21

systemctl start mysqld.service

Fedora 22

systemctl start mariadb.service

Note: This service is required to run MythTV. You will need to start this service manually after each boot or you can simply configure this service to auto-start during boot.

-(B)- Create SQL root password to secure your database. Just follow the prompts.
(You can skip this step if you aready have SQL secure)


mysql_secure_installation

If you've just installed MySQL, and you haven't set the root password yet, press enter here.
Enter current password for root (enter for none)

Answer "Y" to set a root password at this prompt...
Set root password? [Y/n] Y <enter>

Enter mythtv as the password here. (you can change it but remember it for later)
New password: mythtv <enter>

Answer "Y" to remove anonymous users.
Remove anonymous users? [Y/n] Y <enter>

Answer "Y" to disallow remote logins.
Disallow root login remotely? [Y/n] Y <enter>

Answer "Y" to remove the test database.
Remove test database and access to it? [Y/n] Y <enter>

Answer "Y" to reload tables to ensure all changes will take effect immediately.
Reload privilege tables now? [Y/n] Y <enter>

SQL in now secure and you are ready to to add your MythTV database.

Step 4: Create the MythTV Database.


mysql -u root -p < /usr/share/doc/mythtv-docs/database/mc.sql

When asked for a password, enter: mythtv (password will not be displayed)
Enter password: mythtv <enter>

Step 5: Setup Timezone Data

mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -uroot -p mysql

When asked for a password, enter: mythtv (password will not be displayed)
Enter password: mythtv <enter>

Warning: mythtv-setup needs to be ran as a NORMAL user (not root)

Step 6: As normal user (not root): Run MythTV Setup


mythtv-setup

You will be presented with the myth-tv setup screen. Select your language and click next.

From the GUI menu, select General
-(A)- Normally, you can keep the default: 127.0.0.1 IP address under both Backend & Frontend sections, unless you will be accessing MythYV from other LAN clients. In that case, replace 127.0.0.1 with the PC's IP address.
-(B)- Under PIN number: Enter 0000 then click next
-(C)- Locale screen: enter TV Format (NTSC for U.S.) and Frequency: us-bcast (for U.S.ATSC) - Click Next
-(D)- Miscellaneous Screen - Click Next
-(E)- EIT Screen - Click Next
-(F)- Shutdown/Wakeup Screen - Click Next
-(G)- Backend Wakeup Screen - Click Next
-(H)- Backend Control Screen - Click Next
-(I)- Job Queue Backend - Click OFF allow commercial detection jobs (waste of time) - Click Next
-(J)- Job Queue Local - Click Next
-(K)- Job Queue Job Commands -Click Next
-(L)- Program Schedule Screen - Click Finish

From the GUI Menu, select Capture Cards
-(A)- Select New Capture Card and Press Enter
-(B)- From the Card Type Dropdown, select card: DVB DTV Capture Card (3.x) is what I use. Click Finish, then Esc

From The GUI Menu, Select Video Sources
-(A)- Select New Video Source and press Enter
-(B)- Under Video Source Name, enter whatever you like. I usually enter my device/card make: Hauppauge
-(C)- Under Transmit Guide, Select EIT (Electronic Guide for ATSC & DVB Sources)
-(D)- Under Channel Frequency Table, Select: us-bcast (for U.S. Broadcasts) - Click Finish, then Esc.

From The GUI Menu, Select Input Connections
-(A)- Press Enter on Select Input Screen
-(B)- Under Video Source, select the source name you entered in the previous step: Hauppauge
-(C)- Ensure an antenna (or other bcast source) is connected & click Scan For Channels
-(D)- Under Scan Configuration, Keep defaults unless you use QAM. Click Next
-(E)- MythTV Will Scan for all HD broadcasts from Channel 02 - Channel 69
-(F)- Select ADD all detected channels - Select Starting Channel, Click Next/Finish.

From The GUI Menu, Select Storage Directories
-(A)- Highlight Default, Press Enter,
-(B)- Add New Directory. Enter the full path to mythpvr folder created earlier, Click OK
-(C)- Highlight LiveTV, Press Enter,
-(D)- Add New Directory. Enter the full path to mythlive folder created earlier, Click OK
-(E)- Esc back to GUI

** You can do this at any time from**
The mythtv-setup GUI, Select Channel Editor.
-(A)- Select how channels will be sorted
-(B)- Delete any channels you don't want or can't receive properly

Hit the Esc key to fully Exit from the Myth-TV Setup Screen.

Ok, you're almost ready to watch and record Live HDTV.

Step 7: As a normal user (not root), Start MythTV Backend in a terminal.

Option #1: Starting the backend in a terminal. Keep it open & monitor messages (best option for testing).

mythbackend
Option #2: Starting the backend in as a daemon.

mythbackend -d

Step 8: As a normal user (not root), Start MythTV Frontend in a terminal.

Option #1: Starting the Frontend in a terminal to monitor messages (best option for testing).

mythfrontend
Option #2: Starting the MythTV backend from the Menu by clicking MythTV Icon under Sound and video.

Frontend Setup Section
Under General: If your MythTV Backend is configured with an IP other than localhost (i.e. on another computer) , you can change the backend host option on this screen from localhost to the IP address of the Backend. Setting up the backend on a different host is beyond the scope of this guide so I'll leave that as an exercise for those who want to use MythTV to its fullest potential.

Configure Audio: From the Frontend, select Setup, Select Audio. Fedora defaults to pulse audio so you would choose the "Alsa: Pulse" option under most circumstances. Click next, finish. You may need to tweak this section to get the best performance from your sound card, depending on your configuration.

Configure Video: From the Frontend, Select Setup, Select Playback. Match settings to your video card's capabilities.

From the Frontend MythTV GUI, you can choose to watch live TV, schedule recordings, change themes (Blue Abstract is nice) and perform a plethora of other cool media center functions under setup. Here are some useful links to help navigate your way around the Frontend on MythTV.

http://www.mythtv.org/
http://www.mythtv.org/wiki/Keybindings
http://sandingbeltkits.com

Please feel free to add other configurations details to this guide.

Have Fun!!