Bob's Notepad

Notes on projects I have done and things I have learned saved for my reference and for the world to share

Sunday, June 27, 2010

PVR-150 IR Blaster on MythBuntu 10.04

For some reason I decided that I was going to upgrade my Mythbuntu system to 10.04 and that everything was going to go ok. Everytime I do this I regret it for at least a day because, for whatever reason, Ubuntu is hell-bent on making the Hauppauge PVR-150's IR-Blaster not work. It doesn't make much sense to me considering it is probably the most popular analog tuner card -- but whatever -- after lots of googling, cussing, and typing I have found the solution. I do have to say that aside from the PVR-150 issues the upgrade went pretty smooth with the exception of mythtv-backend not being reinstalled but that was fixed by "apt-get install mythtv-backend mythtv-database".

First of all, please note that this may not be a complete set of instructions if you are starting from scratch. To fill in the blanks please see my previous posts here and here. Secondly, thanks to everyone who did the bulk of the work: mrplow, Jarod, Jimmybondo and Mark as well as anyone I missed.

Ok, so you want your PVR-150 blasting IR codes on your Mythbuntu 10.04 system? First, if you're going to upgrade, back up your /etc/lirc/ directory as you'll likely just want to revert to your old configuration files. Once you do your upgrade, make sure everything is working (besides, of course, your IR blaster).

Here's what you'll want to do (it's virtually identical to 9.10 with a different file):
  • sudo bash
  • apt-get remove lirc-modules-source
  • rm -rf /usr/src/lirc-0.8.6/
  • apt-get install lirc-modules-source
  • cd /usr/src/lirc-0.8.6
  • wget http://bobkmertz.com/blog-files/zilog-for-lucid.diff
  • patch -p0 < zilog-for-lucid.diff
  • dpkg-reconfigure lirc-modules-source
Now you want to adjust your /etc/lirc files and make sure that hardware.conf references only 2 modules: lirc_dev lirc_zilog More information on those files can be found in my previous posts listed above. You'll also need to make sure that you have haup-ir-blaster.bin in your /lib/firmware/ directory (again, information on this can be found in my prior posts)

After you run all of the above commands you may want to go ahead and reboot the machine. For some reason it seems to take lirc_zilog a bit before it actually initializes and loads the firmware file which could result in seeing errors about unknown symbols.

As a side note, I am still running a 32bit kernel because I'm not seeing much of an indication that the PVR-150 will work under a 64 bit kernel (see comments of my prior posts). I haven't attempted it and really don't have much of a desire to even try -- it takes enough to just keep this stuff running with Ubuntu wanting to break the PVR-150 everytime someone sneezes.

Hopefully this post helps someone out and prevents them from missing Dr. Who like I did tonight.

Labels: , , , , , , , ,

Reference Link


Sunday, January 10, 2010

Apple Time Machine backups to Ubuntu network drive

Apple's Time Machine is an awesome utility but gets frustrating when you have to use an external drive. An easier was to do these back ups is using a network drive. Fortunately, the netatalk package installed on an Ubuntu server can provide the functionality you want.

I am using Ubuntu 9.10 on my server. As a note, this is actually a MythBuntu server but functionality should be the same on any other Ubuntu 9.10 server/workstation.

First, as of this writing, the netatalk 2.0.5 packages are not available in karmic's repositories so let's add a debian repository by adding the following to /etc/apt/sources.list:
deb http://ftp.de.debian.org/debian sid main

Now let's install the netatalk package:
sudo apt-get install netatalk

Create a directory for time machine backups:
mkdir /home/user/timemachine

Now we need to edit the /etc/netatalk/AppleVolumes.default file and add the following line:
/home/user/timemachine timemachine options:tm

And restart netatalk:
sudo /etc/init.d/netatalk restart

Now on your mac, open finder, select the Go menu and "Connect to Server". Fill in your server's ip address prefixed by afp:// (for example, afp://192.168.1.100) and you should be prompted for a volume to mount. Select "timemachine", of course. Once that volume is mounted, go to time machine preferences and select that disk and you're all set. If you don't see your network drive as an option then open up terminal and issue the following command:
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

As a note, you may want to now go and remove the extra line from your /etc/apt/sources.list file so that future apt-get commands don't rely on debian's repository and not it's own

Labels: , , , , , , , ,

Reference Link


Thursday, November 19, 2009

PVR-150 IR Blaster on MythBuntu 9.10 with Dish Network

Upgrading to MythBuntu 9.10 from 9.04 was a challenge on some respects but the biggest of the challenges was getting my PVR-150 IR Blaster working.... again. I don't know why Ubuntu loves to break this thing on every upgrade but they do. Thanks to Jimmybondo for the bulk of this work.



  • sudo apt-get install lirc-modules-source
  • cd /usr/src/lirc-0.8.6
  • wget http://www.skynet.ie/~shabba/zilog.diff
  • sudo patch -p0 < ~/Downloads/zilog.diff
  • sudo dpkg-reconfigure lirc-modules-source


Now edit your /etc/init.d/hardware.conf file and replace lirc_pvr150 with lirc_zilog and you should be set.

If you're not upgrading from MythBuntu 9.04 and/or don't have the rest of your configuration files, you can refer to my prior post for what your lircd.conf file needs to look like. You may also need to add the following to hardware.conf:
TRANSMITTER_DEVICE="/dev/lirc0"

Labels: , , , , , ,

Reference Link


Tuesday, November 13, 2007

Installing XEN on Ubuntu 7.10 (amd64)

After finding how-to upon how-to that said to use "apt-get install ubuntu-xen-server" and repeatedly banging my head against the wall because it kept telling me the package wasnt found, I finally found the Xen page at the Ubuntu Community site that explained the situation. Apparently, there is no such package for amd64 kernels and you need to specify each needed package. Thankfully, they list the command you need over there:

(you do need to uncomment the universe repositories in /etc/apt/sources.list)

sudo aptitude install linux-image-xen bridge-utils libxen3.1 python-xen-3.1 xen-docs-3.1 xen-hypervisor-3.1 xen-ioemu-3.1 xen-tools xen-utils-3.1

Once you run that command, reboot the machine (may not be needed but won't hurt)

Now you'll need to edit /etc/xen/xend-config.sxp and uncomment the line (network-script network-bridge) and then comment (network-script network-dummy).

They also recommend adding "max_loop=64" to the end of the "loop" line in /etc/modules but this may not be needed for all people -- again, it won't hurt.

Now just reboot and it should all work.

NOTE: If your using i386, "apt-get install ubuntu-xen-server" should work for you. It's also possible that by the time you are reading this, the same command will work for amd64 but as of this post, it does not

Labels: , ,

Reference Link


Sunday, September 30, 2007

Google Repositories (apt-get)

Add this line to /etc/apt/sources.list

  • deb http://dl.google.com/linux/deb/ stable non-free


Import the key by running this

  • wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add


Then of course run "apt-get update" and your ready to instantly install Google's apps using apt-get.

Labels: , , , ,

Reference Link


Tuesday, September 04, 2007

Mythbuntu: My new favorite MythTV solution

As much as I love KnoppMyth and it's ease of installation I have constantly ended up haunted by the lack of upgradeability. If you even think about using apt-get, the system cries and stops working. It's an amazing distro but if you run into a problem with it not playing nicely with some hardware device you have or you get a cool idea that you want to implement, you're most likely going to render your box useless once you start tinkering.

So I installed Mythbuntu last night and.... WOW. I ran into a hardware incompatibility with the new machine I was building. I have a dual opteron 246 mainboard that I wanted to use as my mythbuntu system but the issue was with compatibility with PCI-X and PVR-150's. I have 2 of the older PVR-150 retail versions (these are the cards that the new knoppmyth and it's ivtv version were having issues with) and a PVR-150 MCE version. I also have a Chaintech 710 sound card (*HIGHLY* recommended by me for anyone who wants 5.1). The mainboard only has 1 32 bit (5v) slot and the sound card runs only at 5v. All of the PVR-150's run at either 3.3v or 5v but there is apparently something in the chipsets of the PVR-150 retail versions that make them inoperable in a PCI-X slot. The MCE version works fine so I had a choice of either my chaintech card or a second tuner because the PVR-150 Retails would work fine in the 32 bit slot but the machine wouldnt boot if they were in a PCI-X slot. I have a Sound Blaster Live card so I figured I'd try it and it worked until I wanted to do the digital 5.1 and then hell broke lose which is the same results in ANY distro including KnoppMyth..... so I opted to make that my server and build a seperate front end machine.
Note: Hauppauge will apparently update your PVR-150 to work with PCI-X but who has time for that? :P See this link.)

I can not tell you how easy the install was. In Mythbuntu you can select advanced configuration and select any configuration you want. You have options of the following:


  • Master backend and Front end
  • Secondary backend and Front end
  • Master backend only
  • Secondary backend only
  • Front end only


In all of these configurations, the plugins are installed and 100% working..... installation of the frontend machine asks you for the address and login information for the primary backend and.... it's running.

One thing even more amazing about Mythbuntu.... since I wasn't going to have any PVR-150's in my front end, the use of my Hauppauge remote control wasn't an option. Years ago I bought a StreamZap USB remote control which I previously tried to use on KnoppMyth and I eventually gave up. I decided I'd fight with it in this scenario and dug it out of the "archives" .... Mythbuntu asked me what remote I had and StreamZap was actually an option. When the system booted the remote worked without a single bit of configuration from me. The only thing that I think I need to do is configure the red button for delete like my Hauppauge remote was.... other than that, it's working great even in the DVD program.

