In case anyone’s interested, I’ve branched off my Debian ramblings into a separate blog just as I did with posts related to Ubuntu earlier this year.
Month: September 2008
-
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 markedAXDA2600DKV4D
, 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, isAQZFA0348MPM
, 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.
-
Querying dd for statistics
To get the statistics of a running dd, you send it a
USR1
withkill
:kill -USR1 $PID
-
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 ranxdg-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 be06:05:04:03:02:01
instead. Furthermore, I need this change to be in effect while I’m inside Lenny’s installer, soifconfig
is not available. Here’s how I did it:- From the installer’s boot menu, select
Advanced options
, andExpert install
. - 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
), pickExecute a shell
from further down the menu. - In the shell you can check your network interface status with
# ip link show eth0
You might use
eth1
or some other port instead ofeth0
, but I haven’t done this with anything other than the one NIC I had in the setup, and so haven’t used anything besideseth0
.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
- 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. - Type
exit
to return to the installer. - 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, usingnano
(inbusybox
). - From the installer’s boot menu, select
-
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 be06:05:04:03:02:01
instead. Furthermore, I need this change to be in effect while I’m inside Lenny’s installer, soifconfig
is not available. Here’s how I did it:- From the installer’s boot menu, select
Advanced options
, andExpert install
. - 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
), pickExecute a shell
from further down the menu. - In the shell you can check your network interface status with
# ip link show eth0
You might use
eth1
or some other port instead ofeth0
, but I haven’t done this with anything other than the one NIC I had in the setup, and so haven’t used anything besideseth0
.
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
- 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. - Type
exit
to return to the installer. - 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, usingnano
(inbusybox
). - From the installer’s boot menu, select
-
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 boksinshuttle-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ä.