$ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
-----
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="PCI"
# psk="*******"
psk=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
key_mgmt=WPA-PSK
}
-----
設定ファイル
$ sudo nano /etc/network/interfaces
-----
auto wlan0
#iface wlan0 inet manual
iface wlan0 inet static
address 192.168.1.104
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
wpa-ssid network-name
wpa-psk pre-shared-key
-----