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

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Absolute Beginner Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Absolute Beginner Talk
The perfect starting place to find out more about computers, Linux and Ubuntu.

 
Thread Tools Display Modes
Old July 9th, 2008   #1
BassKozz
Dipped in Ubuntu
 
BassKozz's Avatar
 
Join Date: Jun 2007
Beans: 594
Ubuntu 9.04 Jaunty Jackalope
Question [SOLVED] Automatic Wireless Connection (At Startup)?

Everytime I boot my computer I have to enter:
Code:
iwconfig eth1 essid "mySSID" key mywepkey
sudo dhclient eth1
Where mySSID = My wireless router's SSID
and mywepkey = My router's wep key

But now I am trying to figure out how to put this in a startup script so it runs every time I boot (because as of right now I have to manually add the above each time I restart to connect to my router )
Can someone let me know what I need to do to get this to connect each time I reboot?
__________________
Ubuntu 9.04 64-bit - IP35-Pro | Q6600@3.3ghz(TRUE [lapped]) | G.Skill 2x2GB | MSI NX8600GT | 150GB WD Raptor ||| NAS - Ubuntu 8.10 - Intel D865GBF | P4 3.0GHz | G.Skill 4x1GB | FX5200-AGP | 3x250GB mdadm Raid5 | 200GB OS
BassKozz is offline   Reply With Quote
Old July 9th, 2008   #2
mikewhatever
Ubuntu addict and loving it
 
mikewhatever's Avatar
 
Join Date: Aug 2006
Location: Jerusalem IL
Beans: 5,942
Ubuntu 9.04 Jaunty Jackalope
Re: Automatic Wireless Connection (At Startup)?

I think you can do it through a nice GUI under System>Admin>Network.
__________________
A good read --> Linux is NOT Windows
mikewhatever is online now   Reply With Quote
Old July 9th, 2008   #3
BassKozz
Dipped in Ubuntu
 
BassKozz's Avatar
 
Join Date: Jun 2007
Beans: 594
Ubuntu 9.04 Jaunty Jackalope
Re: Automatic Wireless Connection (At Startup)?

Quote:
Originally Posted by mikewhatever View Post
I think you can do it through a nice GUI under System>Admin>Network.
I probably should've mentioned this in my initial post, but I am using a limited version (cli) of Gusty Unbuntu that I installed on my OLPC, and I am using Xfce as my GUI, and there doesn't seem to be a Wireless Networking tool in the GUI, so I need to modify a startup script, but I don't know which one to modify (i.e. /etc/networking/interfaces , /etc/init.d/, ???)

EDIT:I should've picked "other" when picking a prefix for this thread :doh:
__________________
Ubuntu 9.04 64-bit - IP35-Pro | Q6600@3.3ghz(TRUE [lapped]) | G.Skill 2x2GB | MSI NX8600GT | 150GB WD Raptor ||| NAS - Ubuntu 8.10 - Intel D865GBF | P4 3.0GHz | G.Skill 4x1GB | FX5200-AGP | 3x250GB mdadm Raid5 | 200GB OS

Last edited by BassKozz; July 9th, 2008 at 12:37 PM..
BassKozz is offline   Reply With Quote
Old July 9th, 2008   #4
issih
Grande Half-n-Half Cinnamon Ubuntu
 
Join Date: Feb 2008
Beans: 980
Re: Automatic Wireless Connection (At Startup)?

You want to change /etc/network/interfaces. That file defines the network interfaces and which ones should be automatically brought up.


you need to add something like:
Code:
iface wlan0 inet dhcp
wireless-key s:myKey
wireless-essid myNetwork

auto wlan0
I believe the s: indicates that you are using an asci wep key, without it you need to enter a hexadecimal one. This assumes you use dhcp for your ip addresses.

Hope that helps

P.S. dont't mess with the lo interface lines, you need those
issih is online now   Reply With Quote
Old July 9th, 2008   #5
mikewhatever
Ubuntu addict and loving it
 
mikewhatever's Avatar
 
Join Date: Aug 2006
Location: Jerusalem IL
Beans: 5,942
Ubuntu 9.04 Jaunty Jackalope
Re: Automatic Wireless Connection (At Startup)?

Quote:
Originally Posted by BassKozz View Post
I probably should've mentioned this in my initial post, but I am using a limited version (cli) of Gusty Unbuntu that I installed on my OLPC, and I am using Xfce as my GUI, and there doesn't seem to be a Wireless Networking tool in the GUI, so I need to modify a startup script, but I don't know which one to modify (i.e. /etc/networking/interfaces , /etc/init.d/, ???)

EDIT:I should've picked "other" when picking a prefix for this thread :doh:
I see. Here is a sticky address from the Wireless section, that has all kinds of manual configurations. http://ubuntuforums.org/showthread.php?t=684495
__________________
A good read --> Linux is NOT Windows
mikewhatever is online now   Reply With Quote
Old July 9th, 2008   #6
Matt Yun
A Carafe of Ubuntu
 
Join Date: Jan 2006
Location: Vancouver, BC
Beans: 119
Ubuntu 8.04 Hardy Heron
Re: Automatic Wireless Connection (At Startup)?

May I suggest Wicd. It's a network manager GUI utility that supports WEP, WPA and autoconnect. I'm using it as an alternative to Gnome's default network manager.

