Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Server Platforms
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Server Platforms
Discussion regarding the Ubuntu Server Edition. For more information on the Ubuntu Server Team, please visit their wiki page or Launchpad page.

 
Thread Tools Display Modes
Old October 23rd, 2008   #1
adept_king
Just Give Me the Beans!
 
adept_king's Avatar
 
Join Date: Aug 2008
Beans: 64
Lightbulb discover and connect to wireless in command line

in the gui version of ubuntu, networks are found automatically and presented in a list.

in ubuntu server, i guess i could search for random ip's using nmap or something, but what if i dont know the range to search? in short, how do i get connected to one of these wireless networks if i dont even know which ip's they are? i -really- want to figure this out, but i am days behind schedule. i have a week to learn everything there is to know about running a linux server. ha. ha. ha.

my wireless adapter is recognized and i think it works, but i would sure like to 'test it.'

my platform is in my sig.
__________________
Code:
ubuntu karmic
adept_king is offline   Reply With Quote
Old October 23rd, 2008   #2
lykwydchykyn
Chocolate Ubuntu Mocha Blend
 
lykwydchykyn's Avatar
 
Join Date: Jun 2008
Location: Tennessee
Beans: 1,886
Kubuntu 9.10 Karmic Koala
Re: discover and connect to wireless in command line

To scan for networks:
Code:
sudo iwlist eth0 scanning
Configuring wireless can be done with iwconfig. Check the man page for syntax and commands. I don't think it deals with WPA, though; I never quite got a handle on how to deal with wpa from the CLI.
lykwydchykyn is offline   Reply With Quote
Old October 23rd, 2008   #3
cariboo907
Caffeine Fuelled
 
cariboo907's Avatar
 
Join Date: Mar 2006
Location: Williams Lake
Beans: 13,253
Ubuntu Development Release
Re: discover and connect to wireless in command line

Are you saying that you don't know your wireless routers ip address?

Jim
cariboo907 is offline   Reply With Quote
Old October 23rd, 2008   #4
adept_king
Just Give Me the Beans!
 
adept_king's Avatar
 
Join Date: Aug 2008
Beans: 64
Re: discover and connect to wireless in command line

here is the answer as i found it:

i first re-installed the 3945 driver.
then found a file called compatable old drivers or something.

then iwconfig shows lo, eth0, wmaster0 and wlan0

wlan0 is the one i wanted, it had info next to it.

so...

sudo dhclient wlan0

sudo iwlist scanning #(to find what connection you want, take note of the name and the many coloned number)

sudo iwconfig wlan0 essid "netwhatever"

sudo iwconfig wlan0 ap xxxxxx

and if need be

sudo dhclient wlan0

and better use 'sudo apt-get update' like crazy!

i came up for air and sudo apt-get install xmonad

a little easier than one big bash window.
__________________
Code:
ubuntu karmic

Last edited by adept_king; October 23rd, 2008 at 10:06 PM.. Reason: phew
adept_king is offline   Reply With Quote

Bookmarks

Tags
connect unknown wep bash

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:08 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry