Build from Source
|User_Manual:Setting_Up||User Manual:Index||User Manual:MythTV structure|
This page is uUser Manual:Introductionp-to-date to MythTV version 0.20
There are two different ways to install Mythtv: manual or automated.
Manual installation (gives flexibility and insight)
In this guide we will discuss the manual method which gives more flexibility and insight in your system.
Automated installation (quick and easy)
Because of the popularity of MythTV there are Linux distribution available which are dedicated to MythTV. With these distributions installing MythTV is extremely simple: put the installation CD in to the computer, restart, answer some questions and you're ready.
If you want to use an automated CD for a quick and easy install, than you can go to the MythTV distros section. If you did decide to use a automated CD than there is no need at this moment to read the installation section of this manual (Every MythTV distribution has his own installation manual).
About your hardware
Firstly, make sure your hardware is supported by Myth. You can find more information in this wiki at:
- Tuner Cards
- Hardware Requirements
- External links
- Other places on this wiki or using Google.
If you are having trouble, try:
- Checking the Frequently Asked Questions page to see if your issue is there.
- Searching the Gossamer-Threads mailing list archives. Gives access to the development, CVS commit and users mailing lists with a forum-like layout.
- Subscribing to the Mailing List. Make sure you read Mailing List etiquette before posting.
- Looking at Myth Tv Errata on this Wiki, which contains a short list of known MythTV bugs and workarounds.
- A HOWTO for different operating systems.
When you've found a solution that worked it would be nice if you added it somewhere on this site to contribute back to the community. Even just linking to the mailing list archives with a little description would help; search engines will index it and will bring up the correct results earlier in their listings.
Before proceeding with this chapter
This chapter is currently not complete so for installing MythTV we suggest you follow one of our other guides.
The simplest and fastest way to get started with MythTV is simply by downloading the code, compiling and running it on your machine. To do this just simply follow any installation manual for MythTV. We suggest you use:
- one of the Distribution Specific Install Guides (e.g. Ubuntu-8.10 Source Install);
- the instruction in the manual (chapter: Manually building MythTV).
Of course you can also choose to combine these to your liking (sometimes one tutorial explains certain topics better than the other).
There are four key parts to MythTV, and setup roughly in this order:
- Start system services that MythTV needs
- Initialize the system database, mythconverg
- Setup system preferences and tune your TV card using mythtv-setup
- Start main MythTV server, mythtvbackend
- Start MythTV, mythfrontend
Create a user called mythtv and do all of the following steps as this user
Its a good idea to run these from a terminal window to start with, so we can see that everything is as it should be. Once all has been set up and complete, then we can run mysql/mythbackend/frontend as background server processes.
Start system services
We need to have both "mysql" and "mythbackend" running on startup
Start YaST -> System ->System Services ( RunLevel)
Select mysql click "enable" Click OK after popup dialog
Select ntp click "enable" Click OK after popup dialog
Notice there is a mythbackend option, would suggest that you do not enable "mythbackend" just yet, until you have tried running in a terminal window as below. If all steps below work then enable this to run.
Setup mysql database mythconverg
Set the root password for the mysql database. (replace mysqlpassword with your own)
Open a Terminal window
> mysqladmin -u root password mysqlpassword
Setup the initial database. Note - the mc.sql file should have been installed along with the mythtv documentation onto your system. The default location for this file is shown below, however it may have been relocated elsewhere according to your distribution's documentation rules, so you may have to use a search (find, locate, etc) tool to reveal its whereabouts. Suse 11.0 -- mc.sql is at "/usr/share/doc/packages/mythtv-doc/database/mc.sql" (The following command will prompt for password)
> mysql -u root -p < /usr/share/mythtv/database/mc.sql
How to Reset the Root Password (Slackware):
Login as a root
> su -
Stop the database
> /etc/rc.d/rc.mysqld stop
Set the initial file for a new root database password
> echo "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('new_password');" > /var/lib/mysql/mysql-init
Change the user and group ownership
> chown mysql.mysql /var/lib/mysql/mysql-init
Start a database manually
> /usr/bin/mysqld_safe --init-file=/var/lib/mysql/mysql-init &
Login to the database as a root with a new password
> mysql -u root -p new_password
Setup MythTV backend preferences and tune TV cards
Open a Terminal Window and type
You will now see the GUI for MythTV to setup the backend server and in particular the channel tuning for our broadcast streams. You will need to set up:
- General — General Backend settings, most user can use the defaults
- Capture Cards — you will configure your capture cards/devices here
- Video Sources — create guide data.
- Input connections — connect the Capture Card name to the Video Source
- Channel Editor — scan for your channels here
- Storage Groups — Configure which folders your recordings will be saved.
On entering each screen, the cursor is positioned at the bottom right on the "Next" button. The cursor may not be visible. Use the up, down, left, and right cursor keys to make selections. Fields marked with up and down arrows can be modified by pressing the PageUp and PageDown keys or the left and right cursor keys; in some cases, the action is different. For example, when setting times, cursor left and cursor right change the time by minutes, while Page Up and Page Down change by half hours. Some fields, notably text fields, accept direct keyboard input. For many fields, context-sensitive help appears in the bottom part of the screen when you position on the field.
Multiple tuner cards
If you have more than one TV card, you only need to do the channel scan on one of the cards. All cards of the same type should point to the same video source. For example let's say you have two cards both for Freeview (UK Network). Create a Video Source called FreeviewUK, now connect both cards to this Video source.
[DVB1] DVB card 1->FreeviewUK
[DVB0] DVB card 2->FreeviewUK
When you scan for your channels make sure that you put in a frequency that corresponds to the transmitter that you will be receiving from, for instance Crystal Palace. You can find out the frequency on the web for your country and region.
Older TV cards may need all of the parameters from the transmitters tab to be entered, and not just left as "auto". The next version of MythTV (0.19) should have a "blind" scan, and it should just find the channels for you.
Alternatively users in the USA using Schedules Direct can fetch there lineups form Schedules Direct in Input Connections to automatically configure channel lineups.
|User Manual:Introduction||User Manual:Index||User Manual:MythTV structure|