LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 06-16-2007, 04:23 PM   #1
Maxwell Rain
Member
 
Registered: Apr 2004
Distribution: Ubuntu Feisty Fawn & Mandrake 2006.0 Free Edition
Posts: 31
Thanked: 0
Question Wireless : refreshing network list [Feisty]


[Log in to get rid of this advertisement]
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 04:26 PM..
Maxwell Rain is offline     Reply With Quote
Old 06-17-2007, 04:34 AM   #2
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248
Thanked: 0
That's a bug in networkmanager. You may use an alternative like wlassistant.
gkiagia is offline     Reply With Quote
Old 06-17-2007, 02:25 PM   #3
offbyte
LQ Newbie
 
Registered: Jun 2004
Location: portugal
Distribution: Ubuntu, slackware 13
Posts: 15
Thanked: 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
offbyte is offline     Reply With Quote
Old 06-17-2007, 06:09 PM   #4
Maxwell Rain
Member
 
Registered: Apr 2004
Distribution: Ubuntu Feisty Fawn & Mandrake 2006.0 Free Edition
Posts: 31
Thanked: 0

Original Poster
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 06:29 PM..
Maxwell Rain is offline     Reply With Quote
Old 06-18-2007, 04:14 AM   #5
grahamatlq
LQ Newbie
 
Registered: Dec 2006
Posts: 29
Thanked: 0
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.
grahamatlq is offline     Reply With Quote
Old 06-18-2007, 08:44 AM   #6
offbyte
LQ Newbie
 
Registered: Jun 2004
Location: portugal
Distribution: Ubuntu, slackware 13
Posts: 15
Thanked: 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 11:29 AM..
offbyte is offline  
Tag This Post , ,
Reply With Quote
Old 06-20-2007, 05:45 AM   #7
Maxwell Rain
Member
 
Registered: Apr 2004
Distribution: Ubuntu Feisty Fawn & Mandrake 2006.0 Free Edition
Posts: 31
Thanked: 0

Original Poster
Perfect, the addition of grep was exactly what I needed.

Another day, another lesson. Thank you very much.
Maxwell Rain is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 03:58 PM
Help with Wireless under Feisty Fawn Jonnan Ubuntu 9 04-28-2007 12:56 PM
wireless network list tical Linux - Wireless Networking 13 02-22-2005 09:48 PM
refreshing network settings... r_jensen11 Linux - General 3 12-20-2003 01:40 PM
Refreshing a Linux Network zaphanol Linux - Software 4 07-22-2003 05:38 PM


All times are GMT -5. The time now is 05:07 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration