Archive for the 'Computing' Category

Page 3 of 33

[selfnote] Find the DUN Channel of your bluetooth device

In the last days, I replaced my Nokia E90 with a Nokia N97 mini. As I’m using my mobile from time to time to hook up to the internet when traveling, I thought I just need to replace the MAC in my /etc/bluetooth/rfcomm.conf and that’s it. As always … Murphy striked back. After debugging for hours I realized the DUN channel seems depending on the model.

You can discover your DUN channel something like:

# hcitool scan
Scanning …
3C:F7:2A:1A:4D:2A Cycophone
# sdptool browse 3C:F7:2A:1A:4D:2A | \
grep -9 “Service Name: Dial-Up Networking” | \
tail -10 | grep Channel
Channel: 22

So your /etc/bluetooth/rfcomm.conf should now look like:


rfcomm0 {
bind yes;
device 3C:F7:2A:1A:4D:2A;
channel 22;
comment “Cycophone”;
}

[selfnote] Change CD-image while (HVM) domU is running

xm list | grep <VMName>
xm block-list <VMName_Number>
xm block-detach <VMName_Number> <VMName_Vdev> -f
xm block-attach <VMName_Number> file:///iso/disk.iso \
hdc:cdrom r

dkms rocks … or … how to get the Intel 82576 GBit NIC running on Lenny

We ordered a couple of the new HP DL160 G6, cause they can be equipped with a lot of RAM. Unfortunately it’s always the same with HP and the bandnew ProLiant 100 series … the driver for the NICs is missing/too old in the latest stable debian release. The DL160 G6 is shipped with a Intel 82576 GBit NIC, which isn’t recognized by Lenny, see also #522922.
I installed the system with another NIC installed (not really, but this is a way it works :) and wanted to get free the PCI-X slot again. So I did backport dkms and downloaded the latest igb driver. A short look into /usr/share/doc/dkms/HOWTO.Debian did advice me the way to create the DKMS driver package. Just after a couple of minutes I did roll out the igb-dkms_2.0.6_all.deb to the target maschine(s).
On the target systems I just installed dkms, the DKMS package and appropriate linux-headers and … sim, salabim … there was the interfaces. :)

OpenWRT WDS works like charm

A try with OpenWRT 8.09 in April to setup a WDS with additional AP functionality and encryption, like described in the documentation, failed. So I keeped with my halfbroken solution running on DD-WRT, which is going a bit too commercial these days in my eyes.
Now I have found time to try OpenWRT again for this purpose, since the issue was fixed really fast. I just did setup a stock 8.09.1 installation and then dropped the following into /etc/config/wireless:

config ‘wifi-device’ ‘wl0′
      option ‘type’ ‘broadcom’
      option ‘channel’ ’5′
      option ‘disabled’ ’0′
config wifi-iface
      option device “wl0″
      option network lan
      option mode ap
      option ssid “OpenWrt”
      option encryption psk2
      option key “keyforclients”
config wifi-iface
      option device “wl0″
      option network lan
      option mode wds
      option bssid 00:16:B6:19:63:C8
      option ssid “OpenWrtWDS”
      option encryption psk2
      option key “pskforWDS”

And guess what? It worked like a charm! So I could replace the odd DD-WRT boxes. Anyways ... does anybody have an idea where to find the sourcecode of anything > v23 SP1?


Too Cool for Internet Explorer