The purpose of this install guide is to install MythTV on Ubuntu Edgy, using a Hauppauge PVR-150. Some linked docs here may help you, but this guide is to achieve that purpose with minimal work. Most of the other Edgy tutorials leave off a significant amount of information, and are specifically only usable with cards compatible with DVB (for the nova-T line of cards), but the Hauppauge PVR-xxx line is not compatible at the moment. This is not for the Feint of Mind ™, so your grandma will probably have some difficulty in this. You should have a medium amount of Linux experience before trying this, but do not fret. Excluding Edgy’s install time, I can run through this entire install in about 20 minutes.
PLEASE, READ everything in a section when doing it. SKIMMING will often leave you wondering what is going on, and you’ll learn nothing (which is neither the goal of this guide, nor open source). I also get a bunch of emails from people who missed a key detail simply because they didn’t read. And definitely, COPY and PASTE text from your browser window to your terminal, or you will get typos.
..:: Background
MythTV is Tivo and Windows Media Center on steroids. The most notable features include
- a TV recorder
- an optional web based recording manager (that is awesome)
- automatic commercial skipping for recorded TV
- no playback restrictions (WinMCE disables playback for what content creators deem is “premium” content after 3 days)
- no monthly fees
- allows easy expansion (just add network storage or another internal hard drive)
- a music manager
- a DVD player
- a video file player (that plays every non-DRM’d codec you’ve ever seen)
I love MythTV. Once you have a DVR, regular television is unwatchable. Annoying commercials (that raise the volume 30-50%) are no longer an issue. Rewinding, pausing, and fast forwarding regular TV is spectacular.
..:: My Experiences
This is a little bit of my experience with Ubuntu and MythTV. If you don’t care about this (and most of you shouldn’t as it’s merely my professional opinion on the version changes), just skip to the next section. Basically, I started using Mythtv .18 on Ubuntu 5.10. The only cards I have any experience with are the PVR-150 and the PVR-500. I set the 150 up for myself and the 500 for my older brother. They’re nearly the same install method. I used the hyams MythTV method for Breezy, but when Dapper (6.06) came out, I tried that out, and there were issues with Ubuntu using an upgraded version of MySQL. I knew that it would take less time for me to reinstall on Breezy than it would to fix the Dapper issues. So I went back to Breezy. After a bit, I got tired of playing World of Warcraft on my laptop (5 fps or less is horrendous) so I took down my MythTV box to use it as a WoW box. I’m now ditching WoW to pull up MythTV (that’s my only acceptably fast computer). I downloaded Ubuntu Edgy (6.10), and the MythTV install is amazingly easier than it used to be. I don’t know whether I’m just so familiar with the install, or that it’s just gotten to be so easy. Anyways, here goes.
..:: Install MythTV Backend and Frontend
Get Ubuntu 6.10 and then install it. You can use the default installation parameters if you want. I typically do. Once up and running in the installed version (not the live version), open a terminal and type
sudo su
Enter your password (and hit enter). This will basically log you in as root without permanently destroying your Ubuntu sudo model. Backup your /etc/apt/sources.list:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.default
Then modify your /etc/apt/sources.list file to include these:
deb http://archive.ubuntu.com/ubuntu/ edgy main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ edgy-updates main restricted universe multiverse deb http://security.ubuntu.com/ubuntu/ edgy-security main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
Then type:
apt-get update apt-get upgrade
After that finishes, type
apt-get install mplayer phpmyadmin apache2 php5 mysql-server libapache2-mod-php5 libapache2-mod-auth-mysql php5-mysql gstreamer0.10-ffmpeg gstreamer0.10-gl gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse libxine-extracodecs
Once apache, php, mysql, and phpmyadmin have finished installing, go to http://localhost/phpmyadmin and set a root password for MySQL. Do NOT use tilda (a special terminal app) for this next step, because folding up really borks this next installation. The myth installer uses a console GUI to request a few things, and folded tilda doesn’t handle it well (you’ll have to dpkg-reconfigure a few apps if you do). If you don’t know what tilda is, you’re not using it, so don’t worry about it.
The next section is installing mythtv itself. You can’t combine this and the previous line, because you have to have mysql-server installed before mythtv installs. Now, type
apt-get install mythtv-frontend mythtv-backend mythtv-database mythvideo mythweather mythweb mythmusic mythplugins
During this install, MythTV will ask for your MySQL root password. You’ll also need to run the following line, but it often encounters errors because of server issues so keep trying until it succeeds:
apt-get install msttcorefonts
During the install, go to zap2it and register for an account to get free TV listings. For the Certificate Code, use the MythTV project code: ZIYN-DQZO-SBUT. Take note of your account username and password, because you’ll have to put it into MythTV in a few minutes.
..:: Install IVTV module
The next step is going to be to install the IVTV module used for the Hauppauge PVR-xxx video capture cards . I use the PVR-150, but the 500 works well too. If you’re not using this series, check here for your hardware. If you’re using the PVR-xxx series, continue with my instructions. Type:
apt-get install ivtv-source devscripts ivtv-utils
Get, build, and install the IVTV driver:
cd wget ftp://ftp.shspvr.com/download/wintv-pvr_250-350/inf/pvr_1.18.21.22254_inf.zip export DEBFULLNAME="Mario Limonciello" export DEBEMAIL="superm1@ubuntu.com" ivtv-make-fwpkg pvr_1.18.21.22254_inf.zip dpkg -i ivtv*firmware*deb
Get the PVR-150 and 500 firmware addition:
wget http://home.eng.iastate.edu/~superm1/contrib/firmware/v4l-cx25840.fw -O /lib/firmware/v4l-cx25840.fw
The next few instructions must be run one at a time:
m-a update,prepare m-a a-i ivtv depmod -a modprobe ivtv
If there are no errors, then you’re good so far, and you should test IVTV by typing:
mplayer /dev/video0
If you get video, that’s fantastic. Otherwise, I don’t know what you did wrong, because this worked the first time for me.
..:: Startup: Set MythTV as the default user to login
edit /etc/gdm/gdm.conf. find these two lines:
AutomaticLoginEnable=false AutomaticLogin=
and change them to
AutomaticLoginEnable=true AutomaticLogin=mythtv
..:: Set Up Your Card and Get Your First Set of Listings
All that is really remaining is to configure your capture card, but you should do this as the MythTV user. The MythTV install will create the user, but you will need to set the MythTV user password:
passwd mythtv
Then log out, and when you log back in as MythTV, type:
mythtv-setup
I’m assuming you’re using an NTSC television (in the US), so you can ignore the first bubble. Go to “2. Capture Cards” and select “New Capture Card”. Enter the following settings:
Card type: MPEG-2 Encoder card (PVR-250, PVR 350)
Video device: /dev/video0
Default input: Tuner0
Then go to “3. Video Sources” and select “New Video Source”. Enter the following settings:
Video source name: PVR-150-1
XMLTV listings grabber: NorthAmerica (DataDirect)
User ID: your_zap2it_username
Password: your_zap2it_password
Hit “Retrieve Line-ups” and wait a second. Exit that section and then select “4. Inputs”, and enter this setting:
Video Source: PVR-150-1
Finally, fill your database full of listings:
mythfilldatabase
..:: Startup: Set mythbackend and mythfrontend to run on boot
The default init.d startup script is broken (or at least was for me on both breezy and edgy), so I’m currently using hyam’s backend script. I give full credit for this script to hyam. You can get this script by typing:
wget http://s91928265.onlinehome.us/hfamily/mythtv/mythtv-backend -O /etc/init.d/mythtv-backend
Then restart the myth-backend daemon.
/etc/init.d/mythtv-backend start
On the gnome start menu, go to System->Preferences->Sessions and on the Startup Programs tab, add “mythfrontend” without the quotes. Finally, run the client, and explore the menus:
mythfrontend
..:: Disable the Screensaver
Since you don’t want the screensaver popping up while you’re watching a movie, go to System->Preferences->Screensaver, and disable the screen saver. In the “Advanced” tab, turn off power management.
..:: Option: MythCenter Theme
I personally like the MythCenter theme. To get it type:
wget http://mythtv.fotoniq.nl/files/MythCenter.tar.gz tar -xzvf MythCenter.tar.gz --directory=/usr/share/mythtv/themes/
It should appear in the Appearances configuration menu when you’re running mythfrontend.
..:: Option: Enable Your Remote
Some Hauppauge packages come with the grey remote. Mine did, and installation is incredibly simple, but I have not made any customizations to it. I actually use my universal remote, and had it just memorize the hauppauge functions. To install the daemon, check the MythTV LIRC on Ubuntu Edgy How-to.
..:: Option: MPD to Control Music
I personally dislike the mythmusic frontend. I think using a remote for playlist manipulation (instead of a mouse) is silly, and way too time consuming. Also, I almost always have my laptop around, so the MPD project seems perfect for the job. Check my MPD MythTV How-To on how to get it installed in Ubuntu Edgy.
..:: Troubleshooting: Static Past Channel X
Many people have reported this error, and I’ve even received it myself. Basically, I’ll be able to view up through channel 13 or 14, and then everything else after is just static. The solution is to go back into myth-setup and make sure that the tuner is set to “us-cable”. You may or may not have to deal with this depending on your cable provider and how Zap2it handles your listing.
..:: Troubleshooting: Changing Channels Doesn’t Actually Change the Channel
The symptom of this is that regardless of what channel you select (using up, down, or typing in a number), the video source doesn’t actually change, but the OSD will. Re-run mythtv-setup as root and delete your cards/tuners. Then exit, and re-run mythtv-setup and add your tuner/card(s) as the mythtv user.
..:: Credits
https://wiki.ubuntu.com/Install_IVTV_Edgy
https://help.ubuntu.com/community/MythTV_Edgy_Backend_Frontend