インストールしたけど使わなかったので消したパッケージ
[INSTALL, DEPENDENCIES] ndiswrapper-utils-1.1
[INSTALL, DEPENDENCIES] ndiswrapper-common
[INSTALL] ndiswrapper-utils
[INSTALL, DEPENDENCIES] module-assistant
[INSTALL] ndiswrapper-source
手動でインストール(make)したパッケージ
ndiswrapper-1.52.tar.gz http://sourceforge.net/project/showfiles.php?group_id=93482&package_id=99148
$ tar xzvf ndiswrapper-1.52.tar.gz $ cd ndiswrapper-1.52 $ make $ sudo make install
もうひとつはまったのは、wpa_supplicant の認証で使うデバイス名。
普通 ndiswrapper を使うならデバイス名は ndiswrapper を指定すれば良いと思うけど、
# wpa_supplicant -D ndiswrapper \
-i wlan0 \
-c /etc/wpa_supplicant/wpa_supplicant.confでは駄目で、
# wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
とやれば認証ができることに気づくまで、かなり時間がかかった。
悩んだのは「psk に何を設定するのか」というところ。
$wpa_passphrase usage: wpa_passphrase <ssid> [passphrase] If passphrase is left out, it will be read from stdin
というコマンドを使って、
[無線設定] - [WPS] ページの「WPS用無線セキュリティ設定」にある
11g 用の SSID と 暗号鍵 をそれぞれ取得(コピー&ペーストのこと)し、
$ wpa_passphrase xxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
network={
ssid="xxxxxxxxxxxxxxxx"
#psk="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
psk=8344322004d26bea205b51bf4f53d0f48d4af8ae9ee4af452e07a041db032b83
}
とやると psk が変換されているように見える。wpa_supplicant が使うのは、この変換後の psk キーらしい。
まだ認証設定がされていないので、無線デバイスが点滅しっぱなしになる。
急いで WPA-PSK のことを調べる。
調べるとデバイスの設定に iwconfig が必要だということが分かった。
また、WPA-PSK で認証するツールは wpa_supplicant が良さそう。
両方とも apt でインストールする。
# apt-get install wireless-tools wpasupplicant
いろいろと試行錯誤した結果、手書きするのは次の二つだった。
(1) /etc/network/interfaces
# wireless connection
allow-hotplug wlan0
iface wlan0 inet dhcp
wireless-essid xxxxxxxxxxxxxxxx
wpa-driver wext
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
auto wlan0
(2) /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
network={
proto=WPA WPA2
key_mgmt=WPA-PSK
pairwise=TKIP CCMP
group=TKIP CCMP
ssid="xxxxxxxxxxxxxxxx"
psk="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
設定は、以上で終わり。
大丈夫そうなので、デバイスを接続する。
自動でデバイス用のモジュールをすると思うが、手動でモジュールをロードする場合は modprobe を使う。
(insmod では依存モジュールのロードとかをしない)
# modprobe ndiswrapper
デバイスの認識はこれで OK になった。
以下は、dmesg の抜粋( MACは伏せることにした )
ndiswrapper: driver netucg3n (BUFFALO INC.,08/08/2007, 1.20.00.0001) loaded
wlan0: ethernet device 00:1d:73:**:**:** using NDIS driver: netucg3n, version: 0x0, NDIS version: 0x500, vendor: 'IEEE 802.11n Wireless Card.', 0411:00E8.F.conf
wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
usbcore: registered new driver ndiswrapper