Lenny’s GStreamer plays Asao

I just discovered that Lenny’s GStreamer plays Nellymoser’s flash audio without any difficulty. This is awesome and definitely so much easier than with Ubuntu Hardy. Back then I had to convert such FLVs’ audio tracks into MP3 using ffmpeg built from source.

Unembedded PDFs with Epiphany and mozplugger (and Evince)

I don’t remember which issue I solved by installing mozplugger, but after that all PDF files were opened inside Epiphany, and I’d rather have them displayed in a separate Evince window. To achieve this I edited /etc/mozpluggerrc, and commented out these lines:

application/pdf:pdf:PDF file
application/x-pdf:pdf:PDF file
text/pdf:pdf:PDF file
text/x-pdf:pdf:PDF file
  ACROREAD()
  repeat noisy swallow(evince) fill: evince "$file"
  repeat noisy swallow(kpdf) fill: kpdf "$file"
  repeat noisy swallow(Xpdf) fill: xpdf -g +9000+9000 "$file"
  GV()

After that I shut down Epiphany and, as per the quite excellent mozplugger man page, deleted ~/.gnome2/epiphany/mozilla/epiphany/pluginreg.dat before restarting Ephy.

I suppose a tad lighter solution would be to override the defaults in my own per-user mozpluggerrc.

Hardware notes for my own reference

So the CPU inside my AMD Shuttle box (an SN45 with the latest, FN45S00W BIOS) is marked AXDA2600DKV4D, which means it’s a Barton-core XP 2600+ @ 1917 MHz with a 333 MHz bus (166 MHz external frequency) and a 11.5 multiplier. The manufacturing code, AFAICT, is AQZFA0348MPM, which in turn means the multiplier’s locked (the unlocked ones were made prior to week 39 of 2003, or 0339, according to OC forums).

The single memory module it’s accompanied by currently is a 512 MB Elixir PC3200U @ 400 MHz, marked CL3. And apparently I just destroyed it while gathering this data.

High CPU usage when doing anything with Nautilus

Nautilus began to manifest annoying sluggishness, which was the immediate result of it hogging up the CPU anywhere between 40 and 100 percent any time I did pretty much anything involving files or directories in the GUI. After covering some solution attempts which turned out to be dead ends, I created an extra user account for testing purposes and found that it was not susceptible to this issue.

Finally, I found a bug report on Launchpad with the “high cpu load” issue precisely described, and luckily with a fix included. I stripped my desktop directory (“Työpöytä” in my locale) from the variables defined in ~/.config/user-dirs.dirs (so that they referred to $HOME), replaced one symbolic link there with a genuine path, and then ran xdg-user-dirs-update && xdg-user-dirs-gtk-update before logging out and back in again. And now Nautilus is as nimble as ever.

Out of curiosity, I tried to reproduce the issue with my test user account: I inserted a symbolic link into one of the variables, as I suspected that was what triggered the sluggishness, but it turned out not to do so. So the exact cause still eludes me.

How to change MAC address while installing Lenny

(I’m reposting this from my other, more generic blog.)

It’s easy enough to change your network adapter’s MAC address once you have a Debian/Ubuntu system installed, but I needed to do this from within the Debian installer (Lenny beta 2), and it took me a while to figure out how. So I’m making a note of it for my own future reference, and maybe someone googling for the phrases I initially did will find this helpful.

So here’s the problem: my NIC’s default MAC address is (say) 01:02:03:04:05:06, and for one reason or another, I need it to be 06:05:04:03:02:01 instead. Furthermore, I need this change to be in effect while I’m inside Lenny’s installer, so ifconfig is not available. Here’s how I did it:

  1. From the installer’s boot menu, select Advanced options, and Expert install.
  2. Work your way down the steps as needed, starting from the top, until you’ve gone through Detect network hardware. Instead of the next one (Configure the network), pick Execute a shell from further down the menu.
  3. In the shell you can check your network interface status with
    # ip link show eth0

    You might use eth1 or some other port instead of eth0, but I haven’t done this with anything other than the one NIC I had in the setup, and so haven’t used anything besides eth0.

    In my case, entering the command gives the following output:

    2: eth0:  mtu 1500 qdisc noop qlen 1000
        link/ether 01:02:03:04:05:06 brd ff:ff:ff:ff:ff:ff
  4. Next, the spell you’ve been waiting for. Let’s change that MAC address!
    # ip link set eth0 addr 06:05:04:03:02:01

    If all goes well, ip won’t say anything. Re-run the ‘show‘ command listed in the previous point to see that it actually worked.

  5. Type exit to return to the installer.
  6. Now you pick up from Configure the network, and proceed installing from there.

One last point: the changed MAC address won’t survive the reboot finalizing the installation, so if you want to make it permanent, you’ll want to set it after the first boot into your new system, by using the method I linked to in the beginning (editing /etc/network/interfaces). Or you could to do it from the installer, using nano (in busybox).

Swirling towards the inevitable

It looks like I need to have a place for making notes while tackling Debian, so I’ve set up this blog. I don’t intend to make this as formal as my Ubuntu blog, but more of a “casual scribblings” type of thingy, so reader beware!

This initial post might be a good place to elaborate on my choice of operating system.

I’ve been a free software proponent for a long time, not only because of political reasons, but because I often find the open solutions superior to their closed counterparts. There was a time recently where this philosophy did not extend to the OS for some reason. I don’t recall what made me switch from Debian to XP; perhaps it was just laziness, not bothering to dual-boot when I had to have Windows for some tasks. So for some years I was a slave of Microsoft.

I mentioned Ubuntu, and what was my production machine up until recently still runs Hardy Heron, which I installed about six months ago. Initially I installed it parallel to Windows XP on a whim, after trying it out and taking a liking in how everything Just Worked. Then I discovered VirtualBox and found out I could now do MSN video conferences and other necessities through it, without having to dual-boot, so I ditched the XP partitions altogether.

Then I found myself more and more drawn back to Debian. It’s not that there’s anything technically wrong with Ubuntu. On the contrary, I think Canonical are doing a great job with it. It’s just that I’d rather see myself supporting (with my choices) a purely community-driven distribution than one involving a company, no matter how freedom-focused they may be. I wouldn’t consider myself a socialist either, however. I believe there is room for both community-driven and commercial operating systems — even closed-source ones.

In fact, because of my personal beliefs, I’m sometimes tempted by the BSD variants due to their licensing. In my ideal world, most code would be released under a permissive license, and despite the possibility of closed derivatives, there would be enough open, solid code for us to choose to use it exclusively, should we want to. But it may be that in real world, a GPL-type hack is required for us to have this choice. At the very least, I believe it’s required for the time being.

But I digress.

When I switched to a slightly lower-end machine for my desktop use, I had a chance to switch the OS as well, and the choice was more or less obvious, especially after having played around with lenny inside VirtualBox. So after some years, I’m back in Debian.

Debian (Lenny): How to change MAC address while installing

It’s easy enough to change your network adapter’s MAC address once you have a Debian/Ubuntu system installed, but I needed to do this from within the Debian installer (Lenny beta 2), and it took me a while to figure out how. So I’m making a note of it for my own future reference, and maybe someone googling for the phrases I initially did will find this helpful.

So here’s the problem: my NIC’s default MAC address is (say) 01:02:03:04:05:06, and for one reason or another, I need it to be 06:05:04:03:02:01 instead. Furthermore, I need this change to be in effect while I’m inside Lenny’s installer, so ifconfig is not available. Here’s how I did it:

  1. From the installer’s boot menu, select Advanced options, and Expert install.
  2. Work your way down the steps as needed, starting from the top, until you’ve gone through Detect network hardware. Instead of the next one (Configure the network), pick Execute a shell from further down the menu.
  3. In the shell you can check your network interface status with
    # ip link show eth0

    You might use eth1 or some other port instead of eth0, but I haven’t done this with anything other than the one NIC I had in the setup, and so haven’t used anything besides eth0.
    In my case, entering the command gives the following output:

    2: eth0:  mtu 1500 qdisc noop qlen 1000
        link/ether 01:02:03:04:05:06 brd ff:ff:ff:ff:ff:ff
  4. Next, the spell you’ve been waiting for. Let’s change that MAC address!
    # ip link set eth0 addr 06:05:04:03:02:01

    If all goes well, ip won’t say anything. Re-run the ‘show‘ command listed in the previous point to see that it actually worked.

  5. Type exit to return to the installer.
  6. Now you pick up from Configure the network, and proceed installing from there.

One last point: the changed MAC address won’t survive the reboot finalizing the installation, so if you want to make it permanent, you’ll want to set it after the first boot into your new system, by using the method I linked to in the beginning (editing /etc/network/interfaces). Or you could to do it from the installer, using nano (in busybox).

Tietokoneeni nimi -meemi

Jos muotoilisin tämän Tietokoneeni nimi -meemin tehtävänannon suomeksi, niin se voisi kuulua kutakuinkin näin:

Minkä nimen olet tietokoneellesi antanut, ja miksi juuri sen?

Varsinaisen pöytäkoneeni nimi on shuttle-xpc, ja toisen, tällä hetkellä lähinnä multimediakäytössä olevan boksin shuttle-celeron. Nimet tulevat siitä, että molemmat ovat Shuttlen valmistamia XPC-mallisia koneita, ja jälkimmäisessä on Celeron-suoritin. Voi, kuinka epäomaperäistä!

Aikaisemmin minulla oli kyllä tapana käyttää nimien keksimisessä vähän enemmän mielikuvitusta. Mutta melko epäomaperäisiä ne olivat silloinkin sikäli, että mieskäyttäjänä nimesin koneeni naisten nimillä.