Monday, 3 January 2011

Fedora 14 64 bit : Distorted Sounds From Flash Player "SQUARE"

If you have been using the new 64 bit beta of Flash Player ("Square") on Fedora 14, you might have noticed that some audio streams are distorted by a weird metallic noise that seems to emanate from the background. Apparently this is caused by a patch to glibc - which removes support for overlapping regions in memcpy. Although this is the right thing to do and clearly Adobe is using memcpy in a non-standard way, it's an annoying bug for non-techie users who don't really care much about whether an application is doing the "right thing" under the hood. 

There are several solutions for the problem at the moment:
I have tried the first two and they both work perfectly.

For those interested, the full Bugzilla thread can be found at https://bugzilla.redhat.com/show_bug.cgi?id=638477

Monday, 20 December 2010

Evince failing to open PDF files

I noticed that Evince was suddenly failing to open PDF files with the error message:

File type PDF document (application/pdf) is not supported

Trying to debug the problem, I tried opening a PDF document through the command line and got the following error message.


(evince:1514): EvinceDocument-WARNING **: /usr/lib64/libpoppler-glib.so.5: undefined symbol: cairo_surface_set_mime_data

(evince:1514): EvinceDocument-WARNING **: Cannot load backend 'pdfdocument' since file '/usr/lib64/evince/3/backends/libpdfdocument.so' cannot be read.

(evince:1514): EvinceDocument-WARNING **: /usr/lib64/evince/3/backends/libpdfdocument.so: undefined symbol: cairo_region_union_rectangle

(evince:1514): EvinceDocument-WARNING **: Cannot load backend 'pdfdocument' since file '/usr/lib64/evince/3/backends/libpdfdocument.so' cannot be read.


Now it suddenly makes sense! Fedora 14 has a broken implementation of Cairo graphics library which causes desktop themes to look absolutely ghastly. To get over the problem, I downgraded the Cairo libraries to F13 versions. However, this now seems to have broken Evince. Sure enough; upgrading cairo back to F14 versions made evince work again. Now I am stuck between having a working PDF reader and a nice desktop. It sure is a tough choice!

Saturday, 16 October 2010

Haiku - Remember when...

Windows 95 was "awesome" and Windows 98 was slated to be "awesomer"? Linux was taking its baby steps and Mac OS was "pretty" and ruled the DTP circuit??

I was a young 'un, getting my feet wet in the magical world of computers. A Pentium 200Mhz with 32MB of RAM was my gateway in to the realm. (Yes.. it had a turbo button). Now, I do realise that there were even more magical times when people hacked away on mainframes and owning a Zinclair or Apple ][e was considered to be the coolest thing ever. I am too young to have lived in that era. So all of you grey beards, shut up and I promise to get off your lawn in a jiffy.

Anyway, the reason I am going off on a nostalgic tangent is because I remember being really excited when BeOS was announced somewhere in the mid 90's. It was a multimedia OS from the ground up; something alien to us Windows drones who had to contend with belts-and-braces multimedia extensions that never worked as advertised. BeOS had support for multi-threading and pre-emptive scheduling at its core - making processor heavy multimedia apps work faster and better. It had a new file system that supported larger files than FAT32 and most importantly, it had a cool new interface!  I was watching with an open mouth as an engineer demoed playing 4 videos at the same time in a single box running BeOS. My computer couldn't even play a single video without losing frames or freezing up. In that time period where hardware was getting faster and cheaper, an OS that could really utilise those features was a wonderful thing indeed.

Unforutnately, after the initial hype, BeOS faded into the background and was never heard of again. (The conspiracy theorist in me thinks that a certain turtleneck clad individual had something to do with it. BeOS almost managed to become the new Apple OS before they did an about turn and bought NEXT instead). Things moved on and now multimedia is not such a big deal any more. Even my phone has more multimedia capabilities than my first computer now.

Relevance aside, I was pleasantly surprised to learn that BeOS still survives in the form of the Haiku project - a project run by enthusiasts to develop and maintain BeOS. (Hands up if you stumbled on it after reading xkcd). The current version is alpha 2 and the first thing that stuck me after first booting it up is its 90's style interface. (That's not a bad thing).  The 16bit icons and pointers really made me feel nostalgic. However, regardless of the retro look, Haiku seems to be a fairly modern operating system. I was particularly impressed with the task manager - which showed a cascading menu of processes and child-processes with their memory usage embedded in the menu. That is something I would like to have in my regular desktop as well.



I don't think I am qualified enough to formally review Haiku. It is still in the alpha stage, so there aren't that many applications or features to talk about either. But, it looks to be a good enough operating system for basic day-to-day tasks. Given enough contributors, who knows? It might even become a mainstream OS someday.

If you grew up in the 90's, I definitely recommend booting up Haiku and letting the nostalgia sweep over you.

Thursday, 16 September 2010

Adobe Flash 'Square' for Linux 64bit

After putting 64bit native Linux Flash player on hold indefinitely, Adobe have done an about turn and released a version of Flash Player 10.2 'Square' preview for 64 bit Linux as well. Good things about this release are that:
  • After some serious security flaws were discovered, Adobe advised on an upgrade. But for us poor 64bit Linux users, there was no 64 bit version to upgrade to until now.
  • It's a native Linux 64bit binary which should integrate well with Pulseaudio etc and use less reources. This funny comment on Slashdot illustrates the previous state of things really well.
  • I suddenly seem to be able to watch 1080p HD videos on Youtube. Can't recall ever seeing that option while I was using the old player.
So go ahead and grab the new version from here. To install the plugin in Fedora, just untar and copy libflashplayer.so to /usr/lib64/mozilla/plugins

Saturday, 11 September 2010

Ugly font rendering in Chrome Linux Beta and Unstable

Just upgraded to Google Chrome Beta (6.xx) and then to Unstable (7.xx) in my Fedora box and noticed the  butt-ugly font rendering in both versions. Apparently it's a known issue with gtk-webkit, but I would have expected Google to fix something as elementary and important as font rendering before concentrating on anything else.

A bit of Googling (ofcourse!) dug up this excellent post that fixed the font rendering issue in seconds!

Compare the before and after shots to see how severe the issue is:

Before


After

Thursday, 9 September 2010

Firefox 4 Beta On Fedora

Just stumbled on this blog post while skimming through Google Reader and thought I should share it.

To get the latest Beta installed, follow these steps:


sudo wget -O /etc/yum.repos.d/fedora-firefox4.repo http://repos.fedorapeople.org/repos/spot/firefox4/fedora-firefox4.repo

sudo yum install firefox4


Wednesday, 30 June 2010

DVD Playback on Fedora 13

I never had a real need to watch DVD's on a computer - so DVD playback was not something I needed to get working with Fedora. Recently however, the need arose and to my surprise, the amount of information on the internet about Linux DVD playback is very out-of-date. libdvdcss - the library required to decrypt DVD content is not distributed by any of the usual repositories due to the licensing/legal restrictions (In the US, using libdvdcss may be considered as a DMCA violation. Whoever comes up with these ridiculous laws in the "land of the free" anyway?) The only repository carrying it was livna - which has sadly disappeared off the internet.

Luckily, ATrpm's is still maintaining an up-to-date list of packages and I found the F13 x86_64 version through pbone at http://rpm.pbone.net/index.php3/stat/4/idpl/14089850/dir/fedora_13/com/libdvdcss2-1.2.10-5.fc13.x86_64.rpm.html.

Install is a breeze with:
sudo yum --nogpgcheck localinstall libdvdcss2-1.2.10-5.fc13.x86_64.rpm

Now DVD's work flawlessly with Totem.