blog of Joost Yervante Damad
debian
Intel® Matrix Storage: software raid?
Nov 15th
It’s still unclear to me if this is software raid or not.
It might depend on the chipset. My chipset is “Intel® ICH9M-E SATA AHCI/RAID controller hub” which seems to hint that it is hardware RAID.
Dear lazyweb, anyone know how to find if this is software or hardware raid?
RC-Bugs / Debian Bug Sprint
Oct 30th
The Debian Lenny release has still quite a big list of Release Critical bugs, and as Debian developer I feel that I should do my share, and at least look at the list of bugs and see if there’s any I could do something for.
Almost always though, I find that I won’t touch the remaining bugs in the list.because of one or more of these reasons:
- a package I really don’t care about
- hugely complex package or might also use something obscure like cddb
- it seems like people are already looking into it
- it requires a political solution, not a technical one
As part of the effort to get Lenny released, Joss Mouette started the Debian Bug Sprint.
This is really a cool concept, and it is a shame not more people participated.
The reason for me it is cool is that it forced me to break the rules I mentioned above, because I got a bug which fitted 1 and 4 of my list above!
Turned out this bug is really a border case in interpretation of Debian policy.
The package is perfectly usable without any extern dependencies, hence it is currently in the main section of Debian. However it doesn’t end there. The package also has a download script that can fetch firmware images for certain printers. It appears for people with these printers the package is NOT usable without external files.
Aparantly though, the current, as one person involved in the bug calls it, “spirit” of Debian is to tolerate this, as it is good enough that it is usable without external dependencies for SOME persons.
However the bug submitter doesn’t agree, and thinks this is a case that needs addressing withing the Debian project.
I suggested splitting up the package and moving the download script to contrib, but this was mostly dismissed as idea.
The end result is that the maintainer decided to escalate the problem to the Debian CTTE.
This means it probable won’t be solved by today, soo I will have to bake cookies for someone
getaddrinfo V4MAPPED
Oct 28th
When writing an IPv6 enabled server, using the AI_V4MAPPED flag to get IPv4 addresses as IPv6 mapped addresses also somehow requires the AI_ALL flag or it doesn’t work.
This conflicts the manual page and also the opengroup docs.
Update: the above is on Debian GNU/Linux sid with glibc 2.7-15.
Just tested it on opensolaris and they DO provide the correct behaviour. Time for a bugreport
adobe flash 10 in debian unstable
Oct 23rd
Because I see a lot of very complex tutorials, I’d like to point out that it can be done much easier:
- add deb http://ftp.nl.debian.org/debian experimental main contrib to your /etc/apt/sources.list (replace nl by your favorite mirror)
- aptitude update
- aptitude -t experimental install flashplugin-nonfree
- done
That’s all.
virtualbox 1.5.6, 2.6.25 and debian sid
May 14th
I use virtualbox (the non-free version) to run Adobe Photoshop Lightroom.
I had some new photos to import, therefor I tried to start Virtualbox.
I first tried version 1.6.0, however this version locked up my PC the hard way, without any clue what happened, therefor I quickly moved back to version 1.5.6 (accidentally the last non-Sun version) as this one worked beautifully before.
The kernel modules had to be regenerated, but a simple
/etc/init.d/vboxdrv setup fixed this.
However it turned out that virtualbox didn’t start at all. There was a problem with one of the shared libraries it uses. Downgrading libxalan110-dev and libxalan110-dev by use of snapshot.debian.net fixed it for me.
See also this bug for more details.
Linux Debian 4.0 / Lite-on Lightscriber
Jul 18th
To get the lightscriber dvd/cd writer I recently bought to write labels under amd64 debian linux 4.0 I had to do the following things:
- download the basic lightscriber library from http://www.lightscribe.com/
- download the 4L lightscriber label software from LaCie
- convert both rpms with alien to deb files in a debian 4.0 ia32 schroot
- extract both deb files with dpkg-deb -x / towards the root of your amd64 system
- make sure the ia32 chroot libraries are available in the librarypath for the tool
- run the GUI, as root if you want to burn the label on the CD
Use the gimp to make the labels, there are templates with the correct available together with the LaCie software.
Dell Precision M65 and xorg and synaptics
Jun 16th
Out if the box the settings for the synaptics touchpad are horribly bad. Especially since this laptop has a native resolution of 1920×1200.
Thanks to this webpage it now works great!
This is the relevant section of my /etc/X11/xorg.conf:
Section "InputDevice" Identifier "Synaptics Touchpad" Driver "synaptics" Option "InputFashion" "Mouse" Option "SendCoreEvents" "false" Option "Device" "/dev/psaux" Option "Protocol" "auto-dev" Option "HorizScrollDelta" "0" Option "SHMConfig" "on" Option "RTCornerButton" "0" Option "RBCornerButton" "0" Option "TapButton1" "0" Option "TapButton2" "0" Option "TapButton3" "0" Option "Buttons" "8" Option "ZAxisMapping" "4 5 6 7" Option "TopEdge" "100" Option "BottomEdge" "670" Option "LeftEdge" "100" Option "RightEdge" "950" Option "MaxSpeed" "2.0" Option "MinSpeed" "0.5" Option "AccelFactor" "0.05"EndSection
This is great!
linux & logitec media keyboard Y-BN52
Jun 16th
To make it work, set the following xmodmappings:
keycode 174 = XF86AudioLowerVolumekeycode 176 = XF86AudioRaiseVolumekeycode 160 = XF86AudioMutekeycode 162 = XF86AudioPlaykeycode 164 = XF86AudioStopkeycode 144 = XF86AudioPrevkeycode 153 = XF86AudioNextkeycode 236 = XF86Mailkeycode 130 = XF86HomePagekeycode 223 = XF86Sleepkeycode 161 = XF86Calculatorkeycode 230 = XF86Favorites
E.g. add this to a file in your homedir and load it with xmodmap from your .xsession file.
kernel mode pppoe
May 28th
Kernel mode pppoe, the debian way:
/etc/ppp/peers/dsl-provider:
plugin rp-pppoe.so eth1
noipdefault
defaultroute
hide-password
lcp-echo-interval 60
lcp-echo-failure 3
noauth
persist
mtu 1492
mru 1492
user "xxx@PROVIDER"
/etc/ppp/pap-secrets:
"xxx@PROVIDER" * "myfunkypass"
/etc/network/interfaces:
auto mydsl
iface mydsl inet ppp
provider dsl-provider
Replace eth1 by your dsl ethernet link device name, xxx by username, PROVIDER by your provider, and myfunkypass by your password.
Enable with ifup mydsl, disable with ifdown mydsl.
debian in kvm mini howto
Apr 30th
I started by downloading the debian-40r0-i386-CD-1.iso via jigdo.
Then I created a disk image file like this:
qemu-img create vdisk.qcow 1G
Then I boot kvm like this:
kvm -hda vdisk.qcow -cdrom debian-40r0-i386-CD-1.iso -boot d -m 256
(It may be needed to change the permissions of /dev/kvm)
Proceed with installation as a normal debian installation. I only installed the minimum.
The default kvm uses a build-in user space networking. However I’d like to have bridged
networking.
First I create a tap0 device in /etc/network/interfaces:
iface tap0 inet manual pre-up tunctl -b -u <my_user_name> -t tap0 pre-up ifconfig tap0 up post-down tunctl -d tap0
Make sure you have tunctl installed, its part of the uml-utilities package.
Replace the <my_user_name> by the user you want to run kvm as.
Normally my network interface is configured via DHCP, soo I want to keep that.
However I want kvm to be also able to access my LAN. Therefor I create a bridge interface:
iface br0 inet dhcp bridge_ports eth0 tap0 bridge_maxwait 0
Which I bring up via DHCP. Of course I’ll have to change eth0 also:
iface eth0 inet manual
Finually make sure they are brought up in the right order:
auto lo eth0 tap0 br0
In total this gives an /etc/network/interfaces like this:
auto lo eth0 tap0 br0 iface lo inet loopback iface br0 inet dhcp bridge_ports eth0 tap0 bridge_maxwait 0 iface eth0 inet manual iface tap0 inet manual pre-up tunctl -b -u <my_user_name> -t tap0 pre-up ifconfig tap0 up post-down tunctl -d tap0
Finually edit the file /etc/kvm/kvm-ifup and put everything in it in comments.
Now bring down the network and bring it up again:
ifdown -a
ifup -a
And then start the kvm:
kvm -net nic -net tap,ifname=tap0 -hda vdisk.qcow -m 256 -localtime
Once booted, log in and change the /etc/network/interfaces file in the image to use DHCP:
iface eth0 inet dhcp
If you bring down the net and bring it up again (within the kvm!):
ifdown -a
ifup -a
you should get a DHCP lease from your LAN and the kvm is available on the LAN.
Now it’s time to start using it!