Ubuntu documentation on Wicd.
Matt Yun is offline   Reply With Quote
Old July 9th, 2008   #7
BassKozz
Dipped in Ubuntu
 
BassKozz's Avatar
 
Join Date: Jun 2007
Beans: 594
Ubuntu 9.04 Jaunty Jackalope
Re: Automatic Wireless Connection (At Startup)?

Quote:
Originally Posted by issih View Post
You want to change /etc/network/interfaces. That file defines the network interfaces and which ones should be automatically brought up.


you need to add something like:
Code:
iface wlan0 inet dhcp
wireless-key s:myKey
wireless-essid myNetwork

auto wlan0
I believe the s: indicates that you are using an asci wep key, without it you need to enter a hexadecimal one. This assumes you use dhcp for your ip addresses.

Hope that helps

P.S. dont't mess with the lo interface lines, you need those
Code:
# Wireless Connection
iface eth1 inet dhcp
wireless-key hex-key
wireless-essid ssid

auto eth1
where hex-key = my WEP hex key & ssid = my routers wireless SSID
WORKED
Thanks issih
__________________
Ubuntu 9.04 64-bit - IP35-Pro | Q6600@3.3ghz(TRUE [lapped]) | G.Skill 2x2GB | MSI NX8600GT | 150GB WD Raptor ||| NAS - Ubuntu 8.10 - Intel D865GBF | P4 3.0GHz | G.Skill 4x1GB | FX5200-AGP | 3x250GB mdadm Raid5 | 200GB OS
BassKozz is offline   Reply With Quote
Old July 9th, 2008   #8
stchman
Ubuntu addict and loving it
 
stchman's Avatar
 
Join Date: Feb 2007
Location: St. Louis, MO
Beans: 4,594
Ubuntu 8.04 Hardy Heron
Send a message via AIM to stchman Send a message via Yahoo to stchman
Re: Automatic Wireless Connection (At Startup)?

Quote:
Originally Posted by BassKozz View Post
Everytime I boot my computer I have to enter:
Code:
iwconfig eth1 essid "mySSID" key mywepkey
sudo dhclient eth1
Where mySSID = My wireless router's SSID
and mywepkey = My router's wep key

But now I am trying to figure out how to put this in a startup script so it runs every time I boot (because as of right now I have to manually add the above each time I restart to connect to my router )
Can someone let me know what I need to do to get this to connect each time I reboot?
Network Manager under Hardy takes care of all that. What Ubuntu version are you using?

Whenever I login Ubuntu automatically connects to my WPA2 encrypted router.
__________________
Windows XP - Excellent computer virus detector.
Windows Vista - Most bloat for the money.

Visit my Ubuntu Resource Website http://www.stchman.com
stchman is offline   Reply With Quote
Old July 9th, 2008   #9
BassKozz
Dipped in Ubuntu
 
BassKozz's Avatar
 
Join Date: Jun 2007
Beans: 594
Ubuntu 9.04 Jaunty Jackalope
Re: Automatic Wireless Connection (At Startup)?

Quote:
Originally Posted by stchman View Post
Network Manager under Hardy takes care of all that. What Ubuntu version are you using?

Whenever I login Ubuntu automatically connects to my WPA2 encrypted router.
Quote:
Originally Posted by BassKozz View Post
I probably should've mentioned this in my initial post, but I am using a limited version (cli) of Gusty Unbuntu that I installed on my OLPC, and I am using Xfce as my GUI, and there doesn't seem to be a Wireless Networking tool in the GUI, so I need to modify a startup script, but I don't know which one to modify (i.e. /etc/networking/interfaces , /etc/init.d/, ???)

EDIT:I should've picked "other" when picking a prefix for this thread :doh:
__________________
Ubuntu 9.04 64-bit - IP35-Pro | Q6600@3.3ghz(TRUE [lapped]) | G.Skill 2x2GB | MSI NX8600GT | 150GB WD Raptor ||| NAS - Ubuntu 8.10 - Intel D865GBF | P4 3.0GHz | G.Skill 4x1GB | FX5200-AGP | 3x250GB mdadm Raid5 | 200GB OS
BassKozz is offline   Reply With Quote
Old July 9th, 2008   #10
BassKozz
Dipped in Ubuntu
 
BassKozz's Avatar
 
Join Date: Jun 2007
Beans: 594
Ubuntu 9.04 Jaunty Jackalope
Re: Automatic Wireless Connection (At Startup)?

Quote:
Originally Posted by mikewhatever View Post
I see. Here is a sticky address from the Wireless section, that has all kinds of manual configurations. http://ubuntuforums.org/showthread.php?t=684495
Mike,
That link you provided was very helpful, Thank you.
I am curious thou, on the link it says to edit /etc/rc.local to make ubuntu setup wireless on boot;
What are the pro's & con's of using /etc/rc.local vs. /etc/network/interfaces/ to connect on boot?
__________________
Ubuntu 9.04 64-bit - IP35-Pro | Q6600@3.3ghz(TRUE [lapped]) | G.Skill 2x2GB | MSI NX8600GT | 150GB WD Raptor ||| NAS - Ubuntu 8.10 - Intel D865GBF | P4 3.0GHz | G.Skill 4x1GB | FX5200-AGP | 3x250GB mdadm Raid5 | 200GB OS
BassKozz is offline   Reply With Quote

Bookmarks

Tags
dhclient, interfaces, iwconfig, wep, wireless

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 06:55 PM.


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