|
|||||
MythTV II: Return of MythTV
Changes From Previous SetupThere are two hardware adjustments to my initial setup. First, I’ve altered the hard drives, adding a 5th 250gb drive and ditching RAID5. MythTV 0.21 has a new feature, storage groups, which enables MythTV to save video files to specific locations. If you want more room, simply mount a large drive to /var/thisiswheremyvideosare, then add the mount point to the default storage group in MythTV. With this new setup the system won’t need to manage a software RAID5 whenever I’m watching or recording television.
Initial SetupI’m going to walk through my Ubuntu setup, including RAID1. If you’re not going to do any RAID at all you can download the standard Ubuntu setup CD. Otherwise, be sure to download the alternate CD.
After you get to the partition window you’ll want to select each drive and hit return, this will clear existing partitions. Then select the free space on one of the drives and hit return. Then select “Automatically partition the free space”
Once you have everything setup, select ‘Finish partitioning and write changes to disk.’ The system will now format the new RAID partition and start the install process. Follow the prompts to finish the Ubuntu install, there shouldn’t be anything overly complicated. System Configuration
Right out of the box the system is going to synchronize the RAID. The install only loads the system files to one drive, so mdadm needs to bring the other drive(s) into sync. You can the status of this occasionally by running Terminal (in the applications menu) and typing
You can wait for the drive to by synchronized. If you’re like me, you won’t wait. Before doing anything else it’s best to download and install any updates. Go into the system menu and select Update Manager. Enter your password and then click, ‘Check for updates.’ Download and install. You can’t install any other applications while this is running, so go ahead and watch mdadm try desperately to keep up with all the changes. After the update the system will prompt you to reboot. If you have a nVidia video card don’t, you’ll want to enable restricted drivers first, which will save you a reboot later. Under the System menu select drivers and enable the NVidia driver. Now reboot.
If you’re not going to do that you’ll want to create a group called mythtv and add the username of the account that you’ll run MythTV from to the mythtv group. Both are done from ‘User and Group Settings’ in the system menu. In whichever account you use, you’ll want to change the power management so that the system never sleeps, deactivate the screen saver, disable system beeps, and turn the volume all the way up. You may also want to set the MythTV account to login automatically, which can be done in User and Groups Settings. Lirc Installation
Normally at this point you’d go through a painful process of creating the configuration files for the remote. This took me several hours to complete adequately, and I never liked the results. Instead of doing that, search for and install mythbuntu-lirc-generator in the package manager. Then open up a terminal window and run
This will create all the files you need for your remote to work with MythTV. If you want to test your remote you’ll need to restart lirc. This will require admin privlages:
and start pressing buttons on your remote. On screen you should be seeing random numbers followed by the name of the button you pressed. There are some very helpful community docs on installing lirc. If you’re going a different route. MythTV Installation
During the install you’ll be prompted to answer a number of questions. You’ll be asked to supply a password for the MySQL root user. It is recommended that you leave this blank, as it has been known to cause errors during setup. If you are concerned about security go ahead and enter a password. If you run into a problem it’s likely you’ll only need to created the mythtv user in MySQL and set the password. Easily done, but if you aren’t familiar with MySQL it may be a bit of a pain. You’ll see a message about running mythtv-setup, we’ll do that in a minute. You’ll also be asked if you want to allow remote connections to the backend. If you are planning on having a remote frontend, or multiple fronteneds you’ll want to answer yes. If you select no, you can always enable it later. The install process will generate a password for MySQL user mythtv and store this information in /etc/mythtv/mysql.txt. You may need to refer to this later. That’s it, we’re installed! MythTV ConfigurationThere are 6 menus to go through. For the most part configuration of the backend is simple. I’ll walk you through the basics of getting up and running. There is plenty of documentation already out there that covers tweaking MythTV. From the System, Administration menu select ‘MythTV Backend Setup.’ Under the first option, General, you’ll need to set your ‘TV Format’ (NTSC in the U.S.) and your ‘Channel frequency table’. If you’re using MythTV for over-the-air broadcast in the U.S. select us-bcast.
In the Video Sources menu you want to select SchedulesDirect.org. You’ll need to sign-up with SD ($20 / year). In the setup window enter your SD login and password. Now you need to select Input connections to associate the Capture cards with the Video sources. Select the card you want to edit, then select your video source for that card. Next click ‘Scan for channels.’ This will initiate your channel scan (you’ll want your antenna/cable source hooked up at this point). If you don’t get a lock on any channels check your antenna/cable connection. If that doesn’t resolve the issue try changing the ‘Channel frequency table’ in the General menu. Repeat this for all capture cards. The Channel Editor window allows you to edit the channels that were picked up in scanning. You can hide, delete, and rename channels here. Lastly, the Storage Directory window is where you specify the path where videos will be stored. I added three hard drives to my system and mounted them to /var/videos/drive1, 2, and 3. In the Storage Directory menu I selected (default), edited the default location to drive1 and added the 2nd and 3rd drive locations respectively. Within MythTV you can specify which recordings go to which storage group. If you wanted to create groups other than default this is where you would set up the different groups. If you only want one group for all videos simply select default. You can now exit the configuration. You’ll be prompted to run mythfilldatabase, go ahead and do so. This will pull television information from schedulesdirect.org and fill your program guide. You can now run the MythTV frontend from the applications menu! You will find there are 100s of options for adjusting and configuring MythTV. I’m not going to go into any of them. The specifics of your system will determine these settings. Indeed there were many backend settings that we skipped for the same reason. Read about all of these options and determine what’s best for your system. I would recommend, however, enableing OpenGL, if you have a video card that supports it. I’m running video out to my HDTV from a DVI – HDMI cable. This provides a supurb image quality. However, there is a horrible issue of overscan. You may also run into this issue if you’re using your MythTV setup with a TV instead of a computer monitor. There is plenty of information out there to help. The easiest solution is to ignore the overscan and adjust the size of the MythTV window, which can be independent from the desktop. Useful LinksHere’s my list of useful links that have been indispensable to me:
ConclusionTweaking MythTV is a long, complicated, but rewarding process. It can make the difference between smooth and jerky playback. Once you have a configuration you like I recommend documenting it thuroughly. In the past I’ve had to completely reset my MythTV installation and lost all of my settings. Building your own MythTV based HTPC can be rewarding. Hopefuly this guide makes it a little easier to get started. Related Posts: 2 comments to MythTV II: Return of MythTV |
|||||
|
Copyright © 2009 Jonamerica.com - All Rights Reserved |
|||||
[...] tricks, tips, hacks, and configurations that work best for my setup. You can read my first MythTV post on hardware and my second post on Ubuntu and MythTV installation and setup for background on the particulars of [...]
[...] ran into the same problem in each of the two Ubuntu installs that I recently completed. The initial install failed, and the RAID arrays I had setup could not be deleted. This became a [...]