特殊:Badtitle/NS100:MythTV Breezy:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/MythTV_Breezy}} {{Languages|UbuntuHelp:MythTV_Breezy}} <pre><nowiki> Note: This guide is part of the MythTV Community Documentation. If this is... |
小无编辑摘要 |
||
(未显示同一用户的4个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/MythTV_Breezy}} | {{From|https://help.ubuntu.com/community/MythTV_Breezy}} | ||
{{Languages|UbuntuHelp:MythTV_Breezy}} | {{Languages|UbuntuHelp:MythTV_Breezy}} | ||
<pre><nowiki> | <pre><nowiki> | ||
Note: This guide is part of the MythTV Community Documentation. If this is the first page you are visiting, you should visit the main page instead to start. | Note: This guide is part of the MythTV Community Documentation. If this is the first page you are visiting, you should visit the main page instead to start. | ||
</nowiki></pre> | </nowiki></pre> | ||
[ | [[UbuntuHelp:MythTV|[[UbuntuHelp:MythTV|MythTV]] Community Documentation Main Page]] | ||
== MythTV on 5.10 Breezy == | == MythTV on 5.10 Breezy == | ||
=== Intro === | === Intro === | ||
[http://www.mythtv.org Mythtv] is a great PVR application and more! | [http://www.mythtv.org Mythtv] is a great PVR application and more! | ||
See: [http://www.mythtv.org/docs/mythtv-HOWTO-1.html#ss1.1 What is MythTV] | See: [http://www.mythtv.org/docs/mythtv-HOWTO-1.html#ss1.1 What is MythTV] | ||
This is an attempt at a comprehensive guide to getting a mythtv setup running from scratch. Right now, since all I have is a PVR-500, that's all I can document, but this is a wiki, so feel free to add instructions for other cards. For further instructions on how to install [[UbuntuHelp:MythTV|MythTV]], visit [[UbuntuHelp:InstallMythOnUbuntu|InstallMythOnUbuntu]]. | |||
This is an attempt at a comprehensive guide to getting a mythtv setup running from scratch. Right now, since all I have is a PVR-500, that's all I can document, but this is a wiki, so feel free to add instructions for other cards. For further instructions on how to install MythTV, visit InstallMythOnUbuntu. | |||
When this is written, October 2005, version 0.18.1 is the latest, and is available in Multiverse. | When this is written, October 2005, version 0.18.1 is the latest, and is available in Multiverse. | ||
'''''This information applies to Ubuntu 5.10 (Breezy Badger) only!''''' | '''''This information applies to Ubuntu 5.10 (Breezy Badger) only!''''' | ||
=== Install === | === Install === | ||
==== Assumptions ==== | ==== Assumptions ==== | ||
* We'll be doing a 'server' install, as this is a relatively minimal set of packages. | * We'll be doing a 'server' install, as this is a relatively minimal set of packages. | ||
* For mythtv, you'll be doing a lot of IO, and will probably want a better-performing filesystem than the default ext3. I recommend JFS, and will be using that in this tutorial. | * For mythtv, you'll be doing a lot of IO, and will probably want a better-performing filesystem than the default ext3. I recommend JFS, and will be using that in this tutorial. | ||
* You'll also want to use LVM probably, so that if you start to run out of space, you can simply add new drives to your existing logical volumes. I will be explaining that in this tutorial as well. | * You'll also want to use LVM probably, so that if you start to run out of space, you can simply add new drives to your existing logical volumes. I will be explaining that in this tutorial as well. | ||
* This tutorial assumes you're installing from the [http://www.ubuntu.com/download Breezy Install CD]. | * This tutorial assumes you're installing from the [http://www.ubuntu.com/download Breezy Install CD]. | ||
==== Steps ==== | ==== Steps ==== | ||
<ol><li>At the install prompt, type `server jfs`. This will ensure JFS is in the list of supported filesystems in the partitioner, and that only a minimal set of packages will be installed by default. | |||
</li><li>In the partitioner, do not accept the default presented; go into the partitioner instead. Set up your partitions thusly:</li></ol> | |||
{|border="1" cellspacing="0" | {|border="1" cellspacing="0" | ||
| Partition Number || Size || Type || Mount Point | | Partition Number || Size || Type || Mount Point | ||
第41行: | 第31行: | ||
| 3 || Everything Left || lvm || none | | 3 || Everything Left || lvm || none | ||
|} | |} | ||
If you have any other drives you want to use, set them all up as LVM physical volumes. | If you have any other drives you want to use, set them all up as LVM physical volumes. | ||
<ol><li>#3 Select the "Set up LVM" option, and define a volume group named 'mythvg' containing all available physical volumes. | |||
</li><li>Format it as JFS and mount it on `/video`. This is where your mythtv files will go. | |||
</li><li>Finish the install as normal.</li></ol> | |||
=== Install Packages === | === Install Packages === | ||
You need to install the following packages: | You need to install the following packages: | ||
* linux-686 (or -386, or whatever is appropriate for your CPU) | * linux-686 (or -386, or whatever is appropriate for your CPU) | ||
* linux-headers-686 (again, adjust as appropriate | * linux-headers-686 (again, adjust as appropriate | ||
第60行: | 第44行: | ||
* build-essential | * build-essential | ||
* x-window-system-core | * x-window-system-core | ||
You'll probably want to reboot now, as you likely just installed a new kernel. | You'll probably want to reboot now, as you likely just installed a new kernel. | ||
=== Install Capture Card Drivers === | === Install Capture Card Drivers === | ||
Now, we need to install the drivers for our video capture cards. I have a [http://www.hauppauge.com/ Hauppauge] [http://hauppauge.com/pages/products/data_pvr500mce.html PVR-500], so I downloaded the latest drivers from the [http://www.ivtvdriver.org/ IVTV] project. | Now, we need to install the drivers for our video capture cards. I have a [http://www.hauppauge.com/ Hauppauge] [http://hauppauge.com/pages/products/data_pvr500mce.html PVR-500], so I downloaded the latest drivers from the [http://www.ivtvdriver.org/ IVTV] project. | ||
<ol><li>Download the latest [http://www.ivtvdriver.org/index.php/Download driver], and unpack it in your home directory. Note that there are now two branches of drivers: 0.4.x is for kernels <= 2.6.15, whereas 0.6.x is for kernels 2.6.16 and later. Get the right one for your kernel or it won't work(type 'sudo uname -r' to get your kernelversion) | |||
</li><li>cd to the driver's <code>driver</code> directory (ex: `ivtv-0.4.0/driver` | |||
</li><li>make && sudo make install</li></ol> | |||
At this point, you will see some warning message to the effect that the ivtv driver provides some modules that are already in the kernel. DON'T PANIC. This is okay. If you read them carefully, you will see they have instructions for fixing the problem built in. Just cut and paste the 'mv' commands, and run them with sudo. | At this point, you will see some warning message to the effect that the ivtv driver provides some modules that are already in the kernel. DON'T PANIC. This is okay. If you read them carefully, you will see they have instructions for fixing the problem built in. Just cut and paste the 'mv' commands, and run them with sudo. | ||
1.#4 (Assuming you have a 2.6.12 kernel): ivtv will install its drivers in <code>/lib/modules/2.6.12/ivtv</code> You want them in { { {/lib/modules/`uname -r`} } } so: <pre><nowiki> | |||
<pre><nowiki> | |||
sudo cp -R /lib/modules/2.6.12/ivtv /lib/modules/`uname -r` | sudo cp -R /lib/modules/2.6.12/ivtv /lib/modules/`uname -r` | ||
</nowiki></pre> | </nowiki></pre> | ||
1.#5 Create a file named `/etc/modprobe.d/ivtv` with the following contents: | |||
<pre><nowiki> | <pre><nowiki> | ||
alias char-major-81 videodev | alias char-major-81 videodev | ||
第84行: | 第61行: | ||
alias char-major-81-1 ivtv | alias char-major-81-1 ivtv | ||
</nowiki></pre> | </nowiki></pre> | ||
Note: this is only appropriate for ivtv drivers with a PVR-500. You should read read the [http://www.ivtvdriver.org/index.php/Howto IVTV HOWTO] for more details on doing this with a different card. Especially the page about installing the firmware of your card is important: [http://www.ivtvdriver.org/index.php/Firmware]. Note that the directions on this page currently doesn't aply to Dapper Drake because Dapper doesn't use Hotplug. Udev is used instead. | Note: this is only appropriate for ivtv drivers with a PVR-500. You should read read the [http://www.ivtvdriver.org/index.php/Howto IVTV HOWTO] for more details on doing this with a different card. Especially the page about installing the firmware of your card is important: [http://www.ivtvdriver.org/index.php/Firmware]. Note that the directions on this page currently doesn't aply to Dapper Drake because Dapper doesn't use Hotplug. Udev is used instead. | ||
1.#6 `sudo depmod -a; sudo modprobe ivtv` | |||
At this point, you should check the output of `dmesg` to make sure the driver was successfully loaded. Also, try to read video directly from the card to make sure it works: | At this point, you should check the output of `dmesg` to make sure the driver was successfully loaded. Also, try to read video directly from the card to make sure it works: | ||
1.#7 <pre><nowiki> | |||
<pre><nowiki> | |||
sudo dd if=/dev/video0 of=/tmp/tuner0.mpg bs=1M count=1 | sudo dd if=/dev/video0 of=/tmp/tuner0.mpg bs=1M count=1 | ||
sudo dd if=/dev/video1 of=/tmp/tuner1.mpg bs=1M count=1 | sudo dd if=/dev/video1 of=/tmp/tuner1.mpg bs=1M count=1 | ||
</nowiki></pre> | </nowiki></pre> | ||
# copy the /tmp/tuner*.mpg files to a machine with X running, and play them to make sure they work. | # copy the /tmp/tuner*.mpg files to a machine with X running, and play them to make sure they work. | ||
Hooray, you've done it! Now all that's left is to | Hooray, you've done it! Now all that's left is to | ||
=== Set up X to display on the TV-Out of an nVidia card === | === Set up X to display on the TV-Out of an nVidia card === | ||
<ol><li>open /etc/X11/xorg.conf in your favourite editor | |||
</li><li>Search for Driver "nv" and replace "nv" with "nvidia" | |||
</li><li>Add the following lines immediately after that: <pre><nowiki> | |||
<pre><nowiki> | |||
Option "TVStandard" "NTSC-M" | Option "TVStandard" "NTSC-M" | ||
Option "ConnectedMonitor" "TV" | Option "ConnectedMonitor" "TV" | ||
</nowiki></pre> (substitute "NTSC-M" as appropriate to your locale) | </nowiki></pre> (substitute "NTSC-M" as appropriate to your locale) | ||
</li><li>Set the VertRefresh for the monitor to be 60 (in the US; probably 50 in PAL-land)</li></ol> | |||
You will want to test this by creating a `~/.xinitrc` with one line in it: | You will want to test this by creating a `~/.xinitrc` with one line in it: <pre><nowiki> | ||
<pre><nowiki> | |||
xterm | xterm | ||
</nowiki></pre> and running `startx`. | </nowiki></pre> and running `startx`. | ||
Now it's time for the | Now it's time for the | ||
=== Final housekeeping steps === | === Final housekeeping steps === | ||
You're almost done! Don't lose hope! | You're almost done! Don't lose hope! | ||
<ol><li>Add the line `HOME=/home/mythtv` to `/etc/init.d/mythtv-backend`. | |||
</li><li>Run `sudo /etc/init.d/mythtv-backend start` | |||
</li><li>set the `mythtv` user's password (this might not be necessary): <pre><nowiki> | |||
<pre><nowiki> | |||
sudo passwd mythtv | sudo passwd mythtv | ||
</nowiki></pre> | </nowiki></pre> | ||
</li><li>Log in as the `mythtv` user, and create a `~/.xinitrc` file with the contents: <pre><nowiki> | |||
<pre><nowiki> | |||
xset s off | xset s off | ||
mythtv-setup | mythtv-setup | ||
</nowiki></pre> | </nowiki></pre> | ||
</li><li>run `startx` and follow the [http://mythtv.org/docs/mythtv-HOWTO-9.html#ss9.1 MythTV Docs] on setting up your system. Note: For the case of a PVR-500, when you set up the Capture Devices, you will want to set up /dev/video0 and /dev/video1 as both using Tuner 0. That's because they're really two separate PVR-150 cards essentially "glued" together on one PCI card, instead of one card with two tuners. | |||
</li><li>[ as your main account ] run: `sudo /etc/cron.daily/mythtv-backend` | |||
</li><li>Replace `mythtv-setup` in `mythtv`'s `~/.xinitrc` with `mythtv-frontend` | |||
</li><li>run `startx` as the `mythtv` user. | |||
</li><li>Enjoy!</li></ol> | |||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年12月8日 (六) 09:47的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/MythTV_Breezy }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/af | • {{#if: UbuntuHelp:MythTV_Breezy|Afrikaans| [[::MythTV Breezy/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/ar | • {{#if: UbuntuHelp:MythTV_Breezy|العربية| [[::MythTV Breezy/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/az | • {{#if: UbuntuHelp:MythTV_Breezy|azərbaycanca| [[::MythTV Breezy/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/bcc | • {{#if: UbuntuHelp:MythTV_Breezy|جهلسری بلوچی| [[::MythTV Breezy/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/bg | • {{#if: UbuntuHelp:MythTV_Breezy|български| [[::MythTV Breezy/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/br | • {{#if: UbuntuHelp:MythTV_Breezy|brezhoneg| [[::MythTV Breezy/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/ca | • {{#if: UbuntuHelp:MythTV_Breezy|català| [[::MythTV Breezy/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/cs | • {{#if: UbuntuHelp:MythTV_Breezy|čeština| [[::MythTV Breezy/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/de | • {{#if: UbuntuHelp:MythTV_Breezy|Deutsch| [[::MythTV Breezy/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/el | • {{#if: UbuntuHelp:MythTV_Breezy|Ελληνικά| [[::MythTV Breezy/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/es | • {{#if: UbuntuHelp:MythTV_Breezy|español| [[::MythTV Breezy/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/fa | • {{#if: UbuntuHelp:MythTV_Breezy|فارسی| [[::MythTV Breezy/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/fi | • {{#if: UbuntuHelp:MythTV_Breezy|suomi| [[::MythTV Breezy/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/fr | • {{#if: UbuntuHelp:MythTV_Breezy|français| [[::MythTV Breezy/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/gu | • {{#if: UbuntuHelp:MythTV_Breezy|ગુજરાતી| [[::MythTV Breezy/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/he | • {{#if: UbuntuHelp:MythTV_Breezy|עברית| [[::MythTV Breezy/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/hu | • {{#if: UbuntuHelp:MythTV_Breezy|magyar| [[::MythTV Breezy/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/id | • {{#if: UbuntuHelp:MythTV_Breezy|Bahasa Indonesia| [[::MythTV Breezy/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/it | • {{#if: UbuntuHelp:MythTV_Breezy|italiano| [[::MythTV Breezy/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/ja | • {{#if: UbuntuHelp:MythTV_Breezy|日本語| [[::MythTV Breezy/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/ko | • {{#if: UbuntuHelp:MythTV_Breezy|한국어| [[::MythTV Breezy/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/ksh | • {{#if: UbuntuHelp:MythTV_Breezy|Ripoarisch| [[::MythTV Breezy/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/mr | • {{#if: UbuntuHelp:MythTV_Breezy|मराठी| [[::MythTV Breezy/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/ms | • {{#if: UbuntuHelp:MythTV_Breezy|Bahasa Melayu| [[::MythTV Breezy/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/nl | • {{#if: UbuntuHelp:MythTV_Breezy|Nederlands| [[::MythTV Breezy/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/no | • {{#if: UbuntuHelp:MythTV_Breezy|norsk| [[::MythTV Breezy/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/oc | • {{#if: UbuntuHelp:MythTV_Breezy|occitan| [[::MythTV Breezy/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/pl | • {{#if: UbuntuHelp:MythTV_Breezy|polski| [[::MythTV Breezy/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/pt | • {{#if: UbuntuHelp:MythTV_Breezy|português| [[::MythTV Breezy/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/ro | • {{#if: UbuntuHelp:MythTV_Breezy|română| [[::MythTV Breezy/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/ru | • {{#if: UbuntuHelp:MythTV_Breezy|русский| [[::MythTV Breezy/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/si | • {{#if: UbuntuHelp:MythTV_Breezy|සිංහල| [[::MythTV Breezy/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/sq | • {{#if: UbuntuHelp:MythTV_Breezy|shqip| [[::MythTV Breezy/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/sr | • {{#if: UbuntuHelp:MythTV_Breezy|српски / srpski| [[::MythTV Breezy/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/sv | • {{#if: UbuntuHelp:MythTV_Breezy|svenska| [[::MythTV Breezy/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/th | • {{#if: UbuntuHelp:MythTV_Breezy|ไทย| [[::MythTV Breezy/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/tr | • {{#if: UbuntuHelp:MythTV_Breezy|Türkçe| [[::MythTV Breezy/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/vi | • {{#if: UbuntuHelp:MythTV_Breezy|Tiếng Việt| [[::MythTV Breezy/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/yue | • {{#if: UbuntuHelp:MythTV_Breezy|粵語| [[::MythTV Breezy/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/zh | • {{#if: UbuntuHelp:MythTV_Breezy|中文| [[::MythTV Breezy/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/zh-hans | • {{#if: UbuntuHelp:MythTV_Breezy|中文(简体)| [[::MythTV Breezy/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythTV_Breezy | UbuntuHelp:MythTV_Breezy | {{#if: | :}}MythTV Breezy}}/zh-hant | • {{#if: UbuntuHelp:MythTV_Breezy|中文(繁體)| [[::MythTV Breezy/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:MythTV_Breezy|:MythTV Breezy|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :MythTV Breezy/zh | | {{#ifexist: MythTV Breezy/zh | | {{#ifeq: {{#titleparts:MythTV Breezy|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:MythTV Breezy|1|-1|}} | zh | | }}
Note: This guide is part of the MythTV Community Documentation. If this is the first page you are visiting, you should visit the main page instead to start.
[[UbuntuHelp:MythTV|MythTV Community Documentation Main Page]]
MythTV on 5.10 Breezy
Intro
Mythtv is a great PVR application and more! See: What is MythTV This is an attempt at a comprehensive guide to getting a mythtv setup running from scratch. Right now, since all I have is a PVR-500, that's all I can document, but this is a wiki, so feel free to add instructions for other cards. For further instructions on how to install MythTV, visit InstallMythOnUbuntu. When this is written, October 2005, version 0.18.1 is the latest, and is available in Multiverse. This information applies to Ubuntu 5.10 (Breezy Badger) only!
Install
Assumptions
- We'll be doing a 'server' install, as this is a relatively minimal set of packages.
- For mythtv, you'll be doing a lot of IO, and will probably want a better-performing filesystem than the default ext3. I recommend JFS, and will be using that in this tutorial.
- You'll also want to use LVM probably, so that if you start to run out of space, you can simply add new drives to your existing logical volumes. I will be explaining that in this tutorial as well.
- This tutorial assumes you're installing from the Breezy Install CD.
Steps
- At the install prompt, type `server jfs`. This will ensure JFS is in the list of supported filesystems in the partitioner, and that only a minimal set of packages will be installed by default.
- In the partitioner, do not accept the default presented; go into the partitioner instead. Set up your partitions thusly:
Partition Number | Size | Type | Mount Point |
1 | 5G | ext3 | / |
2 | 1.5G | swap | none |
3 | Everything Left | lvm | none |
If you have any other drives you want to use, set them all up as LVM physical volumes.
- #3 Select the "Set up LVM" option, and define a volume group named 'mythvg' containing all available physical volumes.
- Format it as JFS and mount it on `/video`. This is where your mythtv files will go.
- Finish the install as normal.
Install Packages
You need to install the following packages:
- linux-686 (or -386, or whatever is appropriate for your CPU)
- linux-headers-686 (again, adjust as appropriate
- nvidia-glx (If you have an ATI card, install xorg-driver-fglrx)
- mythtv
- build-essential
- x-window-system-core
You'll probably want to reboot now, as you likely just installed a new kernel.
Install Capture Card Drivers
Now, we need to install the drivers for our video capture cards. I have a Hauppauge PVR-500, so I downloaded the latest drivers from the IVTV project.
- Download the latest driver, and unpack it in your home directory. Note that there are now two branches of drivers: 0.4.x is for kernels <= 2.6.15, whereas 0.6.x is for kernels 2.6.16 and later. Get the right one for your kernel or it won't work(type 'sudo uname -r' to get your kernelversion)
- cd to the driver's
driver
directory (ex: `ivtv-0.4.0/driver` - make && sudo make install
At this point, you will see some warning message to the effect that the ivtv driver provides some modules that are already in the kernel. DON'T PANIC. This is okay. If you read them carefully, you will see they have instructions for fixing the problem built in. Just cut and paste the 'mv' commands, and run them with sudo.
1.#4 (Assuming you have a 2.6.12 kernel): ivtv will install its drivers in /lib/modules/2.6.12/ivtv
You want them in { { {/lib/modules/`uname -r`} } } so:
sudo cp -R /lib/modules/2.6.12/ivtv /lib/modules/`uname -r`
1.#5 Create a file named `/etc/modprobe.d/ivtv` with the following contents:
alias char-major-81 videodev alias char-major-81-0 ivtv alias char-major-81-1 ivtv
Note: this is only appropriate for ivtv drivers with a PVR-500. You should read read the IVTV HOWTO for more details on doing this with a different card. Especially the page about installing the firmware of your card is important: [1]. Note that the directions on this page currently doesn't aply to Dapper Drake because Dapper doesn't use Hotplug. Udev is used instead. 1.#6 `sudo depmod -a; sudo modprobe ivtv` At this point, you should check the output of `dmesg` to make sure the driver was successfully loaded. Also, try to read video directly from the card to make sure it works:
1.#7
sudo dd if=/dev/video0 of=/tmp/tuner0.mpg bs=1M count=1 sudo dd if=/dev/video1 of=/tmp/tuner1.mpg bs=1M count=1
- copy the /tmp/tuner*.mpg files to a machine with X running, and play them to make sure they work.
Hooray, you've done it! Now all that's left is to
Set up X to display on the TV-Out of an nVidia card
- open /etc/X11/xorg.conf in your favourite editor
- Search for Driver "nv" and replace "nv" with "nvidia"
- Add the following lines immediately after that:
Option "TVStandard" "NTSC-M" Option "ConnectedMonitor" "TV"
(substitute "NTSC-M" as appropriate to your locale) - Set the VertRefresh for the monitor to be 60 (in the US; probably 50 in PAL-land)
You will want to test this by creating a `~/.xinitrc` with one line in it:
xterm
and running `startx`.
Now it's time for the
Final housekeeping steps
You're almost done! Don't lose hope!
- Add the line `HOME=/home/mythtv` to `/etc/init.d/mythtv-backend`.
- Run `sudo /etc/init.d/mythtv-backend start`
- set the `mythtv` user's password (this might not be necessary):
sudo passwd mythtv
- Log in as the `mythtv` user, and create a `~/.xinitrc` file with the contents:
xset s off mythtv-setup
- run `startx` and follow the MythTV Docs on setting up your system. Note: For the case of a PVR-500, when you set up the Capture Devices, you will want to set up /dev/video0 and /dev/video1 as both using Tuner 0. That's because they're really two separate PVR-150 cards essentially "glued" together on one PCI card, instead of one card with two tuners.
- [ as your main account ] run: `sudo /etc/cron.daily/mythtv-backend`
- Replace `mythtv-setup` in `mythtv`'s `~/.xinitrc` with `mythtv-frontend`
- run `startx` as the `mythtv` user.
- Enjoy!