Automatically connecting to wireless network

Just moved over to openSUSE 11.4 (KDE) from Ubuntu, yesterday. However, I’m having some trouble with my wireless connection.

I have a wireless network with a hidden SSID and WPA2-PSK security. I entered all the nescery information into the KDE network manager, but it couldn’t find my network. So I ran the usual command:

su -c iwlist wlan0 scanning essid [My SSID]

At which point, the network manager immediately found, and connected to, the network. However, it seems that I have to run this command (as root) each time I log in, before my laptop will connect to the network. The network manager has no problem find the plethora of unsecured networks as well as those that are secure, but broadcast their SSID.

Any suggestions would be very much appreciated.

You could then just run this bash script file each time you startup openSUSE:

#!/bin/bash

PASS="123456"
SSID="Your SSID"

echo $PASS|sudo -S /usr/sbin/iwlist wlan0 scanning essid $SSID

Don’t forget to mark it executable and for KDE, you would put the script file in ~/.kde4/Autostart folder.

Thank You,

Hello, I know this is an old thread however if someone could help me out I would really appreaciate it. I am having some trouble with the ‘wlist wlan0 scanning essid [myssid]’ command where konsole returns a message indicating ‘wlan0 Interface doesn’t support scanning : operation not permitted’.

Some background:
I already have wifi setup in my system, and my wireless card works fine in terms of “seeing” other broadcasting networks that are not hidden and connecting to those. I can also connect to my hidden network through knetwork manager, however, I’m trying to set it up so that i don’t have to go into knetwork manager every time I boot up and setup the connection again to my hidden router.

My OS version is 13.1 with KDE. Also, the connect automatically option is selected on the network connection. If anyone need any more info please let me know.

I see that i can create a script so that at boot time it does it automatically, but I’m not sure if it will work given the error mentioned above.

Any help is appreciated.

In solidarity,
kishin