Forum

Full Version: Wifi dont reconnect
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Can I still set a static ip with this config?


edit:
Just solved it by myself.
If anybody's interested

/etc/network/interfaces
Code:
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual

wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf


iface home inet static
address YOURIP
netmask YOURNETMASK
network YOURNETWORK
gateway YOURGATEWAY
wireless-power off

auto wlan0

/etc/wpa_supplicant/wpa_supplicant.conf settings for WPA
Code:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="YOURSSID"
id_str="home"      #has to be the same id as in the interfaces file
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
psk="YOURPSK"
}
worked for me as well. thanks for the info! would be great if this was added to future xbian releases.
this is the intended usage (everything else is
/etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid NETWORK
wpa-psk PASSWORD

/etc/wpa_supplicant/wpa_supplicant.conf:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

so you can keep the wpa conf file as default and only put password and ssid to interfaces. done.
(29th Apr, 2013 07:16 AM)mk01 Wrote: [ -> ]this is the intended usage (everything else is
/etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid NETWORK
wpa-psk PASSWORD

/etc/wpa_supplicant/wpa_supplicant.conf:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

so you can keep the wpa conf file as default and only put password and ssid to interfaces. done.

I just downloaded and tried Xbian this week, but I am having major problems trying to get my USB Wi-Fi module to work with my WPA2-PSK network.
It just doesn't want to work, even when trying the helpful tips in this forum and elsewhere.

Right now it fails on "wpa_supplicant: /sbin/wpa_supplicant daemon failed to start" using the quoted setup.

I would like for XBian to adopt a better WPA2 support because the Pi's wi-fi ran fine on the normal NOOBS-installed XBMC version, although considerably slower than XBian does. So what are they doing with their network setup that is missing from XBian?

And how can I fix it myself?
Pages: 1 2
Reference URL's