LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2008, 04:21 PM   #1
SimbaSpirit
Member
 
Registered: Feb 2008
Posts: 109

Rep: Reputation: 15
[Ubuntu] How do I set wireless to connect without login?


Greetings, I have a personal server set up, but in order to establish a wireless connection or start a few essential services I have to log in on the gui. Since I can't get an internet connection until I login I can't even initialize the processes remotely, which is a bit of a problem.

Is there a script or a method to initialize wireless without logging in? Perhaps the best route would be to find a way to automatically log in?

Please advise.
-SS
 
Old 06-24-2008, 11:21 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
You'll probably have to write a script that runs at boot time. Essentially the script will have to configure the card and then request and IP address from the AP (or assign a static one if that is what you use). Most of this stuff can be done with the iwconfig, ifconfig and ifup commands.

Once you've got a script, you've just got to set it up to run at boot time.
 
Old 06-24-2008, 02:18 PM   #3
Takla
Member
 
Registered: Aug 2006
Distribution: Debian
Posts: 188

Rep: Reputation: 34
Quote:
Originally Posted by SimbaSpirit View Post
Greetings, I have a personal server set up, but in order to establish a wireless connection or start a few essential services I have to log in on the gui. Since I can't get an internet connection until I login I can't even initialize the processes remotely, which is a bit of a problem.

Is there a script or a method to initialize wireless without logging in? Perhaps the best route would be to find a way to automatically log in?

Please advise.
-SS
There's a reasonably simple way to do this if you're not confident writing a script or prefer a frontend to wpa_supplicant and the other networking tools: you can remove network manager and instead use wicd to manage the wireless connection. Set it up the first time after logging into your desktop environment. Choose the option to connect automatically. Wicd runs as a daemon, the gui tools are not needed once the configuration is done, so on subsequent boots it will connect automatically before log-in.

It's an excellent tool for wireless but has the limitation that it can't manage more than one interface at the same time (I think this is being worked on), so if you need the wired interface up as well you can simply leave a blank in the space where you specify the name of the wired interface (eth0 or eth1 typically). Configure the wired interface in the file /etc/networking/interfaces in the traditional manner.

Another one that can run as a daemon is WiFi-Wiz

If you only ever connect wirelessly to one network it's certainly more efficient to configure wpa_supplicant manually and have it run at boot.
 
  


Reply


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
Connect via Wireless using Ubuntu 7.10 and Linksys randell6564 Ubuntu 1 05-17-2008 11:40 PM
PCI Wireless, set it up, can scan, but not connect Terror Linux - Wireless Networking 11 03-08-2008 03:47 PM
ubuntu 7.10 does not connect successfully through wireless JAYARAJAN.C.N Linux - Wireless Networking 3 11-04-2007 02:53 PM
Can't connect to wireless network, can't set essid! Shioni Linux - Wireless Networking 4 09-25-2006 10:26 AM
Wireless PCI card set up on Ubuntu moises Linux - Wireless Networking 4 09-03-2005 02:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:30 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration