16 décembre 2005

Adaptateur Wifi D-Link USB DWL-122 ss linux PPC

This is what got a DWL-122 (D-Link 802.11b USB stick) working on my PowerBook 12":
I installed linux-wlan-ng from universe repository, modified /etc/wlan/wlan.conf and copied /etc/wlan/wlancfg-DEFAULT to /etc/wlan/wlancfg-"your_ssid_here" and edited that accordingly.

I then created the following script to run whenever I need it (DHCP-no WEP configuration):


sudo modprobe prism2_usb
sudo rmmod prism2_usb
sudo modprobe prism2_usb prism2_doreset=1
sudo wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
sudo wlanctl-ng wlan0 lnxreq_autojoin ssid="your_ssid_here" authtype=opensystem
sudo dhclient wlan0

Somepeople report that they had to execute the "sudo wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable" line twice to get the interface up.

For an static IP config with WEP (hexadecimal key), here is the script:

#! /bin/sh
# Wireless USB setup

# Step 1 - enable wireless USB for wlan0
wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable

# Step 2 - set SSID for your network
wlanctl-ng wlan0 lnxreq_autojoin ssid=stayoutofmynet authtype=opensystem

# Step 3 - set WEP attributes
wlanctl-ng wlan0 lnxreq_hostwep encrypt=true decrypt=true
wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11PrivacyInvoked=true

# Step 4 - set WEP key
wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKeyID=0
wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey0=12:34:56:78:9A

# Step 5 - set IP configuration
ifconfig wlan0 netmask broadcast
route add default gw
So you can easily mix the two scripts for e.g. DHCP-WEP configuration support.

Enjoy wireless on PPC Linux!

Clavier PowerBook & Ubuntu PPC Breezy 5.10

Pour aller modifier la configuration du clavier belge (ou autre) pour coller à celui d'un powerbook c'est ici que ça se passe: /etc/X11/xkb/symbols/ sinon difficile de retrouver l'@, non?

vi be pour un clavier belge par exemple

28 novembre 2005

Thunderbird sous MacOSX à la main

Thunderbird plante pour accéder à un sous répertoire de votre boîte à courriel (trop volumineux):
  • Navigate to ~/Library: Thunderbird: Profiles: your_profile: Mail: Local Folders. Identify the mailboxes you seek to remove.
  • Each mailbox has three pieces to it - i.e. inbox.sbd, inbox.msf and inbox with no extension.
  • Take the file with no extension, backup it if needed. Then remove it - i.e. rm inbox.
  • Create an empty version of this box - i.e touch inbox.

25 novembre 2005

Routes statiques permanentes sous Debian

The correct way to add a static route in a GNU/Linux Debian Sarge is in /etc/network/interfaces as an up command.
auto eth0
iface eth0 inet static
up "/sbin/route add -net netmask gw"
down "/sbin/route del -net netmask gw"

Bienvenu sur mon bloc-notes