MetaCategories |
Wednesday, June 2. 2010TwinHan Remote under Ubuntu Lucid Lynx 10.04
Years ago with one of my DVB TV tuner cards cards I unexpectedly also received a little USB IR receiver and remote. In common with almost all peripheral hardware, it was designed for Windows but can with a little effort be made to work with a linux machine, such as my MythTV machine.
I made it work by hand years ago, but then had no use for it for a while, and a few months ago wanted to make it work again. It turns out that Adam Pierce has a good set of instructions. But, like all other commenters on that blog post, my setup broke when upgrading to Ubuntu 10.04. Grrrr. I have finally found a working combination that hopefully will help others - the suggestions in the blog post were good enough to set me on the right track, but not good enough to make it actually work. Here's the items that I had to modify by hand over and above my (upgraded) Ubuntu 10.04 setup:
All that, and just in time for my Logitech Harmony remote to arrive and have to start again. Monday, May 31. 2010Lucid (Bad) Dreams
For years now I've loved linux. I've met and spoken with Linus Torvalds. I've even made a pilgrimage to where he wrote it. For servers, and many desktop uses, there's nothing quite like it.
The core linux system is a beautiful thing. Through uni studies, attending several linux.conf.au events over the years, and personal interest I've studied multiple parts of the code, and even fiddled under the hood myself at times. And yet every time it comes to upgrading my highly-customised home server, one or more things breaks horribly, requiring much of my time to fix. These days the distribution I run on the server is kubuntu - a legacy from when the system was also used as a desktop. This upgrade will hopefully be the last for years, as the latest 10.04 release "lucid" is a Long Term Support release, meaning it will be kept safe and stable for years to come. Good thing, given it's taken me a few weeks to get this far. Here's a log for those who are interested.
Linux is an amazing thing which is capable of complex setups well beyond that which most users would have, and all for free. That just doesn't mean that the complex stuff is easy when it breaks in new and creative ways. It would be a full-time job to keep up with the changes that have happened with this release. I've had to find this out after the fact and spend time patching it all up. I had hoped Canonical (maintainers of Ubuntu/Kubuntu) would be doing this for me, and on the vast majority of hardware-software combinations out there they do very well. I can just see as time becomes more and more precious in years to come that a service doing all this custom work for me would start to look very attractive. Especially when your setup looks like this:
Should be simple to upgrade, right? Saturday, July 19. 2008iPhoto Libraries in mythgallery (mythtv)
Here's some information about a personal coding itch I scratched recently, on the off chance that it helps someone else out there. Certainly my Google skills didn't turn up anyone else who had solved the same problem.
Problem Description You have a Mac somewhere where you use Apple's excellent iPhoto to manage your huge digital photography collection. However, you don't have (and most likely don't want) a spiffy but locked-down and feature-light Apple TV to display them on your TV, instead preferring the excellent and far more versatile open-source mythtv. Mythtv has mythgallery which displays pictures from a normal filesystem reasonably well, but the poor thing has little to no understanding of the complexities of Apple's "iPhoto Library" on-disk layout. I'm talking Albums basically, plus an understanding of "Originals" versus "Modified". I just want it to be how it looks in iPhoto, but on my big LCD screen in front of the couch, controlled with my myth remote. Is that too much to ask??! Research/Analysis Can't find anyone else with this issue so figure "how hard can it be?". Not very, it turned out, at least to get something working, if ugly. The perl Mac::iPhoto looks like a good place to start, but since it hasn't been touched since 2003 it certainly doesn't do anything much useful on my current (7.1.3) iPhoto Library. It uses Mac::PropertyList to do the parsing of the xml file, which doesn't seem to work either. After much fiddling it looks like the AlbumData.xml file in the iPhoto Library actually is invalid - it doesn't have the proper header. First hack Mac::PropertyList to accept the dodgy header, but later decide to keep that standard and put the hack into my script instead. Design Decide to make a directory next to the iPhoto Library which is full of symlinks pointing into the actual library. Directories in this tree will correspond to Albums in iPhoto, and the links will be named such that the alphabetical order used by mythgallery corresponds to the order in iPhoto. Try and get this working on the linux box and also via Samba but in the end it's simplest to run the code and create the symlink tree on my mac and then rsync both the iPhoto Library and the symlink tree across to the linux box. Don't use samba, it stuffs up the annoying ":" that iPhoto uses in paths, at least for me. rsync handles it fine, it's not even that Mac-specific one to my knowledge, just whatever is on my Ubuntu box. Code You'll need Mac::iPhoto 0.1-timg, which is the modification of 0.1 available on cpan to work with iPhoto 7.1.3, and Mac::PropertyList 1.31 from cpan. I guess I should put my code on CPAN, but just wanted to get it all up here for now. Once that's available, you will of course need the actual iPhotoToDirectories script. It's all hard-coded - but you wouldn't have made it this far if you couldn't edit it to work in your situation :) Operation You'll need the same directory structure on both the mac and the linux box as the symlinks get created on the mac but are de-referenced on the linux box. Once it's all in place, run iPhotoToDirectories on your mac whenever you want. It takes a long time, so I wouldn't script it. Maybe an overnight cronjob if you keep your Mac on all night. I don't so I just run it when I remember. Then rsync both the iPhoto Library and the symlink tree to the linux box. Finally, chmod -R a+rx the linux directories if the uid on your mac is different from your myth user. And then, assuming mythgallery can navigate to that symlink directory, it should work and the browsing should be significantly more useful than it was before browsing the raw directory. Known issues
But hey it works! And with a full-time life that's enough for me right now.
Posted by Alison Gould
in Hardware, Linux, Open-Source, Photography, Projects, PVR, Software
at
09:19
| Comment (1)
| Trackbacks (0)
Friday, January 14. 2005A Versatile Little Machine
have been watching the Apple Keynote where lots of very interesting things have been introduced. I won't go into detail about them here because pretty much every media outlet from nobodies like me through to CNN and BBC is reporting on that.
What I do find interesting however is that the Mac mini seems to be fitting in many many niches. Their obvious target is those who want a computer that just works for not much money, or perhaps already have an iPod and understand what Apple is all about. I intend to get a couple for this purpose - those older-generation people who's computers I seem to be constantly working on are prime candidates. But these could also work really well as a PVR (Personal Video Recorder). For those not really aquainted with that term, think of a VCR where you say things like "I like The Simpsons", and it records The Simpsons for you whenever they may be on, whatever channel. Also, it can suggest that since you like the work of Matt Groening, you may also like Futurama and record that for you too. All this stuff gets saved onto a big hard drive, which you watch when it suits you, not when it suits the broadcasters and/or advertisers. Speaking of advertisers, they loose out even more because you can skip through the ads while you are watching your show later. Nice, huh? So, all we need is a decent mac port of something like MythTV, and the Mac mini fits into that role too. Or, if you need a nice little silent, low power, cheap yet versatile server, this box will also be worth a look for that role. But perhaps the most important use for this machine will be in propping up Apple's poor 2.5% market share, which the investors at least seem to think it will do.
(Page 1 of 1, totaling 4 entries)
|
QuicksearchArchivesPowered byLicense |