Mythbuntu also puts the display to sleep automagically.... if you're sitting at a menu for a while, the screen will go into sleep mode and as soon as you press a button on the remote it will turn back on. This is a huge advantage for me because there are times I'll fall asleep while watching TV and the fact that my 19" CRT is going to sleep is a great savings in energy costs.

Another thing is the DVD player. I adjusted my general settings to use /dev/adsp for the SPDIF port and I figured I'd have to set up the DVD seperately.... I put a DVD in to see what state it was in and not only did my audio come out of the SPDIF optical port but my receiver went to digital mode..... Mythbuntu handles everything with the DVD player internally so there aren't any options that you need to pass... it's very impressive.

For everyone's reference, here is my configuration

  • Server:
    • Tyan S-2882D Mainboard
    • (Qty: 2) Opteron 246 - 2ghz
    • 4GB DDR333 Crucial (128bit mode)
    • 3ware 7500-8 Raid Controller
    • (Qty: 8) 250GB Western Digital SATA drives (Raid 5)
    • Hauppauge PVR-150 Retail version (26052)
    • Hauppauge PVR-150 MCE

  • Front End:
    • Intel 815 Server Board
    • Pentium 3 @ 1.2ghz
    • 512MB PC133 Ram
    • 40GB IDE Seagate
    • Lite-On DVD Burner
    • Chaintech AV-710 with optical out
    • StreamZap USBIR2 Remote Control


I really like the front end being the configuration it is. I was a bit concerned about the Pentium 3 with only 512MB of RAM (thats all the 815 chipset supports) but it runs incredibly smooth.... the network keeps up, the CPU keeps up.... no slow downs at all. The best part about it is all it has is a VERY low speed fan on the power supply and a cpu cooler.... the box makes almost no noise at all. Right now the server is sitting next to eat but I will be moving that to my crawlspace eventually and it should get really quiet in my living room :)

Here are some URLs for anyone interested in some of the things above:

  • http://techgage.com/article/chaintech_av-710_71_sound_card/ (Chaintech AV-710)

    • I really can not recommend this card highly enough. It worked flawlessly on my KnoppMyth box as well as this Mythbuntu box. The quality is amazing.... and the Envy24 chipset is so much enjoyed by linux distros. If you're just getting into MythTV I would highly recommend not even thinking about touching a Creative Labs sound card (that is, if you want anything more than standard 2 channel). Their chipsets are a 3 ring circus and it's always a nightmare

  • StreamZap USB Remote control
  • Mythbuntu
    • My installation was based on Alpha 4..... so far I have seen no reason why this is still considered Alpha.... I havent run into an issue yet.


Keep in mind I have only been running this set up for 24 hours but I have had a very large queue of recordings and I'd say more than half of that time the system was recording two shows at the same time. I haven't tested all of the plug ins yet (like mythweb, archive, etc) but from navigation it appears they are installed and operating.

Overview

  • Installation is quite easy. KnoppMyth may be a touch easier for someone who hasn't a clue about linux but if you know even a tiny bit of computer hardware and the ideas behind the OS, this is a piece of cake.
  • MythBuntu has a sleep function for the monitor out of the box
  • Mythbuntu has a front end only installation option as well as a front end live CD option
  • Mythbuntu is designed from the ground up to be placed in multiple machine configurations. Having mutliple backends and frontends is a breeze
  • Using 5.1 optical on the Chaintech is as simple as changing your audio device in myth setup to /dev/adsp - and it takes it from there (including DVD player)
  • The base system is 100% Ubuntu and is designed with the Ubuntu repositories in mind. Updating packages appears to be no issue at all.
  • Supports my StreamZap USB remote which I previously had not been able to get to work easily
  • Gives you the option to set up VNC access during the install
  • Allows you to select plugins rather than forcing you to install all of them


There is no doubt that this is now my MythTV distro of choice. MythDora has got some great reviews but I'm not such a fan of RPM based distros so when looking for a KnoppMyth replacement I decided to try Mythbuntu - and I'm glad I did.

Please keep in mind that KnoppMyth is still considered a great distro to me. It works flawlessly in what it does but I just sometimes feel trapped by it. That trapped feeling is a trade off, however, as it is designed with the widest automatic support of hardware and it can generally have you set up and running without many technical questions at all.

As far as I'm concerned, KnoppMyth, Mythdora, and Mythbuntu are all very great options but I think Mythbuntu fits into my scenario (as well as many other's) the best.

Labels: , ,

Reference Link