Difference between revisions of "Build from Source"
m (Fixups) |
m |
||
Line 1: | Line 1: | ||
{{Navigate|User Manual:Introduction|User Manual:Index|User Manual:Detailed configuration Backend}} | {{Navigate|User Manual:Introduction|User Manual:Index|User Manual:Detailed configuration Backend}} | ||
− | + | ''This page is up-to-date to MythTV version 0.20'' | |
==Introduction== | ==Introduction== |
Revision as of 16:43, 27 August 2008
Previous | Up | Next |
---|---|---|
User Manual:Introduction | User Manual:Index | User Manual:Detailed configuration Backend |
This page is up-to-date to MythTV version 0.20
Contents
Introduction
There are two different ways to install Mythtv.
- The basic method described below (gives flexibility and insight)
- From an automated cd install using one of the MythTV distros (quick and easy).
Here we will discuss the basic method which gives more flexibility and insight in your system. 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.
About your hardware
Firstly, make sure your hardware is supported by Myth. You can find more information in this wiki at:
- Tuner_Card#Cards_that_work
- Hardware Requirements
- External links
- Main_Page
- 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.
The setup
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. (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:
- 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
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.
MythTV Linux distributions - The fast and simple way to install MythTV
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.
You can find out more about the automated CD installs in the MythTV distros section.
Previous | Up | Next |
---|---|---|
User Manual:Introduction | User Manual:Index | User Manual:Detailed configuration Backend |