Monday, September 21, 2009

7 days in heaven with Ubuntu 9.04 (Jaunty)

I have an old Lenovo T23 laptop I use in my living room. It is connected to my stereo amp, and I have XP installed on it. Since i love Linux so much and i know that Linux is making it's way into the desktop, i thought of trying to switch Linux. I tried Linux for ~7 days and here are my conclusions. The initial requirements were simple really:
  • Be able to play Mp3 and other audio formats from a remote SMB share.
  • Be able to have a search-able catalog of the Mp3 based on their existing id3 tags.
  • Be able to browse the web.
  • Operate nice on modest hardware.
  • Connect to the network using a PCMCIA adapter.
The Lenovo T23 Hw spec:
  • Intel(R) Pentium(R) III Mobile CPU 1133MHz
  • Memory Size 512 MBytes
  • Chipset ICH3-M
  • S3 VGA 1024x768
  • PCMCIA Ralink RT2500 wireless network adapter
I picked Ubuntu 9.04 because i know that it is a desktop oriented distro. I know that Karmic is in alpha, so i didn't want to test some unstable software, I did not want to wait either.

Installation

Installation was a breeze, i just booted from the LiveCD and everything went silky smooth. All the HW got recognized, including the rt2500. X got up using the native resolution. While Ubuntu doesn't have any serious eye candy - it looks decent.

Wireless setup was fairly easy. An annoying thing is that the link led on my Ralink RT2500 was not lit up. While this is not a major issue it doesn't give any confidence. And indeed, the wireless stability and performance were sub par with those i'm used to in Windows. I would get disconnections here and there, and audio playback would sometimes get chopped due to bandwidth drops.

SMB Mapping

Ubuntu has the "Places" menu. It is cool. I was able to map my mp3 remote share pretty easily. The dialog used to map the share is a bit confusing though... what is a "bookmark" and what is "folder"? I had to play a little to figure those out. A good surprise was to find out that the share i defined using "palces" is accessible from some gnome based apps, for example Rhythmbox. I was also able to access SMB files from some apps using some sort of gnome "common dialog" infrastructure, so i could open a file using "smb://user@server/share" notation.

Linux Mp3 Players

Here is where the problems begin. The default mp3 player in Ubuntu is Rhythmbox. It looks promising. But, unfortunately some of my mp3 are non-English. Some are encoded using utf8. And some are using a hebrew codepage. In XP, this is not an issue: i can set my UI to be English and set the "Language for non-unicode programs" to Hebrew and that's it. There is no way to set this up in Linux without fiddling and hand editing with some /etc files.

Things are worse though. I am not 100% sure that Rythmbox even supports utf8 to begin with. I googled and found out people suggesting that the problem was in the id3 tags, and that they should be fixed to explicitly set the encoding to utf8.

What the heck, I knew Amarok - and I decided to drop Rythmbox in favor of amarok and give it a second shot. Disappointment again. First, i amarok is not gnome based so i could not use the share i configured using the "Places" menu to access the SMB share. It was so nice, using GUI only to define, but now i'm curios - where is it mounted? I opened a terminal (what a bummer, not a grandma proof OS) and the mount wasn't displayed on that list. OK, so i tried to mount the share using a mount command.

After 20 minutes of failed attempts and some hair pulling, i discovered that the reason that the mount command failed is that mount.cifs is not installed. Nothing in the error messages suggested that this could be the reason for the command to fail.... this is horrible. And i consider myself to be Linux knowledgeable... someone else would have given up already - not to mention a grandma.

After the share was mounted i went back to Amarok. It took amarok 8 hours to catalog my collection, during which the program wasn't very responsive. Why so much time?
After it was finished i discovered that again, the catalog had all my non-english mp3 files gibbrish... again an encoding problem.

Then i wanted to stick with what is familiar and i remembered xmms - the winamp clone. I fired Synaptics and searched for xmms. But there is no xmms in Ubuntu... all i found was xmms2, Sounds promising, no? NO! I expected xmms2 to be an improved version of xmms but from what i understand it's a client-server architecture - but i could not find a GUI front end for xmms2. Who cares about command line mp3 playing?

Then when i had a severe episode of wireless disconnects I ejected the PCMCIA card, and the machine froze. I gazed silently at the screen and took a long breath. I give up. Going back to Windows. Don't get me wrong, I love Linux. As a server platform I would take it anytime over Windows, without a doubt. But as a desktop - hell no! It is improving but it's not there yet.

Problems Summary
  • Link led not lit up on Ralink RT2500 PCMCIA card
  • Rhythmbox can't read non english chars from id3 tags
  • Inconsistent UI - some apps can access SMB, some can't
  • Amarok cannot mount smb from ui, must mount cifs manually to access smb
  • Trouble mounting cifs, no comprehensive error if mount.cifs is not installed
  • Unexplained wireless disconnects
  • Could not deal with non-english chars in amarok
  • No UI to set advanced locale settings (for non-english, non-unicode apps)
  • Takes 8-9 hours to scan an mp3 mount from amarok
  • Ejecting the pcmcia card freezes the machine