Raspberry Piのfedora18で無線LANがなかなか綱がらず、手こずっていた
Google様へお尋ねすると多くの情報に振り回された挙句、結局ダメで
初心に戻り、fedora18のmanで解決したわ
# man wpa_supplicant.conf
# man wpa_passphrase
一番こまったちゃんはfedora18にはpsk=にダブルクォーテーションがいらんかった事、これもネット情報に振り回されずもっと早くlogを確認すれば良かったけど
psk="0123456780・・・・"でなく
psk=0123456780・・・・で正解
無線LANチップは会社帰りにソフマップで手に入れた750円のBUFFALOのWLI-UC-GNMだ
# vi /etc/sysconfig/network-scripts/ifcfg-wlan0
DEVICE=wlan0
BOOTPROTO=none
ONBOOT=yes
HWADDR=10:6f:45:67:78:90
IPADDR=192.168.1.245
PREFIX0=24
GATEWAY0=192.168.1.1
DNS1=192.168.1.1
DEFROUTE=yes
# vi /etc/sysconfig/wpa_supplicant
# Use the flag "-i" before each of your interfaces, like so:
# INTERFACES="-ieth1 -iwlan0"
INTERFACES="-iwlan0"
# Use the flag "-D" before each driver, like so:
# DRIVERS="-Dwext"
DRIVERS="-Dwext"
# Other arguments
# -u Enable the D-Bus interface (required for use with NetworkManager)
# -f Log to /var/log/wpa_supplicant.log
# -P Write pid file to /var/run/wpa_supplicant.pid
# required to return proper codes by init scripts (e.g. double "start" ac
tion)
# -B to daemonize that has to be used together with -P is already in wpa_
supplicant.init.d
OTHER_ARGS="-u -f /var/log/wpa_supplicant.log -P /var/run/wpa_supplicant.pid"
以下のコマンドで表示されたssidとpskをconfigファイルに追加
# wpa_passphrase pepochan 1234567890
network={
ssid="pepochan"
#psk="1234567890"
psk=c8a85e581337655d20e48cfb729394ed8131be0f508d57bceb4295f6859773a9
}
# vi /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
ssid="pepochan"
scan_ssid=1
key_mgmt=WPA-PSK
psk=c8a85e581337655d20e48cfb729394ed8131be0f508d57bceb4295f6859773a9
}
wpa_supplicantを再起動させる
# systemctl restart wpa_supplicant
systemctlは冷たくて、何にも応答を返さないのでstatusで確認
# systemctl status wpa_supplicant
wpa_supplicant.service - WPA Supplicant daemon
Loaded: loaded (/usr/lib/systemd/system/wpa_supplicant.service; enabled)
Active: active (running) since Wed 2013-09-11 13:00:35 JST; 14min ago
Main PID: 20820 (wpa_supplicant)
CGroup: name=systemd:/system/wpa_supplicant.service
└─20820 /usr/sbin/wpa_supplicant -u -f /var/log/wpa_supplicant.log...
Sep 11 13:00:35 remote-hand.local systemd[1]: Starting WPA Supplicant daemon...
Sep 11 13:00:35 remote-hand.local systemd[1]: Started WPA Supplicant daemon.
Sep 11 13:00:38 remote-hand.local wpa_supplicant[20820]: ioctl[SIOCSIWFREQ]: ...
Sep 11 13:01:56 remote-hand.local wpa_supplicant[20820]: ioctl[SIOCSIWFREQ]: ...
必要に応じてlogを確認する
# tail -f /var/log/wpa_supplicant.log
あとはよしなに(^o^)丿
pepoと