linux

OpenWrt: Split Toolchain for faster Firmware Build Times

Sven Bachmann
At work we’re using Hudson to automatically build projects whenever something is changed in a SCM. For most projects you’ll get fast results if your checkin breaks something which you don’t mind because you not always rebuild the complete project. Now, OpenWrt brings its own toolchain, which compiles the complete local and cross-compiling stuff because the compiler on the host is normally a bit behind and does not contain latest fixes for ARM and other architectures.

Intel SS4200 - Using Drive-LEDs for Harddisk-Status

Sven Bachmann
I’m using an Intel SS4200 as NAS with Raid 6. After installing a CF-Card with an IDE-Adapter as cheap (and horribly slow) SSD its now possible to put the harddrives to sleep. Since the end of 2009 Linux officially supports the harddisk-LEDs on the front of the SS4200 so why not use them to show the current drive running status? To do so, I wrote a little script which polls hdparm every 10s and sets the LEDs to the drive state (active = blue, suspended = off).

dpkg-divert: mismatch on package

Sven Bachmann
After upgrading Ubuntu 10.04 to 10.10 I encountered the following error, which prevented me from removing the fglrx package: “dpkg-divert: mismatch on package”. Read on for a solution. Dpkg maintains a list of diverted files. To see it, enter the following: dpkg-divert --list In my case, fglrx wanted to remove files from xorg-driver-fglrx called /usr/lib/libGL.so.1.2 and /usr/lib32/libGL.so.1.2. So what I had to do was: dpkg-divert --remove /usr/lib/libGL.so.1.2 dpkg-divert --remove /usr/lib32/libGL.

ssh: Wissenswertes für (Open)-SSH

Sven Bachmann
Ein Problem das mit SSH hin und wieder auftritt ist, dass es nach dem Ausloggen (oder einem Remote-Neustart) einfach hängt und man es abschiessen muss. Warum? SSH wartet einfach auf die Beendigung eines Prozesses die entweder viel später oder garnicht eintritt. Die Lösung: das SSH-Escape-Zeichen. Standardmässig steht dieses Zeichen auf ‘~’ (sprich, der Tilde). Beachten dabei sollte man noch, dass es im normalfall nur nach einer Newline, d.h. dem Drücken der Eingabe-Taste funktioniert.

Skype: Video doesn't work with Ubuntu 10.04 anymore - solved

Sven Bachmann
A friend of mine had a problem. With the upgrade to Ubuntu 10.04 his Logitech webcam didn’t work anymore with skype. The solution was a bit tricky, because he had all he need, means skype-wrapper was installed correctly. In the end it came out, that the menu link was not correctly updated or set-up by the installer and tried to call skype directly instead of skype-wrapper. With my 64-bit version this worked out of the box, maybe it’s just a problem of the 32-bit version - but easy to fix.

dnsmasq: stop dns-rebind attacks

Sven Bachmann
Hi, in this years Black Hat conference, Craig Heffner will show an attack against many home routers which is based on DNS rebinding. This article shows you, how to disable it on dnsmasq. DNS rebinding is based on the following scheme (thanks to Mitternachtshacking - article in german): Webbrowser loads page with flash from server www.mydomain.com DNS for www.mydomain.com is: 212.18.45.xx with TTL=1 Webbroswer loads xmlsocket-policy from server www.

Lucid Lynx Suspend Problems with Radeon Driver

Sven Bachmann
Since updating to Lucid, a Dell Inspiron 1501 with an Radeon Xpress 200M video card had become problems after going into suspend mode. After waking up it was not possible to reactivate the screen. It stays black and the only possibility was to power off. But with the help of Google, I stumpled upon to sites (Launchpad and ubuntu-bugs@lists.ubuntu.com) which gave two kernel options: radeon.modeset=0 pci=nomsi This will disable the kernel mode settings and message signaled interrupts.

myrescue: Abbild von defektem Datenträger erstellen

Sven Bachmann
Egal ob Diskette, CD oder Festplatte. Kein Datenträger ist vor einem Defekt geschützt - doch wie geht man vor sobald dieser auftritt? Hier stelle ich eine Möglichkeit vor, welche ausreichend Platz vorausgesetzt - zumindest das meiste noch lesbare aus einem Datenträger “herausholt”. Das Ganze erfordert ein wenig Linux Kenntnisse (also notfalls diesen Artikel speichern und jemandem geben der damit Erfahrung hat). .notice{padding:18px;line-height:24px;margin-bottom:24px;border-radius:4px;color:#444;background:#e7f2fa}.notice p:last-child{margin-bottom:0}.notice-title{margin:-18px -18px 12px;padding:4px 18px;border-radius:4px 4px 0 0;font-weight:700;color:#fff;background:#6ab0de}.notice.warning .notice-title{background:rgba(217,83,79,.9)}.notice.warning{background:#fae2e2}.notice.info .

In Brief: Linux 2.6.32 - KSM and KVM

Sven Bachmann
Can you imagine to have 52 Windows XP virtual machines - 1GB RAM each - running on a server with just 16GB? Ok, sounds a lot… but we are near the 16GB barrier. Anyway, this is one of the features in the new 2.6.32 release. Its called Kernel Samepage Merging, KSM. The approach is you start more than one VM and tell the kernel that they probably will use identically memory segments.