Created
August 12, 2012 07:36
-
-
Save t-uda/3330481 to your computer and use it in GitHub Desktop.
Debian で WPA-PSK(AES) 方式で無線接続 - wpa_supplicant 編 ref: http://qiita.com/items/a29874cbeecd080ea2fe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo aptitude install wpasupplicant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd /etc/wpa_supplicant | |
$ wpa_passphrase MY_HOME HogeFuga | |
network={ | |
ssid="MY_HOME" | |
#psk="HogeFuga" | |
psk=6c254edfa9a2340e5b668f990eb6658243486f0fcda2c810264848441415547b | |
} | |
$ wpa_passphrase MY_HOME HogeFuga > wpa_supplicant.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo chmod 600 wpa_supplicant.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd /etc/network | |
$ sudo vim interfaces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo wpa_supplicant -iwlan0 -Dwext wpa_supplicant.conf -dddt -c wpa_supplicant.conf | |
# -i(インターフェース) | |
# -D(ドライバ) | |
# -d(デバッグ出力) | |
# -c(設定ファイル) | |
: | |
: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo service network-manager stop | |
$ sudo rm /etc/NetworkManager/system-connections/MY_HOME | |
$ sudo ifdown wlan0 | |
$ sudo killall wpa_supplicant | |
$ sudo ifup wlan0 | |
Internet Systems Consortium DHCP Client 4.2.2 | |
Copyright 2004-2011 Internet Systems Consortium. | |
All rights reserved. | |
For info, please visit https://www.isc.org/software/dhcp/ | |
Listening on LPF/wlan0/**:**:**:**:**:** | |
Sending on LPF/wlan0/**:**:**:**:**:** | |
Sending on Socket/fallback | |
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4 | |
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10 | |
DHCPREQUEST on wlan0 to 255.255.255.255 port 67 | |
DHCPOFFER from 192.168.11.1 | |
DHCPACK from 192.168.11.1 | |
bound to 192.168.11.11 -- renewal in 70583 seconds. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# : | |
# : | |
# 以下の行を追加 | |
auto wlan0 | |
iface wlan0 inet dhcp | |
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
network={ | |
# ここから | |
proto=WPA | |
key_mgmt=WPA-PSK | |
pairwise=CCMP | |
group=CCMP | |
priority=2 | |
# ここまで書き加える | |
ssid="MY_HOME" | |
#psk="HogeFuga" | |
psk=6c254edfa9a2340e5b668f990eb6658243486f0fcda2c810264848441415547b | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment