Difference between revisions of "Build from Source"

From MythTV Official Wiki
Jump to: navigation, search
m (About your hardware)
m (URL not working)
Line 41: Line 41:
  
 
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:  
 
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:  
* the instruction in the [http://www.mythtv.org/modules.php?name=MythInstall manual] (chapter: Manually building MythTV);
+
* one of the [[:Category:Distribution_Specific_Install_Guides|Distribution Specific Install Guides]] (e.g. Ubuntu-8.10 Source Install);
* one of the [[Distribution Specific Install Guides]] (e.g. Ubuntu-8.10 Source Install).
+
* the instruction in the [http://www.mythtv.org/modules.php?name=MythInstall manual] (chapter: Manually building MythTV).
 
 
Of course you can also choose to combine these to your liking (sometimes one tuturial explains certain topics better than the other).  
 
  
 +
Of course you can also choose to combine these to your liking (sometimes one tuturial explains certain topics better than the other).
  
 
==The setup==
 
==The setup==

Revision as of 20:00, 3 February 2009

Previous Up Next
Go-prev.png User_Manual:Setting_Up Go-up.png User Manual:Index User Manual:MythTV structure Go-next.png

This page is uUser Manual:Introductionp-to-date to MythTV version 0.20

Introduction

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:


If you are having trouble, try:

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 proceding 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:

Of course you can also choose to combine these to your liking (sometimes one tuturial explains certain topics better than the other).

The setup

There are four key parts to MythTV, and setup roughly in this order:

  1. Start system services that MythTV needs
  2. Initialize the system database, mythconverg
  3. Setup system preferences and tune your TV card using mythtv-setup
  4. Start main MythTV server, mythtvbackend
  5. 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

Geeko head48.png openSUSE

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

How to Reset the Root Password

Setup MythTV backend preferences and tune TV cards

Open a Terminal Window and type

> mythtv-setup

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:

  1. General — General Backend settings, most user can use the defaults
  2. Capture Cards — you will configure your capture cards/devices here
  3. Video Sources — create guide data.
  4. Input connections — connect the Capture Card name to the Video Source
  5. Channel Editor — scan for your channels here
  6. 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

http://acaciaclose.co.uk/mediac/400_0/media/mythtune.jpg

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.


Previous Up Next
Go-prev.png User Manual:Introduction Go-up.png User Manual:Index User Manual:MythTV structure Go-next.png