RaspberryPi : Auto-setup wifi connection on RaspBMC system

RaspberryPi : Auto-setup wifi connection on RaspBMC system


    RaspBMC竟然不支持自动WIFI网络连接, 只是急死人啊...

    尝试了无数次, 还是被咱搞定了...先记录下来, 明天重装系统再试试, 睡觉去了要~

pi@raspbmc:~$ vi /etc/network/interfaces 
auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet dhcp
# wpa-driver wext
#
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
pre-up wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf -B
iface default inet dhcp

pi@raspbmc:~$ vi /etc/wpa_supplicant/wpa_supplicant.conf 
update_config=1
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
    ssid= " Jie's "
    psk= " Helloworld? "
    proto=RSN
    key_mgmt=WPA-PSK
    pairwise=CCMP
    auth_alg=OPEN
}

你可能感兴趣的:(RaspberryPi : Auto-setup wifi connection on RaspBMC system)