Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

force connect to hidden wireless network



On Thu, Feb 03, 2011 at 07:41:19PM -0500, Tom Metro wrote:
> Jerry Feldman wrote:
> > iwconfig wlan0 essid "my ssid"
> > Most of the time, setting this allowed network manager to connect.
> 
> I tried that in rc.local, and it didn't seem to help., Maybe my
> assumption that rc.local runs well before X starts is incorrect.
> 
> I've had a bit better luck with:
> 
> # force set ESSID so hidden WLAN is found
> iwconfig wlan0 essid $SSID
> until iwlist wlan0 scan | fgrep -q ESSID:\"$SSID\" ; do
>   sleep 2;
> done
> echo "Wireless connection established to $SSID WLAN"
> 
> 
> I don't know what impact "iwconfig wlan0 essid" has when you are in a
> foreign location seeking to connect to any available WLAN, but I know my
> solution won't handle that well, so I'd like to find a better solution.

In my experience, wicd does a better job than NetworkManager
with this sort of thing.

-dsr-

-- 
http://tao.merseine.nu/~dsr/eula.html is hereby incorporated by reference.
You can't defend freedom by getting rid of it.





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org