- WN-G300UAを差し込んだ後にlsusb
で無線LANを確認
root@voyage:~# lsusb
Bus 001 Device 002: ID 0000:0151
Bus 002 Device 002: ID 0bda:8178 Realtek Semiconductor Corp.
RTL8192CU 802.11n WLAN Adapter
Bus 005 Device 002: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
-
lsmodでモジュールのロードを確認。
root@voyage:~# lsmod | grep 8192
rtl8192cu 50361 0
rtlwifi 47782 1 rtl8192cu
rtl8192c_common 27604 1 rtl8192cu
mac80211 210775 2 rtlwifi,rtl8192cu
usbcore 94174 9 snd_usb_audio,rtlwifi,usb_storage,
ohci_hcd,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbhid,rtl8192cu
- /etc/network/interfaces を編集
root@voyage:~# remountrw
root@voyage:~# vi /etc/network/interfaces
-------------------------------------------------------------------------
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback
###auto eth0
###iface eth0 inet dhcp
# as wireless client (supplicant)
auto wlan0
iface wlan0 inet dhcp
#wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
-------------------------------------------------------------------------
- /etc/network/interfaces
の編集終了後、再起動します。再
起動後ifconfig 及びiwconfig で無線LANカードが認識されているか確認。
root@voyage:~# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:44 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3356 (3.2 KiB) TX bytes:3356 (3.2 KiB)
wlan0 Link encap:Ethernet HWaddr 90:j4:dy:c7:53:8g
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@voyage:~# iwconfig
lo no wireless extensions.
wlan0 IEEE 802.11abg ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
eth0 no wireless extensions.
- こ
の時点では、Voyage MPD の無線LANが認識されているだけです。無
線LANアクセスポイントに接続する為に wpa_supplicant を使います。
wpa_supplicant
はVoyage MPD に既にインストールされているはずです。
root@voyage:~# dpkg -l | grep wpa
ii wpasupplicant 0.7.3-4 client support for WPA and WPA2 (IEEE 802.11i)
- wpa_passphrase というコマンドで
wpa_supplicant.conf ファイルを作
ります。以下の ssid と pass は無線LANアクセスポイント(WiFi ルータ等)の裏面などに書
かれているSSID とパスフレーズ(暗号化キー)です。
root@voyage:~# remountrw
root@voyage:~# wpa_passphrase [ssid] [pass] \
>> /etc/wpa_supplicant/wpa_supplicant.conf
/etc/wpa_supplicant/wpa_supplicant.conf
は、以下のようになっているはずです。
network={
ssid="wpa_passphrase で入力したssid"
#psk="wpa_passphrase で入力したパスフレーズ"
psk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
}
- 次
に、/etc/network/interfaces を編集します。