画面は青かった。

・ワ・)うえてしぬのだ

Debian(squeeze)無線LAN環境の構築

Debian(squeeze)で無線LANを使うまでの作業メモ。
今回、魔が差して有線LANに接続せずに環境を構築してみた。

環境

参考サイト
Ubuntu 9.10で無線LANアダプタWLI-CB-AMG54を使う
無線LAN導入記(on Debian/GNU Linux Etch) - *読書と物理と時々車 - Yahoo!ブログ

#lspci -v

16:00.0 Ethernet controller: Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter (rev 01)

Subsystem: Melco Inc Buffalo WLI-CB-AMG54

Flags: bus master, medium devsel, latency 168, IRQ 16

Memory at 44000000 (32-bit, non-prefetchable) [size=64K]

Capabilities: [44] Power Management version 2

Kernel driver in use: ath5k

Atheros用のカーネルモジュールを読み込まない

#echo "blacklist ath5k" >> /etc/modprobe.d/blacklist.conf

PCを再起動。

#lspci -v
16:00.0 Ethernet controller: Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter (rev 01)
Subsystem: Melco Inc Buffalo WLI-CB-AMG54
Flags: medium devsel, IRQ 16
Memory at 44000000 (32-bit, non-prefetchable) [disabled] [size=64K]
Capabilities: [44] Power Management version 2

ndiswrapperをインストールする。
以下のパッケージをインストール。

ndiswrapper-common_1.56-1_all.deb
ndiswrapper-utils-1.9_1.56-1_i386.deb
ndiswrapper-source_1.56-1_all.deb
module-assistant_0.11.3_all.deb
debhelper_8.0.0_all.deb
dpkg-dev_1.15.8.10_all.deb
libdpkg-perl_1.15.8.10_all.deb
libtimedate-perl_1.2000-1_all.deb
make_3.81-8_i386.deb
html2text_1.3.2a-15_i386.deb
binutils_2.20.1-16_i386.deb
po-debconf_1.0.16+nmu1_all.deb
intltool-debian_0.35.0+20060710.1_all.deb
gettext_0.18.1.1-3_i386.deb
libcroco3_0.6.2-1_i386.deb
libglib2.0-0_2.24.2-1_i386.deb
libgomp1_4.4.5-8_i386.deb
libunistring0_0.9.3-3_i386.deb

BUFFALOのページからWindows2000用ドライバをダウンロード・インストール。

#ndiswrapper -i netamg54.inf


インストール状況を確認。

#ndiswrapper -l
netamg54 : driver installed
device (168C:0013) present (alternate driver: ath5k)

#depmod -a

#modprobe ndiswrapper
FATAL: Module ndiswrapper not found.

ndiswrapperのモジュールが無いらしい。

DVDを挿入。
モジュールをビルドする。

#module-assistant prepare
#module-assistant a-i ndiswrapper

今度は通ります。

#modprobe ndiswrapper

自動起動ファイルの生成と起動時にロードする設定。

#ndiswrapper -m
#echo "ndiswrapper" >> /etc/modules

私の無線LAN環境はWPA2PSK(TKIP)なので、wpa_supplicantをインストール

#dpkg -i wpasupplicant_0.6.10-2.1_i386.deb

wpa_supplicant.confを生成

#wpa_passphrase myid mypass > /etc/wpa_supplicant/wpa_supplicant.conf

network={
ssid="myid"
scan_ssid=1
proto=RSN
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
psk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
}

/etc/network/interfacesを編集

iface wlan0 inet dhcp
wpa-essid "myid"
wpa-driver wext
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

接続てすと

#ifup wlan0