2010-12-28, 17:56
Hi X3lectric,
for the wifi setup I have a small script that is a better version that supports wifi security.
Currently XCI offers the choice of a list of scanned networks.
My network however is hidden. Here one should be able to type in his network name, (this is the ssid) so an inputbox would be a better option here.
Also the password should have this possibility.
From the current script I've seen that the wpa-psk is DIRECTLY filled in, which I believe will never be working.
below how to get this encription working.
mySSID: the wpa-ssid
myNetworkPass: the network password that ones has to know to get onto the wifi network.
ra0: the name of my network device.
Note: grep " psk" contains 1 tab in front of the psk.
While editing, do this by Ctrl+v and typing the tab key.
for the wifi setup I have a small script that is a better version that supports wifi security.
Currently XCI offers the choice of a list of scanned networks.
My network however is hidden. Here one should be able to type in his network name, (this is the ssid) so an inputbox would be a better option here.
Also the password should have this possibility.
From the current script I've seen that the wpa-psk is DIRECTLY filled in, which I believe will never be working.
below how to get this encription working.
mySSID: the wpa-ssid
myNetworkPass: the network password that ones has to know to get onto the wifi network.
ra0: the name of my network device.
Note: grep " psk" contains 1 tab in front of the psk.
While editing, do this by Ctrl+v and typing the tab key.
Code:
[b][u]WPAKEY[/u][/b]=$(wpa_passphrase [b]mySSID[/b] [b]myNetworkPass[/b] | grep " psk" | awk 'BEGIN {FS="="} {print $2}')
#echo "auto wlan0" >>/etc/network/interface
echo "auto [b]ra0[/b]" >> interfaces
echo "iface [b]ra0[/b] inet dhcp" >> interfaces
echo "wpa-driver wext" >> interfaces
echo "wpa-ssid [b]mySSID[/b]" >> interfaces
echo "wpa-ap-scan 2" >> interfaces
echo "wpa-proto RSN" >> interfaces
echo "wpa-pairwise CCMP" >> interfaces
echo "wpa-group CCMP" >> interfaces
echo "wpa-key-mgmt WPA-PSK" >> interfaces
echo "wpa-psk "[b][u]$WPAKEY[/u][/b] >> interfaces