April 30th, 2007
After upgrading to Feisty Fawn (7.04) of Kubuntu I thought I had made all the necessary changes for my XBMC (XBox Media Center) MythTV frontend to talk to the Kubuntu server running the MythTV backend. Part of the Kubuntu upgrade altered the /etc/mysql/my.cnf configuration file for MySQL. This alteration required me to change the bind-address from localhost to the static IP addess of the server.
I thought that this change would be sufficient but it turns out that it wasn’t. The MythTV frontend on my XBox failed to connect to the MySQL database on the MythTV backend for completely non-obvious reasons. If the error output in the MythTV frontend was better I probably would of identified the problem much more quickly. After some hours of looking closely at the MySQL configuration changes and various other network related settings in Kubuntu it looked like it might have something to do with the MySQL password handling.
The old /etc/mysql/my.cnf had a old_passwords = 1 setting in it. The new configuration file did not. In addition, within the newly added configuration import directory /etc/mysql/conf.d there was an old_passwords.cnf file that explicitely set old_passwords = false. This gave me enough clues to see if the MythTV front end for the XBMC was in fact using the old password authentication mechanism (no longer supported by the server with this configuration). I found plenty of references to versions of PHP needing to use the old password authentication mechanism for MySQL and wondered if there was a similar issue with Python (the language used for the MythTV frontend on the XBMC). That information was enough to convince me to try and find out how to configure the server to continue to use the old password mechanism to see if that changed anything.
Based on instructions in the MySQL reference documentation at Client does not support authentication protocol I first tried to get the MySQL daemon mysqld to start with the --old-passwords parameter so it worked like it would have prior to the upgrade. I couldn’t get this to work (the MySQL documentation is a bit sparse on how to set some of the configuration options) so I tried to set the password for the mythtv user using the OLD_PASSWORD() function instead of the PASSWORD() function. By a stroke of luck that actually worked. That’s where I’m leaving it too.
If it aint broke, don’t fix it.
So, at the moment the MySQL configuration is exactly the same way as it was after upgrading to Kubuntu Feisty Fawn (7.04) apart from the bind-address being set to the static IP address of the server. In addition, the MySQL password for the mythtv user has been reset using the OLD_PASSWORD() function.
- Login to MySQL as the root user
mysql -u root -p
SET PASSWORD for mythtv = OLD_PASSWORD('mythtv'); - where ‘mythtv’ is the password that is configured in the MythTV settings on the XBox.
- Test the settings in MythTV on the XBox
- Pat yourself on the back when it works and then go to bed…
This was pretty frustrating to have to deal with. If the error getting spat out of the MythTV frontend on XBMC was better this problem would have been much easier to find with a bit of searching on Google.
Posted in Gripes, Linux, MythTV, Tips and Tricks, XBMC Media Center | 8 Comments »
April 29th, 2007
One of the main reasons for moving to Linux from than Windoze was to be able to use the Linux based MythTV PVR (Personal Video Recorder). Since the Linux machine will hold lots of recorded TV it might as well hold a bunch of ripped DVDs as well. Finding a good Linux DVD ripper that gives you just enough control to get a great rip was harder than I thought it should be.
I’ve been playing around with AcidRip for a while now - playing with lots of the settings after reading about all the ins and outs of video encoding. AcidRip does some really useful stuff for you like automagically doing crop detection so you don’t end up wasting oodles of disk and time encoding the black bars at the top and bottom. It also lets you do a preview as well, which is mighty useful for checking that you’ve got the right crop settings and that you’ve actually chosen the correct sound track. Another bonus is that it encodes directly from the DVD. Under the hood it uses mencoder which is the other half of the popular video player mplayer. This means you can play with your hearts content with the huge array of settings that mencoder supports.
If you are happy using the LAVC or XVID encoding algorithms then AcidRip should work great for you. There are several articles floating on the internet about how to use it which were useful for the high level bits.
There are some down sides though. It doesn’t look like it’s been updated for a while and support on the AcidRip forum at Source Forge was almost non-existent. Also, it doesn’t really support any of the others encoders very well at all. I tried to use the newer X264 encoding but AcidRip doesn’t understand how to do anything more than a single pass encoding, which is by all means useless if you want a good quality encoding. Fortunately my XBox Media Center doesn’t fully support X264 encoding yet so I’m ripping using XVID, which AcidRip supports pretty well.
Posted in Linux | Comments Off
April 29th, 2007
Windows released the Wireless Client Update for Windows XP with Service Pack 2 in January of 2007. By all accounts it seems to have resolved some of the reasons why I switched to using the Intel PROSet Wireless application.
The Wireless Client Update lets you configure wireless networks as broadcast networks or as nonbroadcast networks. Additionally, Wireless Auto Configuration sends probe requests only for nonbroadcast networks.
Since the latest release of the Intel software caused 100% CPU usage on my machine I ditched and went back to Windows management of wireless.
With this Client Update installed I haven’t had any problems so far with my wireless network that isn’t broadcasting the SSID. Excellent. Thanks to the Non-broadcast Wireless Networks with Microsoft Windows article for providing the link to this breakthrough.
Setting up the nonbroadcast network isn’t as simple as it was for the Intel wireless management, but at least it’s possible without the machine going into a tailspin:
- View the wireless networks that are available. More than likely the nonbroadcast network won’t be displayed.
- Click on the Change advanced settings link underneath the Related tasks heading in the left hand pane.
- Choose the Wireless networks tab.
- In the Preferred networks section click on the Add button.
- Fill in the SSID that is being broadcast and select the Connect even if this network is not broadcasting checkbox.
- Save the changes and then see if Windows tries to connect to the network. This should fail since you haven’t specified the wireless network key. I found that I had to do this before Windows would even let me set the Wireless network key though.
- Hopefully now the network shows up in the list of networks that are available. If it does, go into the configuration settings for it again (this time the SSID should be disabled) and specify the correct wireless network secuirty settings for your network.
Posted in Tips and Tricks | Comments Off
April 29th, 2007
Last night I had the misfortune of updating to the latest version of the Intel PROSet Wireless application and device drivers (11.1.0.86). After updating the machine spins into a 100% CPU gobbling cycle by the ZCfgsvg.exe process. This is related to the Intel PROSet application. Killing the process moves the problem to the iFrmwork.exe process. After faffing around for 30 minutes trying to figure out what was poked I just uninstalled the whole damn thing.
The reason I upgraded was to try and resolve a very bizarre problem I’ve had for some time on my Windows laptop. Every so often the machine will throw a complete hissy fit with fonts not rendering making the machine unusable (even the Windows Start button text goes away). For some time I’ve had my suspicions that it was related to the Intel PROSet Wireless application somehow mangling something in the OS. It’s a pretty far fetched suspicion because no application should be able to prevent the OS from being able to render fonts onto the display. However, more often than not it all went pear shaped after an error box (with nothing in it) was popped up by the Intel PROSet Wireless application.
So, now I may not have the problem with fonts going away but I’m faced with using Windows wireless networking which I never got to really work satisfactorily in the past - why I moved to the native Intel application in the first place. Luckily I found another Windows download that helps resolve some of the problems I was initially having with the Windows wireless management - I’ll cover this in a later post.
Posted in Gripes, Tips and Tricks | 3 Comments »
April 29th, 2007
Last night I finally got around to upgrading from the Edgy Eft version of Kubuntu to the recently released Feisty Fawn version. The process was amazingly simple. I updated all of the existing packages that needed upgrading and then the system very nicely told me that there was a completely new version of Kubuntu that I could upgrade to. So off I went and started the upgrade process.
The only place that I had any problems was with the MySQL configuration. A number of modified configuration files needed to be replaced as part of the installation. I had knowingly modified the /etc/mysql/my.cnf file so it had a properly networked bind-address. I needed to do this so my Xbox Media Center (XBMC) Myth TV client can connect to the MythTV backed database.
The entire process took just over an hour and overall I think it downloaded around 700Mb of data. This put a pretty big dent in the monthly download quota but it came down at approximately 350kbps so didn’t actually take that long. Who knows how much I’ve downloaded via Windows updates over the course of a year. So far everythings working as expected and fingers crossed it stays that way.
Overall I’m really impressed at how easy and relatively painless the upgrade was. Well done to the guys at Kubuntu who put the 7.04 release together.
Posted in Linux | 2 Comments »
April 16th, 2007
For a while I haven’t been able to play video’s using Mplayer from the KDE GUI in Kubuntu. Playing files through the command line worked fine though. It only fails when using the "Open With" command from the Konqueror GUI and choosing "MPlayer Movie Player" I’d always get a Fatal Error box popping up saying:
Error opening/initializing the selected video_output (-vo) device.
I’ve been using MPlayer quite a lot from the command line since I’ve been doing a bit of DVD encoding of late using AcidRip so it hasn’t been too problematic.
Anyway, the problem is now resolved and what follows are some simple instructions that worked for me.
- When the problem occurs the MPlayer window should still open (it just doesn’t play what you asked it to).
- In the MPlayer window, right-click and choose Preferences
- Choose the Video tab.
- Change the highlighted Video Driver to something else. Mine was set to xmga, Matrox G200/… I don’t have a Matrox video card so that is probably why MPlayer was barfing. I changed it to xv, X11/xv and now it is working fine.
- Click the OK button
Posted in Linux | Comments Off
March 24th, 2007
I just updated to the latest and greatest Linux kernel in my Kubuntu installation to get the latest drivers for my Hauppauge PVR-150 card and found that the SATA driver configuration has moved in the kernel configuration.
I’ve done a kernel upgrade before so I knew to do the whole make oldconfig thing after copying over my known good Linux kernel configuration. I’d had a hell of a time figuring out how to get my machine to boot without the "Waiting for the filesystem…" halt during boot because I’m using SATA drives.
Anyway, the new location for the drivers is Device Drivers -> Serial ATA (prod) and Parallel ATA (experimental) drivers. Compiling in AHCI SATA Support worked great with the Intel ICH7 chipset that my motherboard has.
It’s possible that the SATA driver location change was somewhere between 2.6.17 and 2.6.20 because that is the jump in Linux kernel that I went through.
Posted in G, Linux, Tips and Tricks | Comments Off
December 11th, 2006
In one of my recent posts I thought I had stumbled upon a great way to synchronize all of my podcasts to my iPod and still be able to use smart playlists to listen to them on the iPod.
However, it turns out that when you have your iPod configured to automatically sync with your iTunes library it is not possible to play that music/podcast/whatever from within iTunes. You can play the content without any problems using the iPod directly, but with it connected via iTunes all of the tracks are greyed out and you can’t click on the play button in iTunes (even on the computer you are sync’ing with). This is particularly annoying for me because I have all my music at home and I want to listen to the music on the iPod at work through iTunes.
As of yet there is no iTunes store purchased content on the iPod since the New Zealand store just opened days ago, hoorah! So, it seems pretty weird that I can’t play any of the content via iTunes. Initially I thought that it was because I hadn’t authorized my work computer since I’d just opened an Apple account. It wasn’t though - authorization didn’t do anything. Reading the iTunes help it even mentions:
"To use your iPod with more than one computer, set up iTunes to manage songs manually."
Oh well. The workaround at the moment is to switch between manual synchronization turned on at work, and automatic synchronization at home. A little bit painful but seems to work as needed.
Posted in A, Gripes, Tips and Tricks | Comments Off
December 10th, 2006
While updating my iPod this evening I ran into a better way to manage podcasts. It’s so simple I don’t know why I didn’t do this when I first started using the podcast smart playlist hack to get podcasts to play nicely on the iPod.
The original smart playlist hack was done because there are a couple of problems with standard podcast synchronisation and playing behaviour on an iPod.
First, as soon as you start listening to a podcast (or anything I believe) it is marked as played. So, synchronizing non-played podcasts doesn’t work very well because I often loose what I was part way through listening. To combat this I have previously configured my iPod Nano to synchronise only checked podcasts so I can actively remove podcasts that I have actually finished listening to off the iPod.
Second, the standard behaviour of listening to podcasts on the iPod is bizarre. It plays one podcast and then as soon as it is finished jumps back to the list of the podcasts in the feed. Pretty hopeless since I listen to the podcasts in the car on the way to work and many of the podcasts are only a few minutes long. To address this I have additionally had appropriate smart playlists configured on the iPod so that I can listen to each podcast one after the other based on feed. Playlists work as expected, carrying onto the next item once the current one finishes. The smart playlists are easy to setup using Podcast is true and then matching appropriately on Artist or Album.
With my latest configuration I don’t synchronise podcasts to the iPod Nano at all. I simply synchronise the podcast related smart playlists. I still have the music synchronisation configured to only pull across checked items so I can remove podcasts that I have listened to and prevent music that I don’t really want to on the iPod. So simple.
Everything is much easier to manage now with the rest of the space on the iPod is filled up with a number limited randomly ordered music smart playlist. Excellent.
Posted in D, G, Tips and Tricks | Comments Off
October 31st, 2006
So I had this really strange problem with my new mobile phone. It takes a micro SD card for data storage and I bought a Kingston 1Gb card when I bought the phone. As far as the phone was aware there was a memory card installed because it showed the pretty icon on the main screen. However, whenever I tried to access any of the Memory Card storage area the phone would just beep with a "Not Allowed" error message displayed on the phone.
Very weird. Did some searching and found some luck in the D900 Memory Card help forum at http://www.expansys.com. One of the posts mentioned that giving the card a volume label worked. I thought to myself surely not, that’s just a little too obscure. So I checked my card in the laptop and sure enough there was no volume label. I gave the card one and then it worked.
Now that is some weird ass behaviour. I wouldn’t of ever thought of doing that in order to try and solve the problem. Nice one Samsung!
Posted in A, D, Gripes | Comments Off