LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 01-24-2007, 02:04 PM   #1
Ashrack
Member
 
Registered: Oct 2005
Distribution: Ubuntu - Edgy Eft
Posts: 173

Rep: Reputation: 30
A better way to WPA SUPPLICANT


In order to connect I must use wpa supplicant.

So I've created a bash that does the following:
Code:
#!/bin/bash

sudo wpa_supplicant -w -i eth0 -D wired -c /etc/wpa_supplicant/wpa_supplicant.conf &
sudo dhclient
But I was wondering if there is a better way to do the above thing?
 
Old 01-24-2007, 02:09 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
I've heard that Ubuntu is a stepchild of Debian. If that's the case, then your /etc/network/interfaces file could look like this:

Code:
auto eth0
iface eth0 inet dhcp
        pre-up /sbin/wpa_supplicant -Bw -Dwired -c/etc/wpa_supplicant/wpa_supplicant.conf -ieth0
Can I ask why you're using "wired"? I just haven't seen that one before.
 
1 members found this post helpful.
Old 01-25-2007, 01:48 AM   #3
Ashrack
Member
 
Registered: Oct 2005
Distribution: Ubuntu - Edgy Eft
Posts: 173

Original Poster
Rep: Reputation: 30
because here in the dormitory we dont have wireless internet. But the security W2 which they use here apperently is wireless and thus all of us who are wired must also use the wireless autentication protocol to get online.

btw. pre-up /sbin/wpa_supplicant -Bw -Dwired -c/etc/wpa_supplicant/wpa_supplicant.conf -ieth0
are those -B and -D needed or is that a mistake
 
Old 01-25-2007, 06:49 AM   #4
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 35
-B : Yes, this means you want wpa_supplicant to run in the background (if you were testing wpa_supplicant was working from the console, you might drop this).

-D : Yes, specifies which driver to use (for wireless, this is usually "wext" for Wireless Extensions)
 
Old 01-25-2007, 11:58 AM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
"are those -B and -D needed or is that a mistake"

Not a mistake. Like your motherboard. I've got one as well.
 
Old 01-25-2007, 01:46 PM   #6
Ashrack
Member
 
Registered: Oct 2005
Distribution: Ubuntu - Edgy Eft
Posts: 173

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Quakeboy02
Like your motherboard. I've got one as well.
Yea, we SOCKET A lovers RULE
 
  


Reply



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
WPA Supplicant Question mikeCanada SUSE / openSUSE 5 12-21-2005 09:43 PM
WPA Supplicant problem... JaseP Linux - Wireless Networking 2 12-14-2005 09:57 PM
2.6.13 and WPA supplicant not playing with each other andy_lee Linux - Wireless Networking 3 09-23-2005 02:35 PM
WPA Supplicant Question brokenflea Slackware 7 07-28-2005 09:18 PM
How do i set up WPA PSK with wpa supplicant and linuxant? Eleavings Linux - Wireless Networking 4 12-27-2004 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 03:41 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