LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 05-10-2012, 04:25 PM   #1
Spym
LQ Newbie
 
Registered: Oct 2011
Distribution: kubuntu
Posts: 5

Rep: Reputation: Disabled
Connect automatically to any known Wi-Fi network


Hello guys.

I have the Ubuntu Server on embedded PC, which can move between some Wi-Fi networks.
This PC needs to be automatically connected to any known Wi-Fi network as soon as it becomes available (i.e. visible).

Yes, I can write a script for this, but I don't want to reinvent the wheel. Are there any solutions?

Thanks in advance.
 
Old 05-11-2012, 09:03 AM   #2
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 49
This Youtube link will help you!

http://www.youtube.com/watch?v=H1bhzzw4IUQ
 
Old 05-11-2012, 09:13 AM   #3
Spym
LQ Newbie
 
Registered: Oct 2011
Distribution: kubuntu
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you, but I can't use GUI on embedded system.
I need for some non-GUI solution, something like this:
Code:
while true
do
  iwlist eth1 scan > /tmp/wiscan.txt
  if `cat /tmp/wiscan.txt | grep -c SSID1` = 1 then
  do
    iwconfig eth0 ssid SSID1
    exit
  done

  if `cat /tmp/wiscan.txt | grep -c SSID2` = 1 then
  do
    iwconfig eth0 ssid SSID2
    exit
  done

  sleep 3
done
(source: http://habrahabr.ru/qa/19230/#answer_78535)
 
  


Reply

Tags
wireless


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless Network wont automatically connect ? jv2112 Linux - Newbie 4 04-01-2012 06:00 AM
Unable to automatically connect to network on boot (DHCP) Economicus Linux - Networking 2 12-11-2011 06:43 AM
Broadcom 4312 not automatically connect to wireless network kavanahuang Linux - Laptop and Netbook 2 04-20-2010 03:59 AM
Wireless network won't automatically connect Ehlyah Linux - Wireless Networking 1 04-22-2008 09:01 AM
cant automatically connect to my wifi network capn_hector Linux - Wireless Networking 1 01-07-2008 11:16 AM


All times are GMT -5. The time now is 05:12 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration