My thoughts on Slackware, life and everything

Month: January 2010 (Page 3 of 3)

Second beta of KDE 4.4

Just before christmas in 2009, the KDE community released the second beta of the upcoming KDE 4.4 desktop environment (or to use the correct name, KDE Software Compilation 4.4).

In Slackware Linux’s development tree we still have 4.3.4 which works really well, but in KDE 4.4 some major strides are being made towards an even better work environment.

I decided to have a look at these new developments, especially since the Nepomuk search should work a lot better with the new and fast Virtuoso backend, and built the whole of KDE 4.4.beta2 for our 64-bit Slackware Linux.

I was not disappointed. Even though this KDE 4.4 prerelease is labeled “beta”, I have found it to be quite stable, fast, slick and very useable. The improvements which I have seen from 4.1 -> 4.2 -> 4.3 -> 4.4 keep amazing me… let alone the giant leap that lay between 4.0 and 4.0… everybody remembers the heated debates between the early adopters of KDE4 and those who hated it. At the time we added KDE4 to Slackware, that was seen as a milestone release. Now, I can not imagine ever going back to using KDE3 as my default desktop. And yes, Nepomuk search is pretty nifty, lightning fast and it does not feel like it is eating away my computer’s resources.

So, I am making my Slackware packages available to the general public – for all of you to enjoy. There is one caveat though:

You will need to run a development snapshot of 64-bit Slackware (meaning, slackware64-current of around 25-december-2009 or newer).

These packages do not work on the 64-bit release of Slackware 13.0. Neither do I have packages for the 32-bit release of slackware-current, simply because I do not have a computer in the house which is running slackware-current and is powerful enough to build KDE4 and the various dependencies in a reasonable time.

KDE 4.4 has requirements that are a bit different than with KDE 4.3.x which we have in slackware-current, or even 4.2.4 which we have in Slackware 13.0. You will have to upgrade several non-KDE Slackware packages as well as add some new ones.

Now, go and have a look at http://alien.slackbook.org/ktown/4.3.85/ . Version 4.3.85 is the same as 4.4.beta2.

  • All of the dependencies that you need are in the “x86_64/deps” directory.
  • All KDE packages can be found in “x86_64/kde”.
  • KDE localizations (language packs) are available in “x86_64/kdei”.

These are the steps you take to upgrade slackware64-current to KDE 4.4.beta2. It will bring you KDE4 even if you did not have it installed before. As part of the steps you will be downloading the new Slackware packages, but not the source or SlackBuilds. It is easy to modify the download command to also get you the sources if you want this.

  1. Download all of the directory http://alien.slackbook.org/ktown/4.3.85/x86_64/ :
    # lftp -c "open http://alien.slackbook.org/ktown/4.3.85/ ; mirror x86_64"
  2. Change into the directory “x86_64” which has been created:
    # cd x86_64
  3. Remove the no longer required kdelibs-experimental package:
    # removepkg kdelibs-experimental
  4. Install/upgrade the new dependencies:
    # upgradepkg --reinstall --install-new deps/*.t?z
  5. Install/upgrade KDE4.4.beta2 packages:
    # upgradepkg --reinstall --install-new kde/*.t?z

Of course, you should not run those commands while running X and certainly not while running KDE… After the upgrade process finishes, you can start a KDE session and you will be greeted by the familiar yet subtly different  user interface of KDE4.

NOTE: Some of the localizations (the KDEI series) had errors while building. Missing from this beta release are the localizations for the following languages:

ca, da, es, et, it, sr.

Here is a screenshot of my desktop with Dolphin showing a Nepomuk-powered search result for the word “slackware” in documents that it indexes, as well as Dolphin’s extremely convenient “terminal mode” (just press F4 to open Dolphin’s terminal if you need the speed of the commandline for some file operation). You’ll also notice that adding widgets to your desktop looks quite different now.

Have fun, Eric

Flash crashes Firefox on x86_64

Some people have reported that on 64-bit Slackware, and after installing Adobe’s 64-bit Flash plugin, their Firefox crashes with an “illegal instruction” error  when it loads a page containing flash video (like Youtube)…

I never had this issue, and for a lot of other people, flash works fine as well. However, the mystery remained until my friend Bruce (whose computer suffers from this crash bug, but only in Slackware, not in Gentoo) found the solution on the Gentoo bugtracker. Bruce wrote a howto on how to fix the crash .

Basically, the bug hits only certain Athlon64 CPUs which do not have the “lahf_lm” processor flag. This seems to be absent in certain processors of the “cpu family 15“. My own Athlon64 3200+ processor is from that same family but still mine has this “lahf_lm” flag (as shown in the output of the command “cat /proc/cpuinfo”).

What is the fix?

If you have an Athlon64 CPU which misses the “lahf_lm” instruction, you need to compile a small dynamic library that traps the “illegal instruction” signal and then emulates its effects. You should either place the plugin in mozilla’s plugins directory (so it’s loaded whenever the Flash plug-in is loaded) or force it to load by adding it to LD_PRELOAD environment variable. Below, I will show you how to build and install the library.

The source code written by Maks Verver is attached to the gentoo bug report I linked to earlier, and I’ve made a copy available here.

Download this “c” source file, then as root build the dynamic library “flashplugin-lahf-fix.so” using the following command (beware of line-wraps, the commands below are each a single line):

cc -fPIC -shared -nostdlib -lc -oflashplugin-lahf-fix.so flashplugin-lahf-fix.c

Copy the resulting library file “flashplugin-lahf-fix.so” to the mozilla plugin directory:

install -m0755 flashplugin-lahf-fix.so /usr/lib64/mozilla/plugins/flashplugin-lahf-fix.so

Restart your Firefox browser and check that it no longer crashes when you load a flash video.

Eric

Newer posts »

© 2025 Alien Pastures

Theme by Anders NorenUp ↑