Diff for "InstallMythOnUbuntu"


Differences between revisions 1 and 36 (spanning 35 versions)
Revision 1 as of 2005-12-16 03:40:28
Size: 17604
Editor: cpe-67-49-62-218
Comment:
Revision 36 as of 2006-01-15 19:23:50
Size: 40882
Editor: cpe-67-49-62-218
Comment: Install new ivtv version 0.4.1
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Using Ubuntu 5.10 - Breezy


Access Terminal by Selecting Applications->Accessories->Terminal


Set the 'root' password
== Page Description ==

This page will describe how to install MythTV onto your Ubuntu linux computer. MythTV is a 'Tivo' like system; it allows you to watch, pause, and record televsion. These instructions were created using Ubuntu 5.10 (Breezy Badger). They are written for the basic Linux user, however a knowledge of Linux commands will be helpful when installing myth. In addition to just installing myth, this tutorial will also tell you how to install
 (the driver and firmware required for the Hauppauge capture cards pvr-150, 250, 350, and 500). And, it will show you how to install LIRC, the software driver required to use remote controls.

During this tutorial, you will be required to enter commands into the computer (if you don't know how to enter commands in, this will be described). The commands will be presented in the following box.
{{{
%Command goes here.
}}}
The command does not include the percent sign '%' - this symbol is presented to represent the terminal.


== Upgrade Ubuntu for Installing MythTV ==

Access a terminal by selecting Applications->Accessories->Terminal. (Applications is presented at the top of the computer window). You will be presented by a terminal window. To issue a command in the terminal window, type in the command and press enter.

You must first create a root password (optionally, do not create a root account, and use the sudo command before all relevant commands). Set the 'root' password by entering in the following command.
{{{
Line 9: Line 20:
 Optionally, can put 'sudo' before every command
 Now, a root account exists


Enable 'Universe' and 'Multiverse'
Select Settings->Repositories
}}}
The command will ask you for your password, and then ask for the new UNIX password. Enter these in.

You will now enable the upgrade to include upgrades in the 'Universe' and 'Multiverse'. Do this by selecting Settings->Repositories
Line 17: Line 26:
Check the 'Non-Free (Multiverse)' checkbox
Select the 'Oks' and let the packages download
Press the 'Close' button and exit out of the 'Add Applications' window

Switch to root user
Check the 'Non-Free (Multiverse)' checkbox. Don't worry, to my knowledge doing this does not cost money at any time.
Select the 'Oks' and let the packages download.
Press the 'Close' button and exit out of the 'Add Applications' window.

Now, switch to become the root user.
{{{
Line 23: Line 33:
Enter the password created earlier with sudo command

Update and upgrade Ubuntu
}}}
Enter the password created earlier with sudo command.

Update and upgrade Ubuntu by entering the following series of commands.
{{{
Line 29: Line 41:

Download required packages used to install Myth
}}}

You now need to d
ownload required packages used to install Myth.
{{{
Line 32: Line 46:

Myth also requires gcc-3.4
}}}

In addition to the above, Myth also requires gcc-3.4. Alternativey, instead of downloading another version of gcc, you could make symbolic link that's named gcc-3.4 but links to gcc compiler version installed with Ubuntu
{{{
Line 35: Line 51:
 Alternativey, could make symbolic link that's named gcc-3.4 but links to
 gcc compiler version installed with Ubuntu

Install Apache and Mysql
 http://www.slash32.com/ubuntu-myth.html
}}}
Your Ubuntu computer is now ready to begin the process of installing and setting up Myth.


= MythTV Prerequisites =
Myth requires Apache and Mysql; we will install these now. The following information was derived from the following website: http://www.slash32.com/ubuntu-myth.html. Download and install apache2 and mysql-server.
{{{
Line 42: Line 60:
 Choose 'setup internet site'
 I used default values. If you're smarter than me, change as needed.
}}}
The mysql-server will ask for further information. Choose 'setup internet site'. I used the default values from then on. If you're smarter than me, change them as needed. Then install phpmyadmin.
{{{
Line 45: Line 64:
Open Firefox web-browser
enter 'localhost' into the website address
Click on phpmyadmin
Enter 'root' into the user name field box
Leave the password field empty and press ok.
Click on change password
Enter in your new password in both field boxes and press ok.
Press 'logout'
now, enter root as the username and nothing in the password box. If what you did worked, you just got denied.
}}}
Now you will setup what you just installed. Open the Firefox web-browser; enter 'localhost' into the website address. Click on phpmyadmin. Enter 'root' into the user name field box, leave the password field empty and press ok.
Click on change password. Enter in the new root password you created earlier in both field boxes and press ok. Press 'logout'.
Now, enter root as the username and nothing in the password box. If what you did worked, you just got denied.
Line 58: Line 72:
Download and Install Myth
To do this we will use synaptic manager
Select System->Administration->Synaptic Package Manager
Right click anything with Myth in front of it and mark for installation
 
Mythgame and Mythphone have problems. We'll get to this later.
 
Click 'Apply'. Click 'Apply' again. Watch the packages download.
Also use synaptic package manager to download lynx and ncftp


Installing Hauppauge pvr-350
Visit http://ivtvdriver.org and download the latest stable release of the driver
I downloaded ivtv_0.4.0.tar.gz.
Unzip the file. I do this by double clicking on it, and using the Ubuntu unzip utility to extract it to my desktop.
Just push extract when the button appears.
You no longer need the *.tar.gz file. Feel free to delete it.

Open up a t
erminal. In your home directory, create a directory called Software.
== Download and Install Myth ==
We will now download and install Myth
TV. To do this we will use synaptic manager.
Select System->Administration->Synaptic Package Manager.
Right click anything with Myth in front of it and mark for installation. Mythgame and Mythphone have problems. We'll get to this later.  Click 'Apply'; click 'Apply' again. Watch the packages download.
In addition to MythTV, use synaptic package manager to download lynx and ncftp. Follow the procedure you just followed for these new packages. Be sure to download the necessary dependant packages as well.


==
Installing IVTV ==
IVTV is the driver necessary for the
Hauppauge Hauppauge pvr-150, 250, 350, and 500 cards. If you have other capture cards, this may not apply to your card. This section has been tested for ivtv versions 0.4.0 and 0.4.1.

Visit http://ivtvdriver.org and download the latest stable release of the driver. I downloaded ivtv_0.4.0.tar.gz.
You now need to unzip the file. Do this by double clicking on it, and using the Ubuntu unzip utility to extract it to the desktop (press the extract button). You no longer need the *.tar.gz file. Feel free to delete it.

Open up a ter
minal (Applications->Accessories->Terminal). In your home directory, create a directory called Software.
{{{
Line 76: Line 88:
Move into that directory }}}
Na
vigate into that directory
{{{
Line 78: Line 92:
}}}
Line 79: Line 94:
{{{
Line 80: Line 96:
Move into that directory }}}
Na
vigate into that directory
{{{
Line 82: Line 100:
}}}
Line 83: Line 102:
{{{
Line 84: Line 104:
}}}
Line 85: Line 106:
{{{
Line 86: Line 108:


Download soemthing that makes 'make' work
 
http://ubuntuforums.org/archive/index.php/t-2878.html
}}}

Download something that makes 'make' work. This information was attained from the following website: http://ubuntuforums.org/archive/index.php/t-2878.html.
{{{
Line 91: Line 113:
}}}
Line 92: Line 115:
{{{
Line 93: Line 117:
}}}
Line 94: Line 119:
{{{
Line 95: Line 121:
The output of make install lists some conflicting files. It suggests several move commands to 'HIDE' these files. Follow these commands by copying and pasting them into the command line and pressing enter. (Press enter for each command individually)
Then install it again
}}}
The output of make install lists some conflicting files. It suggests several move commands to 'HIDE' these files. Follow these commands by copying and pasting them into the command line and pressing enter. (Press enter for each command individually).
Then make the install again.
{{{
Line 98: Line 126:
Hopefully the install went well for you. On my machine, it installs into the wrong directory. So we need to copy it.
We first need to find where it went. Type in the following
}}}
Hopefully the install went well for you. On my machine, it installs into the wrong directory. So we need to copy it.  We first need to find where it went. Type in the following to accomplish this.
{{{
Line 101: Line 130:
This command should reveal the location of the ivtv driver.
Now we need to copy it to where it should go.
}}}
This command should reveal the location of the ivtv driver.  The output is most likely something like {{{/lib/modules/<kernel_number/ivtv}}}. Now we need to copy it to where it should go.
{{{
Line 104: Line 134:
 If you don't know your kernel number, type the following
 %uname -r
}}}
If you don't know your kernel number for the above command, enter the following command.
{{{
%uname -r
}}}
Line 107: Line 140:
%cp -r <result_of_find_command> /lib/moudles/<your_kernel_number>/
Now we need to generate the modules.dep and map files.
Do this by typing the following:
{{{
%cp -r <result_of_find_command> /lib/modules/<your_kernel_number>/
}}}

Now we need to generate the modules.dep and map files.  Do this by typing the following.
{{{
Line 111: Line 146:
And now we need to add those modules to the linux kernel
Do this by typing the following:
}}}
And now we need to add those modules to the linux kernel. Do this by entering the following command.
{{{
Line 114: Line 150:
Edit a file }}}
You now need to edit a driver file. The following command suggests using gedit; feel free to used any other text editor.
{{{
Line 116: Line 154:
Add the following line to the file (it might be the only line in the file) }}}
Add the following line to the file (it might be the only line in the file). Note: do not include the quotes (') in the line. Just add what's inside the quotes.
{{{
Line 118: Line 158:
Make ivtv executable }}}
Now change the ivtv permissions so that it is executable.
{{{
Line 120: Line 162:
}}}
Line 121: Line 164:
{{{
Line 122: Line 166:
Check to see if the driver is working
As root, issue the following command
%dd if=/dev/video0 of=/dev/video16
After a few seconds, push 'Control-C'
You should get an output that looks like this:
 30696+49 records in
 30720+0 records out
If you got this, then the drivers are workign well.
 Note: /dev/video16 is the hardware decoder that comes with the Hauppauge pvr-350
 If you don't have the 350, then you may not get any records out.
}}}
Line 138: Line 173:
 Note: if you don't know how to use less, type '%man less' before issuing the above command
If you scroll to the bottom of the ivtv section, you can see that several errors occurred. This is because we have  yet to isntall the firmware for our capture card (the Hauppauge pvr-350). We will do that now.
Open up Firefox web browser
Again visit http://ivtvdriver.org
Click on the 'firmware' link
Here you get some really cryptic messages for what you want to do with the Hauppauge pvr-350. I'll tell you what I did. If you find a better way, please let me know :) ndwork@hotmail.com
 Note: if you don't know how to use less, type '%man less' before issuing the above command. (In general, the 'man' function is used to get explanations about the command being 'manned'.) If you scroll to the bottom of the ivtv section, you can see that several errors occurred. This is because we have yet to install the firmware for our capture card (I used the Hauppauge pvr-350). We will do that now.  Open up Firefox web browser. Again visit http://ivtvdriver.org. Click on the 'firmware' link.
Here you get some really cryptic messages for what you want to do with the Hauppauge pvr-350. I'll tell you what I did. If you find a better way, please edit this page accordingly.
Line 151: Line 182:
{{{
Line 152: Line 184:
Move into that directory }}}
If you don't know your username, enter the following command.
{{{
%whoami
}}}
Move into the newly created directory.
{{{
Line 154: Line 192:
Move the zip files into the current directory }}}
Move the zip files into the current directory.
{{{
Line 156: Line 196:
}}}
Line 157: Line 198:
{{{
Line 158: Line 200:
 Make sure }}}
Line 162: Line 204:
At this point, let me say my two cents. Thank you to all the developers who have created Myth, ivtv, and linux in general. Open source is an amazing solution to software development. Ubuntu, in general, rocks. This would all be so much harder if it were not for this new, beautiful, distribution of linux. If I might make a suggestion, it would be the following. It would be great if installation of the driver were done just by installing the capture card into the computer. I understand that there are plans to get ivtv included into the linux kernel, and I'm looking forward to those days. I've spent about a week trying to figure all of this out, and I'm still going.
At this point, let me say my two cents. Thank you to all the developers who have created Myth, ivtv, and linux in general. Open source is an amazing solution to software development. Ubuntu, in general, rocks. This would all be so much harder if it were not for this new, beautiful, distribution of linux. Thank you so much to all the people that have created help files describing their experiences with Myth installations. I would not have been able to do it without you all.
Line 166: Line 207:
Visit http://www.pcxperience.org/james/ivtv
Download the Video::Frequencies and Video::ivtv modules

Open a firefox browser and v
isit http://www.pcxperience.org/james/ivtv. Download the Video::Frequencies and Video::ivtv modules by clicking on the links.
Line 169: Line 210:
Unzip the file and extract the internal directory to the desktop (as done before)
Move the dirctories into your pvr_firmware directory
Unzip the file and extract the internal directory to the desktop (as done before).
Move the directories into your pvr_firmware directory.
{{{
Line 172: Line 214:
Navigate to the firmware directory }}}
Navigate to the firmware directory.
{{{
Line 174: Line 218:
Navigate into the Video Directory }}}
Navigate into the Video Directory.
{{{
Line 176: Line 222:
Use perl utility to create makefile }}}
Use perl utility to create a makefile
{{{
Line 178: Line 226:
Make }}}
Now make the makefile you just made (get it?).
{{{
Line 181: Line 231:
}}}
Line 182: Line 233:
Use CPAN to install IniFiles
Use CPAN to install IniFiles. It takes a while to go through all the options. I selected default for most of them. You'll be fine.
{{{
Line 184: Line 237:
 It takes a while to go through all the options. I selected default for most of them. You'll be fine. }}}
 
Line 186: Line 240:
{{{
Line 187: Line 242:
}}}
Line 188: Line 244:
{{{
Line 190: Line 247:
Restart your computer by selecting the following
 
System->Logout->Restart
}}}
Restart your computer by selecting System->Logout->Restart.
Line 193: Line 250:
{{{
Line 196: Line 254:
Now check the output of modprobe }}}
Now check the output of modprobe.
{{{
Line 198: Line 258:
The ivtv portion should have no errors
Restart your computer
Switch to root user
Navigate to the ivtv directory
}}}
The ivtv portion should have no errors. Restart your computer. If it didn't work, you might be using an ivtv version higher than 0.4.0. If that is the case, perform the following.
{{{
%mv /lib/modules/ivtv-fw-enc.bin /usr/lib/hotplug/firmware/
%mv /lib/modules/ivtv-fw-dec.bin /usr/lib/hotplug/firmware/
%ln -s /usr/lib/hotplug/firmware/ivtv-fw-dec.bin /usr/lib/hotplug/firmware/v4l-cx2341x-dec.fw
%cd /home/<user_name>/Software/tv/pvr_firmware/pvr_2*
%cp HcwMakoA.ROM /usr/lib/hotplug/firmware/v4l-cx25840.fw
%cp HcwFalcn.rom /usr/lib/hotplug/firmware/v4l-cx2341x-enc.fw
%cd /home/<your_user_name>/Software/tv/ivtv-0.4.1
%cp v4l-cx2341x-init-mpeg.bin /usr/lib/hotplug/firmware
}}}
Restart the computer.
{{{
%depmod
%modprobe ivtv
}}}
Check again to see if there were any errors in the ivtv section.
Switch to root user. Navigate to the ivtv directory.
{{{
Line 203: Line 279:
}}}
Line 204: Line 281:
{{{
Line 205: Line 283:
}}}
Line 206: Line 285:
{{{
Line 207: Line 287:
 The above command assumes you have channel 8.
If the output is something like: 'Ch.8: 181250 2900' then the card is working.
 Note, again, we still haven't got the decoder working. If you have a Hauppauge pvr-250 instead of a Hauppauge pvr-350 then you don't have a decoder and life is good for you.
If it worked, edit an aliases file.
Perform the following:
}}}
The above command assumes you have channel 8. I suggest testing several channels; do this by replacing the '8' in the above command with the appropriate output. If the output is something like: 'Ch.8: 181250 2900' then the card is working.
If it worked, edit an aliases file. Perform the following.
{{{
Line 214: Line 293:
}}}
Line 220: Line 300:

Create a username and password for mythtv in the sql database
if you're not the mythtv user, switch to it
Check to see if the driver is working. As root, issue the following command.
{{{
%dd if=/dev/video0 of=/dev/video16
}}}
After a few seconds, push 'Control-C'. You should get an output that looks like this:
{{{
30696+49 records in
30720+0 records out
}}}
If you got this, then the drivers are working well. Note: /dev/video16 is the hardware decoder that comes with the Hauppauge pvr-350. If you don't have the 350, then you may not get any records out.

You've completed installation of the firmware.


=== Upgrade the Firmware to the Latest Verison ===
Upgrade the firmware to version 2.0.24.23035. Visit the ivtv website and download the driver of the above version
www.ivtvdriver.org/index.php/Firmware. Unzip the file.
Copy the HcwMakoA.ROM file to /lib/modules/
Copy the HcwFalcn.rom file to /lib/modules/ivtv-fw-enc.bin
{{{
%depmod
%modprobe ivtv
}}}
Then restart your computer.


== MythTV Configuration ==
Create a username and password for a mythtv user in the sql database. if you're not the root user, switch to it.
{{{
Line 224: Line 330:
}}}
Line 225: Line 332:
{{{
Line 230: Line 338:
 Enter a different password if you would like. Just remember the one you enter.


Finally, on to MythTV!
Navigate to your home directory
}}}
Enter a password other than mythtvif you would like. Just remember the one you enter.

Finally, on to MythTV!  Navigate to your home directory.
{{{
Line 236: Line 344:
}}}
Line 237: Line 346:
{{{
Line 238: Line 348:
Enter in a password (I suggest making it the same password used for the sql database).
Now need to disable a security feature; remember to enable it again later.
}}}
Enter in a password (I suggest making it the same password used for the sql database).  Now you need to disable a security feature; remember to enable it again later.
{{{
Line 241: Line 352:
Change to the mythtv user }}}
You can enable it later by typing {{{%xhost -}}}. Change to the mythtv user.
{{{
Line 243: Line 356:
}}}
Line 244: Line 358:
{{{
Line 245: Line 360:
 Go to www.systm.com to see how to setup Myth
 Note: It's important to run the myth tv setup as the mythtv user
Fill the listings of myth
 http://mythtv.org/pipermail/mythtv-users/2005-February/076574.html
%mythfilldatabase
 This takes a long time. Don't worry if you get some errors - some errors are ok. Myth will be the test of if it worked out or not.

We need to configure the backend to start when we turn on the computer.
%echo "su -mythtv -c \"mythbackend -d\"" | sudo tee /etc/init.d/mythtv-backend
Start the myth backend
%mythbackend -d &
 http://www.mythtv.org/docs/mythtv-HOWTO-singlehtml.html
 This will start the myth daemon
Restart the computer
System->Logout->Restart
Start up myth!
Currently, there is a bug in Ubuntu where the mythbackend won't start up automatically. So, we start it ourselves.
Remember that the mythbackend must be started by the mythtv user
%mythbackend
}}}
For instructions on how to install MythTV, you can visit www.mythtv.org. I found great information on how to configure MythTV by visiting www.systm.com. They used KnoppMyth, but the Myth configuration issues they suggest are relevant. Note: It's important to run the myth tv setup as the mythtv user. Fill the listings of myth; I used information from the following website to figure out the following set of commands http://mythtv.org/pipermail/mythtv-users/2005-February/076574.html.
{{{
%mythfilldatabase
}}}
This takes a long time. Don't worry if you get some errors - some errors are ok. Myth will be the test of whether or not it worked out.

We will now start our first Myth session.
As the mythtv user, start the myth backend.
{{{
%mythbackend -d
}}}
I also used the following website for informatoin on these commands, http://www.mythtv.org/docs/mythtv-HOWTO-singlehtml.html.
The above command will start the myth daemon. Restart the computer {{{System->Logout->Restart}}}.
Now start up myth!
{{{
Line 265: Line 377:
}}}
Line 266: Line 379:
Tell Myth the username and Password of your mysql database you entered earlier in this tutorial.
Tell Myth the username and password of your mysql database you entered earlier in this tutorial.
Line 274: Line 386:

Setting up the Hauppauge Remote Control
 http://ubuntuforums.org/showthread.php?t=30612&highlight=lirc
 http://www.abarbaccia.com/content/view/18/31/
Need to install Linux Kernel source code
Find the kernel version
== Setting up the Hauppauge Remote Control with LIRC ==

For this section, I referred to the following websites: {{{http://ubuntuforums.org/showthread.php?t=30612&highlight=lirc}}}, and {{{http://www.abarbaccia.com/content/view/18/31/}}}.

This section will explain how to install LIRC and get the Hauppauge remote control working. We need to install the Linux Kernel source code. First, we find the kernel version.
{{{
Line 281: Line 393:
This yields something like 2.6.12-10-386
We will use the first three numbers
}}}
This yields something like 2.6.12-10-386. We will use the first three numbers.
{{{
Line 284: Line 397:
 where <kver> are the first three numbers
Now we need to extract the source we just downloaded and link it to the right directory
}}}
where <kver> are the first three numbers. Now we need to extract the source we just downloaded and link it to the right directory.
{{{
Line 294: Line 408:

Visit the LIRC homepage and download the latest LIRC software to your desktop
 
www.lirc.org
Unzip the firmware using the Ubuntu unzip utility as discussed before and extract it to your desktop
Feel free to delete the zip file now.
}}}
The last command takes a LONG time. Relax, and get something to eat. You've been working hard.

Visit the LIRC homepage and download the latest LIRC software to your desktop {{{http://www.lirc.org}}}. Unzip the firmware using the Ubuntu unzip utility as discussed before and extract it to your desktop. Feel free to delete the zip file now.
Line 300: Line 413:
{{{
Line 302: Line 416:
}}}
Line 303: Line 418:
{{{
Line 305: Line 421:
}}}
Line 306: Line 423:
{{{
Line 307: Line 425:
}}}
Line 308: Line 427:
{{{
Line 309: Line 429:
}}}
Line 310: Line 431:
{{{
Line 311: Line 433:
Select Driver Configuration
Select TV Card
Select 'Hauppauge TV Card'
Choose 'Save Configuration and Run Configure'
M
ake and install
}}}
Select Driver Configuration. Select TV Card. Select 'Hauppauge TV Card'. Choose 'Save Configuration and Run Configure'. Then, make and install.
{{{
Line 318: Line 438:
Note:
    
If there are errors during the make or make install, then might try performing the following command.
     %touch /usr/src/linux/Rules.make
    Now re-run make and make install
}}}
Note: If there are errors during the make or make install, then might try performing the following command.
{{{
%touch /usr/src/linux/Rules.make
}}}
I did not need that command, but others on the internet claim it was the key to their success.
Now re-run make and make install. Then, install the lirc module.
{{{
Line 324: Line 447:
%chmod 666 /dev/lircd %chmod 664 /dev/lircd
Line 326: Line 449:

Test using irw
}}}

We will now test the remote control using irw.
{{{
Line 329: Line 454:
Point your control at your ir receiver and push a button. The name of the button should be displayed on the text screen. If it doesn't work, then there's something wrong.

We will now setup the remote control so that it will start after we shutdown the computer
Open up the modules file to be edited
}}}
Point your control at your ir receiver and push a button (you did plug in the ir receiver that came with your card right? If not, shutdown your computer, plug it in, and start the computer again). The name of the button you just pushed should be displayed on the text screen. If it doesn't work, then there's something wrong.

We will now setup the remote control so that it will start whenever we turn on the computer. First, open up the modules file to be edited.
{{{
Line 334: Line 460:
Add the following line above the 'ivtv' line that we added before }}}
Add the following line above the 'ivtv' line that we added before.
{{{
Line 336: Line 464:
Now change permissions of lircd
First find out where lircd is
}}}
Now we need to change permissions of lircd. First find out where lircd is.
{{{
Line 339: Line 468:
}}}
Line 340: Line 470:
{{{
Line 341: Line 472:
 Replace '/usr/local/sbin/lircd' with the path revealed by the 'which' command



Save your changes and exit the editor
Open up another file
}}}
Replace '/usr/local/sbin/lircd' with the path revealed by the 'which' command


Save your changes and exit the editor. Open up another important file.
{{{
Line 348: Line 479:
Add the following line at the end of the file
 
http://ubuntuforums.org/showthread.php?t=30612&page=2&highlight=lirc
}}}
For the following information, I viewe
d the following website http://ubuntuforums.org/showthread.php?t=30612&page=2&highlight=lirc. Add the following line at the end of the file.
{{{
Line 351: Line 483:
}}}
Line 352: Line 485:
{{{
Line 354: Line 488:
 I did not create this script, and I don't know who did. If it was you, thank you VERY much. }}}
I did not create this script, and I don't know who did. If it was you, thank you VERY much.
{{{
Line 358: Line 494:
}}}
Line 359: Line 496:
{{{
Line 360: Line 498:
}}}
Line 361: Line 500:
{{{
Line 362: Line 502:
}}}
Line 364: Line 505:
Getting the remote control to work during Myth



==
Getting the remote control to work during Myth ==
{{{
Line 371: Line 511:
 Make sure to run the myth front end as the mythtv user or the remote control won't work }}}
Restart the computer.
Make sure to run the myth front end as the mythtv user or the remote control won't work.
Line 373: Line 515:
{{{
Line 375: Line 518:
Use the irw program to know what the output from the remote control is called. }}}
Use the irw program in a separate terminal to know what the output from the remote control is called.
Line 377: Line 521:
 0000000017b4 01 Forward Hauppauge_350 {{{0000000017b4 01 Forward Hauppauge_350}}}
Line 385: Line 529:
Upgrade the firmward to version 2.0.24.23035
Visit the ivtv website and download the driver of the above version
www.ivtvdriver.org/index.php/Firmware
Unzip the file
Copy the HcwMakoA.ROM file to /lib/modules/
Copy the HcwFalcn.rom file to /lib/modules/ivtv-fw-enc.bin
%depmod
%modprobe ivtv



Set up the backend so that it starts upon boot up
 https://wiki.ubuntu.com/MythTV?highlight=%28mythtv%29


== MythTV finishing touches ==
For much of the following information, I visited the following website {{{https://wiki.ubuntu.com/MythTV?highlight=%28mythtv%29}}}. Set up the backend so that it starts upon boot up
Line 399: Line 535:
{{{
Line 400: Line 537:
}}}
Line 401: Line 539:
 'HOME=/home/mythtv'
 Note: Do not add the quotes



Set it up so that the mythtv user doesn't use screen savers:
login as the mythtv user
Edit a startup configuration file
%gedit ~/.xinitrc
It is likely that you are creating this file from scratch.
Enter in the following line
'xset s off'
 Note: do not use the quotes
If you would like myth to start automatically when you login as the mythtv user, then add the following line as well.
 'mythfrontend'
{{{
HOME=/home/mythtv
}}}
Note: Do not add the quotes



Set it up so that the mythtv user doesn't use screen savers.
Line 420: Line 550:
The first command removes the screen saver so it won't appear when you watch TV
Line 423: Line 552:
The second command starts up the myth front end
Set it up so that the front end starts up automatically when you login as mythtv.
Line 428: Line 558:
Line 430: Line 559:


To start myth, restart the computer. Login with the 'mythtv' username. Enter in the password you created at the beginning of this tutorial; you're watching Myth!


=== Adding MythTV Icons ===
You may want station icons next to the channel numbers in your program guide. This is by no means necessary to use MythTV, but it's a neat addition. You may need to install xmltv in order to perform the following. Do so by using Synaptic Package Manager as described before.
Now, we need to download a new perl script, execute it, and add the icons to MythTV.
{{{
%su root
%cd /home/mythtv
%wget http://cvs.mythtv.org/cgi-bin/viewcvs.cgi/*checkout*/mythtv/contrib/mkiconmap.pl
%perl mkiconmap.pl
%mythfilldatabase --import-icon-map iconmap.xml --update-icon-m
}}}
Feel free to delete the perl script when you've completed the above.
{{{
%rm /home/mythtv/mkiconmap.pl
}}}

Now, in your program guide, you should have station icon next to the channel numbers. Have fun!


== Myth Plugins ==

=== Myth DVD ===
Myth DVD allows you to watch DVD movies using myth, or import the DVD video into myth and watch it at a later time directory from your computer. There are several prerequisites to using Myth DVD. Very relevant information for displaying multimedia in Ubuntu can be found at RestrictedFormats. Please review the legal aspects of viewing multimedia described on that page. I take no responsibility for your actions. Perform the following.
{{{
%apt-get install libdvdread3
%/usr/share/doc/libdvdread3/examples/install-css.sh
}}}
Now restart your computer.
After this, try inputting a DVD into your computer. Totem should come up automatically (Ubuntu 5.10 has Totem as the movie player that automatically starts when a DVD is input into your system). If Totem doesn't start up, and you would like it to automatically, then follow {{{System->Preferences->Removeable Media}}} and select the multimedia tab. The command for viewing DVDs when disks are inserted is {{{totem %d}}}.

As long as I was installing the above, I found some other multimedia software that I wanted to install. {{{apt-get install}}} the following packages: flashplayer-mozilla, gftp, gstreamer0.8-plugins, gstreamer0.8-lame, gstreamer0.8-ffmpeg, mozilla-mplayer, and gnomebaker.
In order to use Myth DVD, you must have first installed the plugin onto your computer. This is done using Synaptic Package Manager (described earlier in this document). If you haven't done it yet, first download Myth DVD (search in the myth* section of possible packages to download).
Once you have it downloaded onto your computer, you need to give the mythTV user permission to use the CD and DVD devices. You can do this by executing the following set of instructions as root user.

Open the 'System' menu of Ubuntu. Follow this Path:
{{{
System->Administration->Users and Groups
}}}
Make sure the checkbox at the bottom of the window next to the words 'Show all users and groups' is checked. Now scroll down through the users until you find the mythtv user.
Click once (select) the mythtv user; this should sensitize a properties button on the right side of the window. Click the properties button. Select the 'User Privelges' tab of the properties window. Here you are presented with options to allow the mythtv user to perform. I allow the mythtv user to use audio devices, the cdrom, the floppy drive, the video acceleration, and the modem. (I allow mythtv to use the modem in preparation of an additional feature. I'm told that mythtv can act as a caller ID, displaying the phone number calling in directly onto the television. I'm not positive this feature exists, but I hope it does, and I look forward to realizing that feature. I will update this HowTo with more information as I discover it.)

It is also important to disable automount for the mythtv user, or else you will not be able to eject the DVD after you are done using it with Myth.
To disable automount, as the mythtv user, visit the {{{System->Preferences->Removeable Drives and Media}}} portion of Ubuntu (note, for this portion you must login as the mythtv user). Uncheck the checkbox next to the 'Mount removeable media when inserted' option. Automount has now been disabled and you should be able to eject the DVD with myth running by pressing the eject button on your drive.

We want to download some additional codecs. Again, refer to the laws of your region to make sure that this is legal.
Using firefox, or your favorite browser, visit

It is important to exit these windows by pressing the 'Ok' buttons. This will save the changes that you've made.
You should be good to go. Start watching DVDs with your newly upgraded Myth Tv system!
If it doesn't work, restart your system and try it again. If it still doesn't work, are you sure you have a DVD ROM and not a CD ROM?

So now you can watch a DVD. But what about ripping a DVD (copying the film from the optical disk to the computer). We will figure out how to do that now.
Unfortunately, the mythDVD we downloaded doesn't come with the myth transcoding daemon compiled in. A very generous developer created an alternate mythdvd. As the root user, perform the following:
{{{
%wget http://www.abarbaccia.com/mythdvd_0.18.1-4_i386.deb
%dpkg -i mythdvd*
}}}
Now we will need several pieces of software in order to transcode the DVD. In order to identify the latest package available, perform the following.
{{{
%apt-cache search <package_of_interest>
}}}
Once you've identified the package of interest, use apt-get to download and install the package. According to the mythDVD README file, the following packages must be installed: libdvdread, nasm, mjpegtools, xvid, liba52, libfame, transcode, libdvdcss, w32codecs, and (if you later want to be able to view the DVD menu instead of just having the video play automatically) xine. An example install instruction is listed below.
{{{
%apt-get install transcode
}}}
Make a directory to hold movie posters
{{{
%mkdir /usr/share/mythtv/mythvideo/posters
}}}
Make sure to change the directory to hold the movie posters to this directory in the myth video settings.
Now make a directory to hold the videos.
{{{
%mkdir /usr/share/mythtv/mythvideo/dvds
}}}
Change the settings in MythTV to this directory to hold the videos
Change the permissions of the directories so that the mythtv user can access them.
{{{
%chmod 677 /usr/share/mythtv/mythvideo/dvds /usr/share/mythtv/mythvideo/posters
}}}
Restart your computer.
Start the myth transcoding daemon.
{{{
%mtd -d
}}}
Try ripping a dvd, it should work out for you. If you have problems, check the mtd.log file in the following directory {{{/var/lib/mythdvd/temp/}}}.
To set it up so that the myth transcoding daemon starts automatically, perform the following.
{{{
System->Preferences->Sessions
}}}
Add the following command to the list of startup programs; give it a priority of 198.
{{{
mtd -d
}}}
The myth transcoding daemon should start automatically when you reboot the computer.


Note: VCD playback is a much more difficult task, and will not be covered in this HowTo (basically because I have no idea what vcd is or how to use it). I suggest reading the README file included with the mythdvd plugin (you will need to download the plugin directly from www.mythtv.org in order to view this readme file). Also note that, in some countries (The U.S. I believe) it may be illegal for software to de-encrypt DVDs without paying licensing fees; so by using the software above, you may be breaking the law. I take no responsibility for your actions, and I do not offer legal advice; please speak with your attorney if you have further questions.

To watch a ripped DVD with Myth, after the DVD has been ripped, visit the Utilities/Setup->Video Manager section of Myth. Push up and down until the DVD you just ripped is highlighted, and press 'i' for info. Select the 'Search IMDB' function. If the databasase is searched properly, a cover of the DVD you just ripped should be displayed in your 'Videos' section, and you should be able to watch it.


==== Using Xine ====

It is advantageous to use Xine to view DVDs because, unlike the default mplayer that MythTV is configured to use, Xine allows you to use the Menu of the DVD. We will now configure Myth to use Xine to view the DVDs and videos.

Similar to before, we will need several pieces of software required by Xine. (Note: Ubuntu comes with a few of these installed, but it's worth it to make sure you have them. Additionally note that Ubuntu comes with Xine installed.) In order to identify the latest package available, perform the following.
{{{
%apt-cache search <package_of_interest>
}}}
Once you've identified the package of interest, use apt-get to download and install the package. According to the Xine homepage {{{http://xinehq.de/index.php/about}}}, the following packages must be installed: ffmpeg, liba52, libmpeg2, libmad, and libfaad, FAAD2, libxinelc2, and libxine-dev. Install these packages (or the closest things you could find to them) and then go on. Note that Ubuntu already comes with xine installed on it.
Note: If you have problems with your xine, either see a doctor or run the following command
{{{
%xine-check
}}}
Both procedures may reveal some information you were unaware of.
Try running xine with Ubuntu. Place a DVD in your DVD drive. Select {{{Applications->Sound and Video->Xine}}}. Right click on the Xine window that comes up; select {{{Playlist->Get From->DVD}}}. Watch your DVD. If it doesn't work properly, try a few different DVDs. I had problems with one of mine; it turned out that the DVD was using an obscure audio encoding not yet implemented in linux. At this point, I was watching 'As Good As It Gets' with Xine.

At this point, there was some jerkiness with the video I was watching. By typing the following at the command line, the problem was identified.
{{{
% xine -pfhqd --no-splash --no-logo --verbose=1
}}}
By viewing the terminal, I saw the following message posted several times throughout the time I was watching the video: {{{video_out: throwing away image ...}}}.

By performing the {{{% xine-check}}} command, I found that DMA was not set. In order to set this, we must issue the following commands as root.
{{{
% sync
% hdparm -d1 -X34 /dev/hdd
}}}
Note that the above is a capital 'X' character. Again, be sure to replace /dev/hdd in the above command with the path to your dvd device (i.e. it might be /dev/dvd). Run xine again and see if the jerkiness is gone. If it is not, or if you want even better performance, you might want to try using Ultra-DMA instead of just regular DMA. Do this by typing the following command.
{{{
%hdparm -d1 -X66 /dev/hdd
}}}

If the jerkiness is still not gone, you might find a solution to your problem at the following websites: http://xinehq.de/index.php/faq#SPEEDUP, or http://xinehq.de/index.php/faq.
If the above command works for you, or if you find another command that works for you, you'll need the above commands to be run at startup as root.

As root, edit the /etc/init.d/bootmisc.sh file.
{{{
%su
%gedit /etc/init.d/bootmisc.sh
}}}
Add the 'hdparm -d1 -X66 /dev/hdd' line that works for you right above the last exit line of the file. The last line of the file should look something like ': exit 0'.

You can now use xine without without problems! Try running it from the command line (make sure a DVD is in your player).
{{{
xine -pfhqd -V xv --no-splash
}}}
Did it work? If not, review the past instructions for something has gone wrong.


===== Setup Myth to use Xine for DVDs =====

We will setup myth to use xine instead of mplayer to view DVDs.
with the mythfrontend running, select {{{Utilities/Setup->Setup->Media Settings->DVD Settings->Play Settings}}}. Currently, there is the following command listed there as the dvd player command; this is the command we will change.
{{{
mplayer dvd:// -dvd-device %d -fs -zoom -vo xv
}}}
Replace the above command with the following command.
{{{
xine -pfhqd -V xv --no-splash --no-logo
}}}
The -V option above tells xine what driver to use to display your DVD. The xv driver may not work for you. Review the man page of xine and its help page for more details.
{{{
%man xine
%xine --help
}}}

You should now be using xine to watch DVDs instead of mplayer.


===== Setup Myth to use Xine for Videos =====

We will setup myth to use xine instead of mplayer to view DVDs.
with the mythfrontend running, select {{{Utilities/Setup->Setup->Media Settings->Video Settings->Player Settings}}}. Currently, there is the following command listed there as the dvd player command; this is the command we will change.
{{{
mplayer -fs -zoom -quiet -vo xv %s
}}}
Replace the above command with the following command.
{{{
xine -pfhq -V xv --no-splash --no-logo
}}}
The -V option above tells xine what driver to use to display your DVD. The xv driver may not work for you. Review the man page of xine and its help page for more details.
{{{
%man xine
%xine --help
}}}

You can now use xine to watch videos instead of mplayer.


===== Have Xine Return Focus / Control to Myth =====

Note that when you quit xine (by pressing the right button with the mouse and scrolling down to quit) control is not given back to the myth front end, and you must Alt-tab to return control to myth front end. We will now remedy this problem so that when you exit out of xine, control is returned to the myth front end. The information presented to accomplish this was attained from the following website: http://www.abarbaccia.com/content/view/22/36/.

Download the xine-ui source from the xine website http://xinehq.de. Unzip the utility and extract it to your desktop.
As root user, make the following directory.
{{{
% mkdir /home/<main_user_name>/Software/xine/
}}}
Move the extracted xine file to the new directory
{{{
% cd /home/<main_user_name>/Software/xine/
% mv /home/<user_name>/Desktop/xine* ./
}}}
Alter a line from the ./src/xitk/event.c file.
{{{
% gedit /home/<main_user_name>/Software/xine/src/xitk/event.c
}}}
Remove the following line from the file.
{{{
'XCloseDisplay(gGui->display)'
}}}
Configure the new xine-gui.
{{{
% ./configure
}}}
Make and install the new xine-gui. Make sure to run these commands as root.
{{{
% make
% make install
}}}

Now watch a DVD and exit from it. Focus should be restored to the mythtv application. :)

===== Setup Remote Control (LIRC) to work with Xine =====

Note that since the keyboard commands are different for xine than they are for myth, your remote control doesn't behave as you'd expect. We will now rememdy this problem. Note that you can download a .lircrc file to be used with MythTV, Mplayer, and Xine by copying the text located at ExampleLircrcFile4MythOnUbuntu. Copy the text located there and place it in a file called '.lircrc' within the user directory of any user that would like to use the remote control.

If you prefer to configure the file yourself, though, please continue with this procedure.

Have xine generate a skeleton lircrc file by typing the following at the command line.
{{{
% xine --keymap=lirc > xineSkeletonLirc.txt
}}}
This generates a skeleton file to be used as the .lircrc file. Copy the contents of this file into your existing .lircrc file. Remove any portions relevant to xine that exist in your current file other than what you just added. As before, use the irw software, located in /home/<user_name>/Software/tv/ivtv*/utils, to find the proper keys for each action you desire.
{{{
% su
% cd /home/<user_name>/Software/tv/ivtv*/utils
% irw
}}}
An example element of a 'complete' .lircrc file is shown below.
{{{
# quit the program
begin
 remote = Hauppauge_350
 button = Back/Exit
 prog = xine
 repeat = 3
 config = Quit
end
}}}

== Relevant Links ==
Websites used to install Myth:
 Most Important -> http://ubuntuforums.org/archive/index.php/t-2878.html
  https://wiki.ubuntu.com/NovaTHowTo
 http://ubuntuforums.org/archive/index.php/t-8387.html
  This fault [1/1045] forced a configuration screen to pop up asking
  for username and password of sql.
 http://mythtv.org/pipermail/mythtv-users/2005-February/076574.html
  Above site told me mythfilldatabase command
 http://www.pvrguide.no-ip.com/bbs/index.php?showtopic=4654&st=40
 http://www.abarbaccia.com/content/view/19/31/
 http://www.abarbaccia.com/content/view/18/31/
  Says how to setup the remote
 http://keeto.net/articles/mythtv_lirc_irman.html
 http://www.pvrguide.no-ip.com/bbs/index.php?showtopic=5076&pid=18277&st=0&#entry18277
 http://www.parker1.co.uk/mythtv_ubuntu.php

IVTV
 http://ivtvdriver.org/index.php/Howto:Ubuntu
Line 434: Line 833:















Add Station Icons to Program Guide
 http://www.knoppmythwiki.org/index.php?page=R5A16-InstallAndsetup

Myth Daemon start automatically
 https://wiki.ubuntu.com/MythTV?highlight=%28mythtv%29

Remote Control instructions
 http://home.comcast.net/~alf_park/mythtv.html
 http://ubuntuforums.org/showthread.php?t=30612&highlight=lirc
 http://mythtv.info/moin.cgi/UbuntuInstallation

http://www.gossamer-threads.com/lists/mythtv/users/161275

Myth DVD
 http://www.abarbaccia.com/content/view/20/34/
 http://ubuntu.wordpress.com/
 http://www.mail-archive.com/mythtv-users@mythtv.org/msg49846.html
  Describes using Xine to view DVDs and video
 http://xinehq.de/index.php/faq
  Describes methods to speed up xine
 http://www.abarbaccia.com/content/view/22/36/
  Describes how to have xine return control to MythTV


== Main Ubuntu Category Links ==

CategoryDocumentation CategoryCleanup

Page Description

This page will describe how to install MythTV onto your Ubuntu linux computer. MythTV is a 'Tivo' like system; it allows you to watch, pause, and record televsion. These instructions were created using Ubuntu 5.10 (Breezy Badger). They are written for the basic Linux user, however a knowledge of Linux commands will be helpful when installing myth. In addition to just installing myth, this tutorial will also tell you how to install

  • (the driver and firmware required for the Hauppauge capture cards pvr-150, 250, 350, and 500). And, it will show you how to install LIRC, the software driver required to use remote controls.

During this tutorial, you will be required to enter commands into the computer (if you don't know how to enter commands in, this will be described). The commands will be presented in the following box.

%Command goes here.

The command does not include the percent sign '%' - this symbol is presented to represent the terminal.

Upgrade Ubuntu for Installing MythTV

Access a terminal by selecting Applications->Accessories->Terminal. (Applications is presented at the top of the computer window). You will be presented by a terminal window. To issue a command in the terminal window, type in the command and press enter.

You must first create a root password (optionally, do not create a root account, and use the sudo command before all relevant commands). Set the 'root' password by entering in the following command.

%sudo passwd root

The command will ask you for your password, and then ask for the new UNIX password. Enter these in.

You will now enable the upgrade to include upgrades in the 'Universe' and 'Multiverse'. Do this by selecting Settings->Repositories Press the 'Add' button Check the 'Community-Material (Universe)' checkbox Check the 'Non-Free (Multiverse)' checkbox. Don't worry, to my knowledge doing this does not cost money at any time. Select the 'Oks' and let the packages download. Press the 'Close' button and exit out of the 'Add Applications' window.

Now, switch to become the root user.

%su

Enter the password created earlier with sudo command.

Update and upgrade Ubuntu by entering the following series of commands.

%apt-get update
%apt-get dist-upgrade
%apt-get upgrade

You now need to download required packages used to install Myth.

%apt-get install build-essential

In addition to the above, Myth also requires gcc-3.4. Alternativey, instead of downloading another version of gcc, you could make symbolic link that's named gcc-3.4 but links to gcc compiler version installed with Ubuntu

%apt-get install gcc-3.4

Your Ubuntu computer is now ready to begin the process of installing and setting up Myth.

MythTV Prerequisites

Myth requires Apache and Mysql; we will install these now. The following information was derived from the following website: http://www.slash32.com/ubuntu-myth.html. Download and install apache2 and mysql-server.

%apt-get install apache2
%apt-get install mysql-server

The mysql-server will ask for further information. Choose 'setup internet site'. I used the default values from then on. If you're smarter than me, change them as needed. Then install phpmyadmin.

%apt-get install phpmyadmin

Now you will setup what you just installed. Open the Firefox web-browser; enter 'localhost' into the website address. Click on phpmyadmin. Enter 'root' into the user name field box, leave the password field empty and press ok. Click on change password. Enter in the new root password you created earlier in both field boxes and press ok. Press 'logout'. Now, enter root as the username and nothing in the password box. If what you did worked, you just got denied. Now enter 'root' as the username and the password you chose in the password field box. Press enter. If you get logged in, then everything worked well. Logout again.

Download and Install Myth

We will now download and install MythTV. To do this we will use synaptic manager. Select System->Administration->Synaptic Package Manager. Right click anything with Myth in front of it and mark for installation. Mythgame and Mythphone have problems. We'll get to this later. Click 'Apply'; click 'Apply' again. Watch the packages download. In addition to MythTV, use synaptic package manager to download lynx and ncftp. Follow the procedure you just followed for these new packages. Be sure to download the necessary dependant packages as well.

Installing IVTV

IVTV is the driver necessary for the Hauppauge Hauppauge pvr-150, 250, 350, and 500 cards. If you have other capture cards, this may not apply to your card. This section has been tested for ivtv versions 0.4.0 and 0.4.1.

Visit http://ivtvdriver.org and download the latest stable release of the driver. I downloaded ivtv_0.4.0.tar.gz. You now need to unzip the file. Do this by double clicking on it, and using the Ubuntu unzip utility to extract it to the desktop (press the extract button). You no longer need the *.tar.gz file. Feel free to delete it.

Open up a terminal (Applications->Accessories->Terminal). In your home directory, create a directory called Software.

%mkdir Software

Navigate into that directory

%cd Software

Make a directory for all of your television software

%mkdir tv

Navigate into that directory

%cd tv

Move the Driver directory into the current directory

%mv ../../Desktop/ivtv-0.4.0 ./

Move into the driver directory

%cd ivtv-0.4.0

Download something that makes 'make' work. This information was attained from the following website: http://ubuntuforums.org/archive/index.php/t-2878.html.

%apt-get install linux-headers-$(uname -r)

Now make the driver

%make

Now install the driver

%make install

The output of make install lists some conflicting files. It suggests several move commands to 'HIDE' these files. Follow these commands by copying and pasting them into the command line and pressing enter. (Press enter for each command individually). Then make the install again.

%make install

Hopefully the install went well for you. On my machine, it installs into the wrong directory. So we need to copy it. We first need to find where it went. Type in the following to accomplish this.

%find / -name ivtv

This command should reveal the location of the ivtv driver. The output is most likely something like /lib/modules/<kernel_number/ivtv. Now we need to copy it to where it should go.

%cp -r <result_of_find_command> /lib/modules/<your_kernel_number>/kernel/drivers/media/video

If you don't know your kernel number for the above command, enter the following command.

%uname -r

Copy it to another location as well (this really shows you how little I know about what I'm doing. I got it working, so that part's good.)

%cp -r <result_of_find_command> /lib/modules/<your_kernel_number>/

Now we need to generate the modules.dep and map files. Do this by typing the following.

%depmod

And now we need to add those modules to the linux kernel. Do this by entering the following command.

%modprobe ivtv

You now need to edit a driver file. The following command suggests using gedit; feel free to used any other text editor.

%gedit /etc/init.d/ivtv

Add the following line to the file (it might be the only line in the file). Note: do not include the quotes (') in the line. Just add what's inside the quotes.

'modprobe ivtv'

Now change the ivtv permissions so that it is executable.

%chmod +x /etc/init.d/ivtv

Update the modules that start on boot up

%update-rc.d ivtv defaults 50

How are you feeling so far? Feeling good? Things are going well. Only a bit further.

Let's look at the output of the modprobe command. %dmesg | less

  • Note: if you don't know how to use less, type '%man less' before issuing the above command. (In general, the 'man' function is used to get explanations about the command being 'manned'.) If you scroll to the bottom of the ivtv section, you can see that several errors occurred. This is because we have yet to install the firmware for our capture card (I used the Hauppauge pvr-350). We will do that now. Open up Firefox web browser. Again visit http://ivtvdriver.org. Click on the 'firmware' link.

Here you get some really cryptic messages for what you want to do with the Hauppauge pvr-350. I'll tell you what I did. If you find a better way, please edit this page accordingly.

The first thing we see is that the hotplug mechanism will be used starting with driver ivtv-0.4.1. That means if you use a release later than 0.4.0, this document is out of date. I welcome you to figure it out and let everyone else know how to do it by improving this document. If you're still using ivtv-0.4.0, then download the following files: pvr_2.0.24.*.zip and pvr_1.18.21.22254_inf.zip and save them to your desktop.

In your tv directory (within your Software directory) make a pvr_firmware directory

%mkdir /home/<your_user_name>/Software/tv/pvr_firmware

If you don't know your username, enter the following command.

%whoami

Move into the newly created directory.

%cd /home/<your_user_name>/Software/tv/pvr_firmware

Move the zip files into the current directory.

%mv /home/<your_user_name>/Desktop/*.zip ./

Now run a perl utitilty that came with the ivtv driver

%../ivtv-0.4.0/utils/ivtvfwextract.pl pvr_1.18.21.*_inf.zip.

Note: we have not yet used the pvr_2.*.zip file. This will be used later for the hardware decoder.

Now we have to get some additional modules. At this point, let me say my two cents. Thank you to all the developers who have created Myth, ivtv, and linux in general. Open source is an amazing solution to software development. Ubuntu, in general, rocks. This would all be so much harder if it were not for this new, beautiful, distribution of linux. Thank you so much to all the people that have created help files describing their experiences with Myth installations. I would not have been able to do it without you all. Ok, back to the additional modules.

Open a firefox browser and visit http://www.pcxperience.org/james/ivtv. Download the Video::Frequencies and Video::ivtv modules by clicking on the links. For each module, do the following: Unzip the file and extract the internal directory to the desktop (as done before). Move the directories into your pvr_firmware directory.

%mv /home/<your_user_name>/Desktop/Video* /home/<your_user_name>/Software/tv/pvr_firmware

Navigate to the firmware directory.

%cd /home/<your_user_name>/Software/tv/pvr_firmware

Navigate into the Video Directory.

%cd Video-Freq*

Use perl utility to create a makefile

%perl Makefile.PL

Now make the makefile you just made (get it?).

%make
%make install

Repeat for the Video::ivtv module

Use CPAN to install IniFiles. It takes a while to go through all the options. I selected default for most of them. You'll be fine.

%cpan -i Config::IniFiles

Navigate back to the ivtv driver directory

%cd /home/<your_user_name>/Software/tv/ivtv-0.4.0

Make and make install

%make
%make install

Restart your computer by selecting System->Logout->Restart. Open a terminal and become root user

%su
%depmod
%modprobe ivtv

Now check the output of modprobe.

%dmesg | less

The ivtv portion should have no errors. Restart your computer. If it didn't work, you might be using an ivtv version higher than 0.4.0. If that is the case, perform the following.

%mv /lib/modules/ivtv-fw-enc.bin /usr/lib/hotplug/firmware/
%mv /lib/modules/ivtv-fw-dec.bin /usr/lib/hotplug/firmware/
%ln -s /usr/lib/hotplug/firmware/ivtv-fw-dec.bin /usr/lib/hotplug/firmware/v4l-cx2341x-dec.fw
%cd /home/<user_name>/Software/tv/pvr_firmware/pvr_2* 
%cp HcwMakoA.ROM /usr/lib/hotplug/firmware/v4l-cx25840.fw
%cp HcwFalcn.rom /usr/lib/hotplug/firmware/v4l-cx2341x-enc.fw
%cd /home/<your_user_name>/Software/tv/ivtv-0.4.1
%cp v4l-cx2341x-init-mpeg.bin /usr/lib/hotplug/firmware

Restart the computer.

%depmod
%modprobe ivtv

Check again to see if there were any errors in the ivtv section. Switch to root user. Navigate to the ivtv directory.

%cd /home/<your_user_name>/Software/tv/ivtv-0.4.0

Navigate to the directory with ptune in it.

%cd ./utils/perl

Test the capture card with ptune.pl. Type '%perl ptune.pl' to see how to use it.

%perl ptune.pl -c 8

The above command assumes you have channel 8. I suggest testing several channels; do this by replacing the '8' in the above command with the appropriate output. If the output is something like: 'Ch.8: 181250 2900' then the card is working. If it worked, edit an aliases file. Perform the following.

%cp /etc/modprobe.d/aliases /etc/modprobe.d/aliases.orig
%gedit /etc/modprobe.d/aliases

Now find the following line:

  • 'alias char-major-81 videodev'

After that line, add the following line

  • 'alias char-major-81-0 ivtv'

An additional card could be added as 81-1

Check to see if the driver is working. As root, issue the following command.

%dd if=/dev/video0 of=/dev/video16

After a few seconds, push 'Control-C'. You should get an output that looks like this:

30696+49 records in
30720+0 records out

If you got this, then the drivers are working well. Note: /dev/video16 is the hardware decoder that comes with the Hauppauge pvr-350. If you don't have the 350, then you may not get any records out.

You've completed installation of the firmware.

Upgrade the Firmware to the Latest Verison

Upgrade the firmware to version 2.0.24.23035. Visit the ivtv website and download the driver of the above version www.ivtvdriver.org/index.php/Firmware. Unzip the file. Copy the HcwMakoA.ROM file to /lib/modules/ Copy the HcwFalcn.rom file to /lib/modules/ivtv-fw-enc.bin

%depmod
%modprobe ivtv

Then restart your computer.

MythTV Configuration

Create a username and password for a mythtv user in the sql database. if you're not the root user, switch to it.

%su

Then enter the following set of commands

%mysql -u root -p mysql
mysql> UPDATE user SET password=PASSWORD('mythtv')
WHERE user="mythtv";
mysql> FLUSH PRIVILEGES;
mysql> quit

Enter a password other than mythtvif you would like. Just remember the one you enter.

Finally, on to MythTV! Navigate to your home directory.

%cd /home/<your_user_uname>

Make a password for the mythtv user

%passwd mythtv

Enter in a password (I suggest making it the same password used for the sql database). Now you need to disable a security feature; remember to enable it again later.

%xhost +

You can enable it later by typing %xhost -. Change to the mythtv user.

%su mythtv

Enter Myth Setup

%mythtv-setup

For instructions on how to install MythTV, you can visit www.mythtv.org. I found great information on how to configure MythTV by visiting www.systm.com. They used KnoppMyth, but the Myth configuration issues they suggest are relevant. Note: It's important to run the myth tv setup as the mythtv user. Fill the listings of myth; I used information from the following website to figure out the following set of commands http://mythtv.org/pipermail/mythtv-users/2005-February/076574.html.

%mythfilldatabase

This takes a long time. Don't worry if you get some errors - some errors are ok. Myth will be the test of whether or not it worked out.

We will now start our first Myth session. As the mythtv user, start the myth backend.

%mythbackend -d

I also used the following website for informatoin on these commands, http://www.mythtv.org/docs/mythtv-HOWTO-singlehtml.html. The above command will start the myth daemon. Restart the computer System->Logout->Restart. Now start up myth!

%mythfrontend

Myth will tell you that it couldn't connect to the database and give you some options. Tell Myth the username and password of your mysql database you entered earlier in this tutorial.

You should be able to watch TV at this point. If you can't it's likely that you didn't setup myth properly. Please revisit mythtv-setup.

Setting up the Hauppauge Remote Control with LIRC

For this section, I referred to the following websites: http://ubuntuforums.org/showthread.php?t=30612&highlight=lirc, and http://www.abarbaccia.com/content/view/18/31/.

This section will explain how to install LIRC and get the Hauppauge remote control working. We need to install the Linux Kernel source code. First, we find the kernel version.

%uname -r

This yields something like 2.6.12-10-386. We will use the first three numbers.

%apt-get install linux-source-<kver>

where <kver> are the first three numbers. Now we need to extract the source we just downloaded and link it to the right directory.

%tar xvjf /usr/src/linux-source-*.tar.bz2 -c /usr/src/
%ln -s /usr/src/linux-source-<kver> /usr/src/linux
%ln /usr/src/linux /lib/modules/$(uname -r)/build
%cp /boot/config-$(uname -r) /usr/src/linux/.config
%cd /usr/src/linux
%make oldconfig
%make /include/linux/version.h
%make modules

The last command takes a LONG time. Relax, and get something to eat. You've been working hard.

Visit the LIRC homepage and download the latest LIRC software to your desktop http://www.lirc.org. Unzip the firmware using the Ubuntu unzip utility as discussed before and extract it to your desktop. Feel free to delete the zip file now. In your Software/tv/pvr_firmware directory, make a directory called remote_control

%cd ~/Software/tv/pvr_firmware
%mkdir remote_control

Move the lirc* directory to the remote control directory

%cd remote_control
%mv ~/Desktop/lirc* ./

Install Dialog

%apt-get install dialog

Move into the lirc directory

%cd lirc*

Run setup

%./setup.sh

Select Driver Configuration. Select TV Card. Select 'Hauppauge TV Card'. Choose 'Save Configuration and Run Configure'. Then, make and install.

%make
%make install

Note: If there are errors during the make or make install, then might try performing the following command.

%touch /usr/src/linux/Rules.make

I did not need that command, but others on the internet claim it was the key to their success. Now re-run make and make install. Then, install the lirc module.

%depmod
%modprobe lirc_i2c
%chmod 664 /dev/lircd
%lircd

We will now test the remote control using irw.

%irw

Point your control at your ir receiver and push a button (you did plug in the ir receiver that came with your card right? If not, shutdown your computer, plug it in, and start the computer again). The name of the button you just pushed should be displayed on the text screen. If it doesn't work, then there's something wrong.

We will now setup the remote control so that it will start whenever we turn on the computer. First, open up the modules file to be edited.

%vi /etc/modprobe.d/aliases

Add the following line above the 'ivtv' line that we added before.

'alias char-major-61 lirc_i2c'

Now we need to change permissions of lircd. First find out where lircd is.

%which lircd

This command will reveal a path. Enter that path into the following command

%chmod 555 /usr/local/sbin/lircd

Replace '/usr/local/sbin/lircd' with the path revealed by the 'which' command

Save your changes and exit the editor. Open up another important file.

%gedit /etc/udev/udev.rules

For the following information, I viewed the following website http://ubuntuforums.org/showthread.php?t=30612&page=2&highlight=lirc. Add the following line at the end of the file.

KERNEL=="lirc0", SYMLINK="lirc"

Need to download a script in order to get lirc to startup at boot time

%cd /home/mythtv/
%wget http://www.abarbaccia.com/mythtv/lirc

I did not create this script, and I don't know who did. If it was you, thank you VERY much.

%mv lirc /etc/init.d/lirc
%chmod 755 /etc/init.d/lirc
%update-rc.d lirc defaults 99

Restart the computer and login

%cd ~/Software/tv/pvr_firmware/remote_control/lirc*

Enter the irw command

%irw

Press some buttons on your remote control. If you get the right output, then it works. If not, something is wrong. Did you remember to plug in the ir receiver? Is your remote control supported?

Getting the remote control to work during Myth

%wget http://wilsonet.com/mythtv/lircrc-haupgrey-g3.txt
%mv lircrc-haupgrey-g3.txt /home/mythtv/.lircrc
%ln -s /home/mythtv/.lircrc /home/mythtv/.mythtv/lircrc

Restart the computer. Make sure to run the myth front end as the mythtv user or the remote control won't work. You may need to edit the .lircrc file. Do so by using gedit.

%cd /home/mythtv
%gedit .lircrc

Use the irw program in a separate terminal to know what the output from the remote control is called. For example, if the output of irw is the following: 0000000017b4 01 Forward Hauppauge_350 then that button of the remote control is called 'Forward'. This string goes in the 'button' field of the relevant section of the .lircrc file. Identify the proper button to be used by Mythtv by viewing the myth documentation at www.mythtv.org. For example, if you want the 'Forward' button of the remote control to be used to advance 1 second, then you would use the '>' button. '>' would go in the 'config' field of the relevant section of the .lircrc file. Continue editing the file to suit your own needs.

MythTV finishing touches

For much of the following information, I visited the following website https://wiki.ubuntu.com/MythTV?highlight=%28mythtv%29. Set up the backend so that it starts upon boot up

Do this by adding a line to the /etc/init.d/mythtv-backend file

%gedit /etc/init.d/mythtv-backend

Add the following line in the file

HOME=/home/mythtv

Note: Do not add the quotes

Set it up so that the mythtv user doesn't use screen savers. Sysem->Preferences->Sessions Click the Startup Programs Tab Click the 'Add' Button Enter in 'xterm s off' Set its order as 199

Set it up so that the front end starts up automatically when you login as mythtv. Click the 'Add' Button Enter in 'mythfrontend' Set its order as 200.

You now have a myth system installed on your computer. To start myth, restart the computer. Login with the 'mythtv' username. Enter in the password you created at the beginning of this tutorial; you're watching Myth!

Adding MythTV Icons

You may want station icons next to the channel numbers in your program guide. This is by no means necessary to use MythTV, but it's a neat addition. You may need to install xmltv in order to perform the following. Do so by using Synaptic Package Manager as described before. Now, we need to download a new perl script, execute it, and add the icons to MythTV.

%su root
%cd /home/mythtv
%wget http://cvs.mythtv.org/cgi-bin/viewcvs.cgi/*checkout*/mythtv/contrib/mkiconmap.pl
%perl mkiconmap.pl
%mythfilldatabase --import-icon-map iconmap.xml --update-icon-m

Feel free to delete the perl script when you've completed the above.

%rm /home/mythtv/mkiconmap.pl

Now, in your program guide, you should have station icon next to the channel numbers. Have fun!

Myth Plugins

Myth DVD

Myth DVD allows you to watch DVD movies using myth, or import the DVD video into myth and watch it at a later time directory from your computer. There are several prerequisites to using Myth DVD. Very relevant information for displaying multimedia in Ubuntu can be found at RestrictedFormats. Please review the legal aspects of viewing multimedia described on that page. I take no responsibility for your actions. Perform the following.

%apt-get install libdvdread3
%/usr/share/doc/libdvdread3/examples/install-css.sh

Now restart your computer. After this, try inputting a DVD into your computer. Totem should come up automatically (Ubuntu 5.10 has Totem as the movie player that automatically starts when a DVD is input into your system). If Totem doesn't start up, and you would like it to automatically, then follow System->Preferences->Removeable Media and select the multimedia tab. The command for viewing DVDs when disks are inserted is totem %d.

As long as I was installing the above, I found some other multimedia software that I wanted to install. apt-get install the following packages: flashplayer-mozilla, gftp, gstreamer0.8-plugins, gstreamer0.8-lame, gstreamer0.8-ffmpeg, mozilla-mplayer, and gnomebaker. In order to use Myth DVD, you must have first installed the plugin onto your computer. This is done using Synaptic Package Manager (described earlier in this document). If you haven't done it yet, first download Myth DVD (search in the myth* section of possible packages to download). Once you have it downloaded onto your computer, you need to give the mythTV user permission to use the CD and DVD devices. You can do this by executing the following set of instructions as root user.

Open the 'System' menu of Ubuntu. Follow this Path:

System->Administration->Users and Groups

Make sure the checkbox at the bottom of the window next to the words 'Show all users and groups' is checked. Now scroll down through the users until you find the mythtv user. Click once (select) the mythtv user; this should sensitize a properties button on the right side of the window. Click the properties button. Select the 'User Privelges' tab of the properties window. Here you are presented with options to allow the mythtv user to perform. I allow the mythtv user to use audio devices, the cdrom, the floppy drive, the video acceleration, and the modem. (I allow mythtv to use the modem in preparation of an additional feature. I'm told that mythtv can act as a caller ID, displaying the phone number calling in directly onto the television. I'm not positive this feature exists, but I hope it does, and I look forward to realizing that feature. I will update this HowTo with more information as I discover it.)

It is also important to disable automount for the mythtv user, or else you will not be able to eject the DVD after you are done using it with Myth. To disable automount, as the mythtv user, visit the System->Preferences->Removeable Drives and Media portion of Ubuntu (note, for this portion you must login as the mythtv user). Uncheck the checkbox next to the 'Mount removeable media when inserted' option. Automount has now been disabled and you should be able to eject the DVD with myth running by pressing the eject button on your drive.

We want to download some additional codecs. Again, refer to the laws of your region to make sure that this is legal. Using firefox, or your favorite browser, visit

It is important to exit these windows by pressing the 'Ok' buttons. This will save the changes that you've made. You should be good to go. Start watching DVDs with your newly upgraded Myth Tv system! If it doesn't work, restart your system and try it again. If it still doesn't work, are you sure you have a DVD ROM and not a CD ROM?

So now you can watch a DVD. But what about ripping a DVD (copying the film from the optical disk to the computer). We will figure out how to do that now. Unfortunately, the mythDVD we downloaded doesn't come with the myth transcoding daemon compiled in. A very generous developer created an alternate mythdvd. As the root user, perform the following:

%wget http://www.abarbaccia.com/mythdvd_0.18.1-4_i386.deb
%dpkg -i mythdvd*

Now we will need several pieces of software in order to transcode the DVD. In order to identify the latest package available, perform the following.

%apt-cache search <package_of_interest>

Once you've identified the package of interest, use apt-get to download and install the package. According to the mythDVD README file, the following packages must be installed: libdvdread, nasm, mjpegtools, xvid, liba52, libfame, transcode, libdvdcss, w32codecs, and (if you later want to be able to view the DVD menu instead of just having the video play automatically) xine. An example install instruction is listed below.

%apt-get install transcode

Make a directory to hold movie posters

%mkdir /usr/share/mythtv/mythvideo/posters

Make sure to change the directory to hold the movie posters to this directory in the myth video settings. Now make a directory to hold the videos.

%mkdir /usr/share/mythtv/mythvideo/dvds

Change the settings in MythTV to this directory to hold the videos Change the permissions of the directories so that the mythtv user can access them.

%chmod 677 /usr/share/mythtv/mythvideo/dvds /usr/share/mythtv/mythvideo/posters

Restart your computer. Start the myth transcoding daemon.

%mtd -d

Try ripping a dvd, it should work out for you. If you have problems, check the mtd.log file in the following directory /var/lib/mythdvd/temp/. To set it up so that the myth transcoding daemon starts automatically, perform the following.

System->Preferences->Sessions

Add the following command to the list of startup programs; give it a priority of 198.

mtd -d

The myth transcoding daemon should start automatically when you reboot the computer.

Note: VCD playback is a much more difficult task, and will not be covered in this HowTo (basically because I have no idea what vcd is or how to use it). I suggest reading the README file included with the mythdvd plugin (you will need to download the plugin directly from www.mythtv.org in order to view this readme file). Also note that, in some countries (The U.S. I believe) it may be illegal for software to de-encrypt DVDs without paying licensing fees; so by using the software above, you may be breaking the law. I take no responsibility for your actions, and I do not offer legal advice; please speak with your attorney if you have further questions.

To watch a ripped DVD with Myth, after the DVD has been ripped, visit the Utilities/Setup->Video Manager section of Myth. Push up and down until the DVD you just ripped is highlighted, and press 'i' for info. Select the 'Search IMDB' function. If the databasase is searched properly, a cover of the DVD you just ripped should be displayed in your 'Videos' section, and you should be able to watch it.

Using Xine

It is advantageous to use Xine to view DVDs because, unlike the default mplayer that MythTV is configured to use, Xine allows you to use the Menu of the DVD. We will now configure Myth to use Xine to view the DVDs and videos.

Similar to before, we will need several pieces of software required by Xine. (Note: Ubuntu comes with a few of these installed, but it's worth it to make sure you have them. Additionally note that Ubuntu comes with Xine installed.) In order to identify the latest package available, perform the following.

%apt-cache search <package_of_interest>

Once you've identified the package of interest, use apt-get to download and install the package. According to the Xine homepage http://xinehq.de/index.php/about, the following packages must be installed: ffmpeg, liba52, libmpeg2, libmad, and libfaad, FAAD2, libxinelc2, and libxine-dev. Install these packages (or the closest things you could find to them) and then go on. Note that Ubuntu already comes with xine installed on it. Note: If you have problems with your xine, either see a doctor or run the following command

%xine-check

Both procedures may reveal some information you were unaware of. Try running xine with Ubuntu. Place a DVD in your DVD drive. Select Applications->Sound and Video->Xine. Right click on the Xine window that comes up; select Playlist->Get From->DVD. Watch your DVD. If it doesn't work properly, try a few different DVDs. I had problems with one of mine; it turned out that the DVD was using an obscure audio encoding not yet implemented in linux. At this point, I was watching 'As Good As It Gets' with Xine.

At this point, there was some jerkiness with the video I was watching. By typing the following at the command line, the problem was identified.

% xine -pfhqd --no-splash --no-logo --verbose=1

By viewing the terminal, I saw the following message posted several times throughout the time I was watching the video: video_out: throwing away image ....

By performing the % xine-check command, I found that DMA was not set. In order to set this, we must issue the following commands as root.

% sync
% hdparm -d1 -X34 /dev/hdd

Note that the above is a capital 'X' character. Again, be sure to replace /dev/hdd in the above command with the path to your dvd device (i.e. it might be /dev/dvd). Run xine again and see if the jerkiness is gone. If it is not, or if you want even better performance, you might want to try using Ultra-DMA instead of just regular DMA. Do this by typing the following command.

%hdparm -d1 -X66 /dev/hdd

If the jerkiness is still not gone, you might find a solution to your problem at the following websites: http://xinehq.de/index.php/faq#SPEEDUP, or http://xinehq.de/index.php/faq. If the above command works for you, or if you find another command that works for you, you'll need the above commands to be run at startup as root.

As root, edit the /etc/init.d/bootmisc.sh file.

%su
%gedit /etc/init.d/bootmisc.sh

Add the 'hdparm -d1 -X66 /dev/hdd' line that works for you right above the last exit line of the file. The last line of the file should look something like ': exit 0'.

You can now use xine without without problems! Try running it from the command line (make sure a DVD is in your player).

xine -pfhqd -V xv --no-splash

Did it work? If not, review the past instructions for something has gone wrong.

Setup Myth to use Xine for DVDs

We will setup myth to use xine instead of mplayer to view DVDs. with the mythfrontend running, select Utilities/Setup->Setup->Media Settings->DVD Settings->Play Settings. Currently, there is the following command listed there as the dvd player command; this is the command we will change.

mplayer dvd:// -dvd-device %d -fs -zoom -vo xv

Replace the above command with the following command.

xine -pfhqd -V xv --no-splash --no-logo

The -V option above tells xine what driver to use to display your DVD. The xv driver may not work for you. Review the man page of xine and its help page for more details.

%man xine
%xine --help

You should now be using xine to watch DVDs instead of mplayer.

Setup Myth to use Xine for Videos

We will setup myth to use xine instead of mplayer to view DVDs. with the mythfrontend running, select Utilities/Setup->Setup->Media Settings->Video Settings->Player Settings. Currently, there is the following command listed there as the dvd player command; this is the command we will change.

mplayer -fs -zoom -quiet -vo xv %s

Replace the above command with the following command.

xine -pfhq -V xv --no-splash --no-logo

The -V option above tells xine what driver to use to display your DVD. The xv driver may not work for you. Review the man page of xine and its help page for more details.

%man xine
%xine --help

You can now use xine to watch videos instead of mplayer.

Have Xine Return Focus / Control to Myth

Note that when you quit xine (by pressing the right button with the mouse and scrolling down to quit) control is not given back to the myth front end, and you must Alt-tab to return control to myth front end. We will now remedy this problem so that when you exit out of xine, control is returned to the myth front end. The information presented to accomplish this was attained from the following website: http://www.abarbaccia.com/content/view/22/36/.

Download the xine-ui source from the xine website http://xinehq.de. Unzip the utility and extract it to your desktop. As root user, make the following directory.

% mkdir /home/<main_user_name>/Software/xine/

Move the extracted xine file to the new directory

% cd /home/<main_user_name>/Software/xine/
% mv /home/<user_name>/Desktop/xine* ./

Alter a line from the ./src/xitk/event.c file.

% gedit /home/<main_user_name>/Software/xine/src/xitk/event.c

Remove the following line from the file.

'XCloseDisplay(gGui->display)'

Configure the new xine-gui.

% ./configure

Make and install the new xine-gui. Make sure to run these commands as root.

% make
% make install

Now watch a DVD and exit from it. Focus should be restored to the mythtv application. Smile :)

Setup Remote Control (LIRC) to work with Xine

Note that since the keyboard commands are different for xine than they are for myth, your remote control doesn't behave as you'd expect. We will now rememdy this problem. Note that you can download a .lircrc file to be used with MythTV, Mplayer, and Xine by copying the text located at ExampleLircrcFile4MythOnUbuntu. Copy the text located there and place it in a file called '.lircrc' within the user directory of any user that would like to use the remote control.

If you prefer to configure the file yourself, though, please continue with this procedure.

Have xine generate a skeleton lircrc file by typing the following at the command line.

% xine --keymap=lirc > xineSkeletonLirc.txt

This generates a skeleton file to be used as the .lircrc file. Copy the contents of this file into your existing .lircrc file. Remove any portions relevant to xine that exist in your current file other than what you just added. As before, use the irw software, located in /home/<user_name>/Software/tv/ivtv*/utils, to find the proper keys for each action you desire.

% su
% cd /home/<user_name>/Software/tv/ivtv*/utils
% irw

An example element of a 'complete' .lircrc file is shown below.

# quit the program
begin
        remote = Hauppauge_350
        button = Back/Exit
        prog   = xine
        repeat = 3
        config = Quit
end

Websites used to install Myth:

IVTV

Add Station Icons to Program Guide

Myth Daemon start automatically

Remote Control instructions

http://www.gossamer-threads.com/lists/mythtv/users/161275

Myth DVD

CategoryDocumentation CategoryCleanup

InstallMythOnUbuntu (last edited 2009-07-13 13:28:27 by 66)