Archive for the ‘Generic’ Category

Creative ZEN X-Fi on Ubuntu 9.04 Jaunty Jackpole

Friday, June 5th, 2009

I have a Creative Zen X-Fi portable media player for some time now. I have managed to make it work with previous Ubuntu versions, but only after a lot of hard work of googling and meddling with the sytem.

I didn’t have the oportunity to test it with the latest Ubuntu since I upgraded everything to 9.04 up until a few days ago.

As with previous Ubuntu versions, 8.10 and 8.04, the Zen was not automatically recognized by any media player, or by Gnomad, which by the way is sooooo awful.

After doing some digging around in the ubuntuforums I found a way to make it happen.

The problem is that the version of libmpt (the library that makes things work) provided by the canonical repositories is an older one and does not support the player out of the box.

Running mtp-detect from the command line, connected to the player but seemed not to recognize it.

In the forums there was a reference for a PPA repository that contained more recent versions. I tried adding the repository to apt but could not get the libmtp package to upgrade (don’t know why). So, I simply downloaded the deb packages manually, libmtp8_0.3.5-0ubuntu1_i386.deb, mtp-tools_0.3.5-0ubuntu1_i386.deb, from here. Then I installed them manually with GDebi.

That did it. Running mtp-detect now, connected and recognized the player. So did Amarok, Banshee and Rhythmbox.

So, if you want to get your Createive ZEN X-Fi working under Jaunty then you simply have to manually install the 2 packages I mentioned above.

Adobe AIR on Ubuntu and software installation on Linux

Tuesday, April 7th, 2009

I was looking for a twitter application that could be integrated to my desktop environment. Not something web based, or browser based like TwitterFox. twitter.com has a list of desktop applications. Most of these are Adobe Air based. I have set my eye on installing Twhirl. I needed AIR for that.

Adobe Air (Adobe Integrated Runtime) is a cross-platform runtime environment for rich internet applications that can be deployed on the desktop. It is based on Webkit and Flash technologies.

Ubuntu does not come with Adobe Air pre-installed so I looked it up in Synaptic to see if it is available on one of the repositories. Unfortunately it was not. I don’t like it when something does not have ready deb packages because most of the time that means that you will have to either compile the application from source code yourself or install the binaries by simply copying them to some folder. Unless you do that for development or testing purposes it just not worth it.

Adobe AIR installer in action.

Adobe AIR installer in action.

This big difference with the “Windows philosophy” of installing software is often a major point of criticism of Linux. It is true that proprietary software is not that easy to install on Linux as in Windows. But, it is not Linux that should be put to blame. It is those who release ports of their applications to Linux without offering debian or rpm packages, or a proper installation wizard.

Adobe AIR for Linux is an exception that proves that if the vendor is willing, it can provide an easy way to install and integrate to your system.

The Setup screen.

The Setup screen.

I downloaded the installer, named AdobeAIRInstaller.bin. I expected an awful command line installer that would resolve to unnecessary dialogs and file copying. None of  that! I got the same process and same look and feel as the windows installer. A truly cross platform procedure. To my surprise, the installer integrated Adobe AIR to the packaging system with a proper debian package. It also integrated excellently into Gnome creating proper menu entries. The only minus point is that I still had to execute the installer from the command line

Installing Twhirl

Installing Twhirl

When I downloaded Twhirl, I did not expect that it would install itself just by double clicking the twhirl-0.8.6.air file. But it did! I didn’t expect it to update itself so easily neither. It looked and felt exactly the same as when I tried it later on a windows box.

AIR and Twhirl menu entries after setup.

AIR and Twhirl menu entries after setup.

Also, the runtime integrated a debian package to dpkg. Output from apt-cache:

anirothan@monarch:~$ apt-cache --installed --names-only search adobeair
adobeair1.0 - Adobe AIR
anirothan@monarch:~$ apt-cache --installed --names-only search twhirl
de.makesoft.twhirl.0ea062bc275e7ed1e6ec3762effd73c7158adf33.1 - twhirl - a social networking client 

I’m not trying to promote Adobe or anything. Other Adobe products like Adobe Reader do not offer this kind of experience. It just proves my point. Installation of proprietary software can be as easy as in Windows. With all that wizards and stuff. The only thing that is required is the vendor’s commitment in cross-platform development. 

Personally, I think that package repositories, either deb or rpm, are far superior to the installation paradigm promoted in Windows. What can beat a simple apt-get install <software name here>, or a full blown graphical package manager?

The one about Centriment

Saturday, March 14th, 2009

You may be wondering, what is centriment?

Well, it’s a name that just popped into my head one day while playing with some code. If someone asked me to tell him what this invented word means, I’d have to say that it is the feeling that a programmer, a hacker, gets when he is on roll and knows that the hack he is doing right now is super-cool. It is the eureka moment you get when you suddenly realized the solution to a bind-boggling problem. It is the feeling you get when you hunt down and squash to mere pulp the most annoying bug you were ever faced with after a couple of days of exhausting debugging. In other, simpler, words it’s the joy of  hacking.

When I finally decided to setup my own blog, it was clear to me how it should be named. Hence, centriment.com. In this blog I will try and share my experiences and opinions in the field of computing.

If you are also wondering about the subtitle, “stories of the spirit living inside the computer”, it is a tribute to the wizard book (Stucture and Interpretation of Computer Programs) and its authors, Harold Abelson and Gerald Jay Sussman, one the best computer books I ever read (still reading it actually Razz).