LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 06-16-2007, 03:23 PM   #1
Maxwell Rain
Member
 
Registered: Apr 2004
Distribution: Ubuntu Feisty Fawn & Mandrake 2006.0 Free Edition
Posts: 31

Rep: Reputation: 15
Question Wireless : refreshing network list [Feisty]


Hello,

I've been searching on google, the ubuntu wiki-pages and several forums, but I can't seem to locate the answer to this one.

When I log in to Ubuntu the NetworkManager Applet (0.6.4) [Gnome applet] is showing all the wireless network connections, and I can connect fast and easy (with one click) to the desired network.
Only, when changing the environment (say : modem is turned off, and a new modem is turned on) it keeps showing me the old list, and not the new one. Also : when I turn off the wireless card on my laptop, and then turn it back on, it also does not refresh the network list and I cannot connect to a new network. So I have to reboot to get a new network list.

The rebooting reminds to much of ms windows, so I am looking for a cleaner way of refreshing my network list when I want to.

Does anyone here know how to do this ?

Last edited by Maxwell Rain; 06-16-2007 at 03:26 PM.
 
Old 06-17-2007, 03:34 AM   #2
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
That's a bug in networkmanager. You may use an alternative like wlassistant.
 
Old 06-17-2007, 01:25 PM   #3
offbyte
LQ Newbie
 
Registered: Jun 2004
Location: portugal
Distribution: Ubuntu, slackware 13
Posts: 16

Rep: Reputation: 0
my preferred way to refresh available wireless networks is using the watch command

Code:
watch -n 1 "iwlist eth1 scanning"
-n 1 is the time you want the command to be refreshed in this case every second
and eth1 is your wireless device

PS: sometimes the network manager applet work's just fine when it's doesn't I just use
Code:
killall nm-applet
and I do thing by myself
 
Old 06-17-2007, 05:09 PM   #4
Maxwell Rain
Member
 
Registered: Apr 2004
Distribution: Ubuntu Feisty Fawn & Mandrake 2006.0 Free Edition
Posts: 31

Original Poster
Rep: Reputation: 15
Thank you both for the reply.

The command line option is the one I was looking for, since wlassistant is a KDE frontend.
But how do I scroll down in the list ?
I receive the following list, now I just need to be able to also what comes next on the screen, and I can't seem to scroll down to it.

This is an example. It ends halfway the information for the third available network. How do I reach the rest of the information ?

Code:
Cell 03 - Address: 00:11:50:57:B3:53
ESSID:"belkin54g"
Protocol:IEEE 802.11bg
Mode:Master
Channel:11
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Quality=35/100  Signal level=-88 dBm  Noise level=-88 dBm
IE: WPA Version 1
Group Cipher : TKIP
If I just run the "iwlist eth1 scanning" command (so not the watch command) I get the full information, but of course this does not automatically refresh every "n" seconds.

The full information being of course these lines (and a possible fourth network)
Code:
     Pairwise Ciphers (1) : TKIP 
                        Authentication Suites (1) : PSK  
                    Extra: Last beacon: 13344ms ago

Last edited by Maxwell Rain; 06-17-2007 at 05:29 PM.
 
Old 06-18-2007, 03:14 AM   #5
grahamatlq
Member
 
Registered: Dec 2006
Posts: 37

Rep: Reputation: 17
watching

watch -n1 -d 'iwlist eth1 scanning | grep ESSID'

Will give you a list of the networks in a short list

The -d highlights the differences in watch.
 
Old 06-18-2007, 07:44 AM   #6
offbyte
LQ Newbie
 
Registered: Jun 2004
Location: portugal
Distribution: Ubuntu, slackware 13
Posts: 16

Rep: Reputation: 0
you can maximize the terminal window and chose a smaller font in profiles so all "cell's" are visible.

see "man grep" or "grep --help" and try tweaking the grep command for yourself. Here's an example:

Quote:
watch -n 1 'iwlist eth1 scanning | grep -E "Cell |ESSID|Channel|Quality|whatever"'
Quote:
wiki: "...grep searches for lines of text that match one or many regular expressions, and outputs only the matching lines."

Last edited by offbyte; 06-18-2007 at 10:29 AM.
 
Old 06-20-2007, 04:45 AM   #7
Maxwell Rain
Member
 
Registered: Apr 2004
Distribution: Ubuntu Feisty Fawn & Mandrake 2006.0 Free Edition
Posts: 31

Original Poster
Rep: Reputation: 15
Perfect, the addition of grep was exactly what I needed.

Another day, another lesson. Thank you very much.
 
  


Reply

Tags
refresh, scanning, 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
feisty and wireless connection unisol Linux - Wireless Networking 1 06-01-2007 02:58 PM
Help with Wireless under Feisty Fawn Jonnan Ubuntu 9 04-28-2007 11:56 AM
wireless network list tical Linux - Wireless Networking 13 02-22-2005 08:48 PM
refreshing network settings... r_jensen11 Linux - General 3 12-20-2003 12:40 PM
Refreshing a Linux Network zaphanol Linux - Software 4 07-22-2003 04:38 PM


All times are GMT -5. The time now is 06:54 AM.

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