    <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Yet Another Linux BlogYet Another Linux Blog &#187; mythtv</title>
	<atom:link href="http://linux-blog.org/tag/mythtv/feed/" rel="self" type="application/rss+xml" />
	<link>http://linux-blog.org</link>
	<description>Open Source, Open Blog</description>
	<lastBuildDate>Wed, 14 Mar 2012 23:18:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>How-To: PCLinuxOS 2007 and MythTV</title>
		<link>http://linux-blog.org/how-to-pclinuxos-2007-and-mythtv/</link>
		<comments>http://linux-blog.org/how-to-pclinuxos-2007-and-mythtv/#comments</comments>
		<pubDate>Thu, 30 Aug 2007 12:02:00 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mythtv]]></category>
		<category><![CDATA[PCLinuxOS]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://linux-blog.org/word/how-to-pclinuxos-2007-and-mythtv/</guid>
		<description><![CDATA[For those of you who always thought PCLinuxOS and MythTV would go together&#8230;you&#8217;re quite right, they do fit well together&#8230;though there are a few bumps on the road. Hopefully, this how-to will help you along the way. First, let&#8217;s mention what this guide will not cover: Remote Controls IR Blasters Picture Quality Settings Why won&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>For those of you who always thought PCLinuxOS and MythTV would go together&#8230;you&#8217;re quite right, they do fit well together&#8230;though there are a few bumps on the road.  Hopefully, this how-to will help you along the way.</p>
<p>First, let&#8217;s mention what this guide will not cover:</p>
<ol>
<li>Remote Controls</li>
<li>IR Blasters</li>
<li>Picture Quality Settings</li>
</ol>
<p>Why won&#8217;t I cover those?  Because there are infinite possibilities for each one&#8230;and it would be impossible for me to investigate them all&#8230;hardware not in my possession besides.  So, this will cover installing mythtv and omit the items above.  Mythtv has those items covered quite well in their documentation.</p>
<p>Hardware Specifications:</p>
<ol>
<li>HP a1520n</li>
<li>ATI x300 PCIe VPU</li>
<li>PVR150 and PVR350</li>
<li>Sharp Aquos 37&#8243; LCD TV</li>
<li>USR MaxG PCI Card</li>
</ol>
<p><span id="more-176"></span></p>
<p><span style="text-decoration: underline;"><strong>Install PCLinuxOS&#8230;with a twist</strong></span></p>
<p>When I installed PCLinuxOS, I created a user &#8220;mythtv&#8221; for my main desktop user on my media center pc. This is an easy way of ensuring that your user is part of the multimedia group that some how-to&#8217;s speak about. I recommend you do this also.</p>
<p>I created 3 partitions on my hard drive: <span style="font-family: courier new,courier,monospace;">/boot</span>, <span style="font-family: courier new,courier,monospace;">/</span>, and <span style="font-family: courier new,courier,monospace;">/home</span>.  I used ext3 for <span style="font-family: courier new,courier,monospace;">/boot</span> and <span style="font-family: courier new,courier,monospace;">/</span>, and XFS for <span style="font-family: courier new,courier,monospace;">/home</span>&#8230;because <span style="font-family: courier new,courier,monospace;">/home</span> will be where my video is kept.  The <span style="font-family: courier new,courier,monospace;">/home</span> partition is rather large for me since I have a 250GB Hard disk&#8230;and boot only has 100M with <span style="font-family: courier new,courier,monospace;">/</span> having 15GB.  <span style="font-family: courier new,courier,monospace;">/home</span> gets the rest <img src='http://linux-blog.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Another thing I did was connect a network cable despite having a wireless adapter. This is so I could setup ntp right away during first boot. It&#8217;s imperative that the time be correct for your timezone because the MythTV guide data is totally dependent upon it. Since part of the installation is downloading guide data, I also recommend you do this.</p>
<p><span style="text-decoration: underline;"><strong>After PCLinuxOS Install</strong></span></p>
<p>After installing, I created a directory inside my /home/mythtv folder. I changed the permissions on this folder with the following command:</p>
<pre class="brush: plain; title: ; notranslate">[root@localhost~]# chmod -R a+xrw video/</pre>
<p>This will be the directory I use to store liveTV recordings and shows that I record. I also made sure that the current user (mythtv) owns this directory by listing the directories with the -l flag (ls -l).</p>
<p>Open Synaptic, click the reload button, click the mark all updates button, click the apply button. This will install all updates for the distro and bring us up to current.</p>
<p><span style="text-decoration: underline;"><strong>Getting Ready for MythTV and Multimedia</strong></span></p>
<p>Next up we have to get PCLinuxOS ready to play any media we throw at it. If this is legal in your country, install the following:</p>
<ul>
<li>RealPlayer</li>
<li>RealPlayer-rpnp</li>
<li>win32-codecs</li>
<li>webcore-fonts</li>
<li>dvdrip</li>
<li>mysql (needed for mythtv)</li>
<li>ivtv (for Hauppage Cards)</li>
<li>dkms-ivtv</li>
</ul>
<p>Make sure you accept all dependencies that are marked for installation by the package selection above. Texstar and the gang know what&#8217;s going on so you&#8217;re very safe with their dependency selection.</p>
<p>Optional Installation Candidates:</p>
<ul>
<li>Google Earth</li>
<li>Picasa</li>
<li>Google Desktop</li>
<li>VLC</li>
</ul>
<p>Before you install the MythTV packages, we need to make sure the MySQL package we installed is up and running. Open up a Konsole and type the following:</p>
<pre class="brush: plain; title: ; notranslate">[root@localhost~]# service mysqld status</pre>
<p>If the mysql daemon is running, great!  If not, start it with &#8216;<span style="font-family: courier new,courier,monospace;">service mysqld start</span>&#8216;. Open up the PCLinuxOS Control Center and go to System &gt;&gt; Services. Make sure the checkbox is toggled on mysqld so that it will start on boot.</p>
<p>When you installed mysql in the step above&#8230;it installed with no root password set. This is bad for security reasons&#8230;especially if you later plan on using the web plugin for MythTV where you can access program data from the web. To change this, do the following:</p>
<pre class="brush: plain; title: ; notranslate">[root@localhost~]# mysql -u root</pre>
<p>This logs you into the mysql console.  You&#8217;ll then be able to:</p>
<pre class="brush: plain; title: ; notranslate">[root@localhost~]# mysql&amp;gt; SET PASSWORD FOR root@localhost=PASSWORD('password');</pre>
<p>Make sure you replace the word &#8216;password&#8217; with a password of your choosing. This will be the new root mysql password. Keep it in a safe place away from prying eyes <img src='http://linux-blog.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><span style="text-decoration: underline;"><strong>Installing MythTV</strong></span></p>
<p>Now that we&#8217;ve got the mysql server running and all the prepatory packages installed, it&#8217;s time to get MythTV installed. If synaptic is not open, open synaptic and do a search for &#8216;MythTV&#8217;. You should see quite a good number of packages available for install. There are only 4 packages that we need to get MythTV running&#8230;so install the following:</p>
<ul>
<li>mythtv</li>
<li>mythtv-setup</li>
<li>mythtv-backend</li>
<li>mythtv-frontend</li>
</ul>
<p>Allow those installations to also select any dependencies they might need. Don&#8217;t worry, we can install other add-ons later. After installation of these packages, we&#8217;ll need to configure the backend of MythTV first so it can scrape program data from the web and store it in our MySQL database.</p>
<p><span style="text-decoration: underline;"><strong>Configuration</strong></span></p>
<p>To setup mythtv&#8217;s backend, we&#8217;re going to run myth-setup (that&#8217;s the command you can run from a konsole as well). This will &#8216;setup&#8217; our configuration for when we fire up the mythbackend. However, we need to give the MySQL database structure so that the data can be stored inside of it. To do this, MythTV gives you a .sql file that can be used to form the database structure.</p>
<pre class="brush: plain; title: ; notranslate">[root@localhost~]# su</pre>
<pre class="brush: plain; title: ; notranslate">[root@localhost~]# mysql --user=root --password=passwordSETearlier &amp;lt; /usr/share/doc/mythtv-0.20/database/mc.sql</pre>
<p>Now the structure is complete. It&#8217;s time to run the setup utility. Go to the PC Menu &gt;&gt; Multimedia &gt;&gt; Video &gt;&gt; MythTV Setup.</p>
<p>Step through the setup tasks. It&#8217;s ok to leave stuff you don&#8217;t know about&#8230;you can always tweak things later. Some items you must change are your IP (from 127.0.0.1 to whatever your IP is) if you plan on connecting a remote front end to it (say, one in your bedroom to the server backend in the living room). Since I run my server as a standalone one (both frontend and backend) I will leave this to 127.0.0.1.</p>
<p>I won&#8217;t cover all of the screens in the setup here.  There is good documenation available at the mythtv website:  <a href="http://www.mythtv.org/docs/mythtv-HOWTO-9.html#ss9.1" onclick="return TrackClick('http%3A%2F%2Fwww.mythtv.org%2Fdocs%2Fmythtv-HOWTO-9.html%23ss9.1','http%3A%2F%2Fwww.mythtv.org%2Fdocs%2Fmythtv-HOWTO-9.html%23ss9.1')">http://www.mythtv.org/docs/mythtv-HOWTO-9.html#ss9.1</a></p>
<p>Only step through 9.1 on that link as we&#8217;ll need to do some more with PCLinuxOS before moving onto the next step.</p>
<p>Make sure that you&#8217;ve previously setup the correct lineup with <a href="http://labs.zap2it.com/ztvws/ztvws_login/1,1059,TMS01-1,00.html" onclick="return TrackClick('http%3A%2F%2Flabs.zap2it.com%2Fztvws%2Fztvws_login%2F1%2C1059%2CTMS01-1%2C00.html','zap2it')">zap2it</a>&#8230;and remember that this month they&#8217;ll stop allowing free service so you&#8217;ll have to pay per month for their service. The reason you need to have an account with zap2it is so that during the next few steps, we&#8217;ll be downloading channel data for the MythTV install.</p>
<p>Finish out the setup configuration. Now we need to start the backend which will read the configuration we just did so that when we download channel data, it connects through the backend daemon and uses it for access to MySQL (remember the IP address and user/password in the screens?). To start the backend, open a konsole and su to root.</p>
<pre class="brush: plain; title: ; notranslate">[root@localhost~]# su</pre>
<p>enter your root password when prompted.</p>
<pre class="brush: plain; title: ; notranslate">[root@localhost~]# service mythbackend start</pre>
<p>The backend starts up and reports back that it was successful. Now it&#8217;s time to fill the database with channel data by running mythfilldatabase.<br />
After it starts, execute:</p>
<pre class="brush: plain; title: ; notranslate">[root@localhost~]# mythfilldatabase</pre>
<p>This fills your database with channel data from your zap2it lineup. You now have MythTV ready to go with full configuration. There are numerous tweaks such as filters and encoders/decoders that I won&#8217;t go into here&#8230;mainly because I don&#8217;t know much about them. Experiment around and see what suits your cable signal and your install.</p>
<p><span style="text-decoration: underline;"><strong>Problems I encountered with mythfilldatabase</strong></span><br />
My backend wasn&#8217;t running when I first executed the <span style="font-family: courier new,courier,monospace;">mythfilldatabase</span> command and no amount of executing the command <span style="font-family: courier new,courier,monospace;">&#8220;service mthbackend start&#8221;</span> could get it to work.  So my mythfilldatabase kept timing out when trying to connect to the backend and fill the mysql database with channel info.</p>
<p>I isolated my problem to my <span style="font-family: courier new,courier,monospace;">/home/mythtv/video</span> directory.  Inside of this directory there is a file used by mythtv named nfslockfile.lock.  This file had the wrong permissions set for it when I looked at it and mythtv couldn&#8217;t access it.  So, I opened up a konsole, and ran</p>
<pre class="brush: plain; title: ; notranslate">[root@localhost~]# chmod a+rwx nfslockfile.lock</pre>
<pre class="brush: plain; title: ; notranslate">[root@localhost~]# chown mythtv:mythtv nfslockfile.lock</pre>
<p>Then, fired up the backend again with:</p>
<pre class="brush: plain; title: ; notranslate">[root@localhost~]# service mythbackend start</pre>
<p>and once that was accomplished, I reran <span style="font-family: courier new,courier,monospace;">mythfilldatabase</span> and things were like greased lightening.</p>
<p><span style="text-decoration: underline;"><strong>Continuing the Installation and Finalizing</strong></span><br />
After you channel data is finished downloading and reports it successfully saved in the database, you can start the front end.  Before doing that though it is wise to check to make sure your capture cards are working (most happauge cards work quite well out of the box)</p>
<p>To do so, open up a konsole and type the following:</p>
<pre class="brush: plain; title: ; notranslate">[root@localhost~]# mplayer /dev/video0</pre>
<p>This should play channel video using mplayer.  If it works, you know you capture card is functional.  If you have a second card like me, test it out with:</p>
<pre class="brush: plain; title: ; notranslate">[root@localhost~]# mplayer /dev/video1</pre>
<p>You should have picture and sound from the default TV channel done during the lineup import (mythfilldatabase). If this doesn&#8217;t work for you, you&#8217;ll have to do some searching on mythtv and your model of capture card. This how-to won&#8217;t cover that but I&#8217;ll try to answer questions in the comments section.</p>
<p>So, we&#8217;ll assume that video is good for you and that the mythfilldatabase went fine and that you&#8217;re ready to watch TV.  Open up the PC Menu &gt;&gt; Multimedia &gt;&gt; MythTV.</p>
<p>I also copied this MythTV shortcut to my desktop by click dragging it out of the PC menu to the desktop (choose copy here).  Then you don&#8217;t have to access the menu each time, you can simply double click the shortcut.</p>
<p>Once the front end is up and running, you can immediately go to &#8216;watch tv&#8217; though it may not look very good due to aspect ratio and filters not being set as well as quality not being set.  You change these values by configuring the front end.</p>
<p>Configure the front end with the instructions here:  <a href="http://www.mythtv.org/docs/mythtv-HOWTO-10.html" onclick="return TrackClick('http%3A%2F%2Fwww.mythtv.org%2Fdocs%2Fmythtv-HOWTO-10.html','http%3A%2F%2Fwww.mythtv.org%2Fdocs%2Fmythtv-HOWTO-10.html')">http://www.mythtv.org/docs/mythtv-HOWTO-10.html</a></p>
<p>Now that you&#8217;ve got stuff setup the way you like it and you&#8217;re watching TV on your new MythTV box, you can add a few &#8216;plugins&#8217; to supplement your experience.</p>
<p>I chose to install the following add ons:</p>
<ul>
<li>mythmusic</li>
<li>mythnews</li>
<li>mythdvd</li>
<li>myththemes</li>
<li>mythweather</li>
</ul>
<p>You can choose others but please be advised that mytharchive currently doesn&#8217;t work as it is missing a dependency&#8230;.I&#8217;ve reported the problem to the devs and it should be solved soon.</p>
<p>That&#8217;s about it!  Pretty straight forward as long as you do things in order.  I messed up 3-4 times and had to start over when creating this how-to&#8230;I installed mythtv before I installed mysql one time&#8230;I even messed up and forgot to connect the box to the internet once and banged my head at why it wouldn&#8217;t download channel data (it was the end of a long weekend and it was VERY early in the morning).</p>
<p>In all, don&#8217;t give up!  Keep on trying and if you have questions, please ask via the comments and I&#8217;ll try to point you in the right direction.</p>
<p><span style="text-decoration: underline;"><strong>For those of you already running MythTV&#8230;</strong></span><br />
I&#8217;m specifically interested in what combination of filters people have used for their cable TV&#8230;it seems I can&#8217;t get as good of quality with my us-cable signal that others report (I have a Sharp Aquos 37” LCD TV to display my TV on).  So, if you find a good combination, please share it in the comments!</p>
<p><a href="http://linux-blog.org/how-to-pclinuxos-2007-and-mythtv/" rel="bookmark">How-To: PCLinuxOS 2007 and MythTV</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on August 30, 2007.</p>
]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/how-to-pclinuxos-2007-and-mythtv/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 8/20 queries in 0.367 seconds using disk: basic
Object Caching 463/463 objects using disk: basic

Served from: linux-blog.org @ 2012-05-23 22:33:55 -->
