LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 12-04-2006, 04:44 PM   #1
mikefinlay
LQ Newbie
 
Registered: Dec 2006
Posts: 1

Rep: Reputation: 0
Xubuntu and WPA config problems


I've just installed Xubuntu (totally new to Linux) with success straight off the alternative installation disk on an old PII tower I've cobbled together. It is running like a dream despite the size of the system and seems to be making good use of all the hardware currently in the box. Except the wireless network adapters.

Now, assuming I can't connect via physical ethernet to the router I'm using (A DLink DSL-G604T with WPA-PSK security running) I have 2 wifi devices plugged in - a Belkin F5D7000 PCI card and a DLink DWL-G122 usb wifi adapter, both of which are in working order.

With both in the machine, my os is recognising them inasmuch as I have, in my network settings window, options for "wireless connection eth0" when my pci card alone is in, and "wireless connection rausb0" as well when I add the usb adapter and reboot.

I appreciate that WPA isn't a tweakable option in the networking window and that I have to fiddle with the /etc/network/interfaces file, by going into terminal and typing gksudo(which apparently allows me to change system things) mousepad /etc/network/interfaces and that brings up a text editor with the file loaded, that I can save post-editing which I couldn;t do opening the file through the browser window.

Now, I've added the following:
Quote:
auto ra0
iface ra0 inet dhcp
pre-up ifconfig ra0 up
pre-up ifconfig ra0 down
pre-up ifconfig ra0 up
pre-up ifconfig ra0 down
pre-up iwconfig ra0 essid "myssid"
pre-up iwconfig ra0 mode Managed
pre-up iwpriv ra0 set AuthMode=WPAPSK
pre-up iwpriv ra0 set EncrypType=TKIP
pre-up iwpriv ra0 set WPAPSK="A shared key"
pre-up ifconfig ra0 up
replacing ra0 with eth0 and againrepeating the script with rausb0. Then I've saved and in the command line "entered sudo ifup rausb0" (and also eth0) and nothing has happened. Then rebooted with the changes in the interfaces file saved and again, no change, no flicker of life from the leds on my adapters, still showing in the network window though and no hint as to where to go from there.

I'm guessing I'm not adding the right things to the script, but I've reached the limit of my understanding.

Also, lspci tells me the PCI wifi adapter is a BroadcomBCM4306. Says Belkin on the card and the box. Very odd.

So.... HELP!!!111 and all that. Thanks.

/apparently yes, it is the BCM4306.

Last edited by mikefinlay; 12-04-2006 at 05:13 PM.
 
Old 12-05-2006, 11:59 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,695
Blog Entries: 1

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Welcome to LQ!

I'm going to jump around a bit in answering your questions, but hopefully it will make sense by the end.....

Quote:
Also, lspci tells me the PCI wifi adapter is a BroadcomBCM4306. Says Belkin on the card and the box. Very odd.
Broadcom makes the actual chips in the card and sells them to lots of vendors (Dell, Linksys and others). The important bit in all of this is that it is the 4306 chipset, and that means it is likely using the bcm43xx driver. In a console, check the output of lsmod and see if it is loaded when your PCI card is in. In order to get bcm43xx working properly, you need to install firmware, and I'd be VERY surprised if Xubuntu has done that. Check out my linux site (link in sig) because I have a section on installing firmware using a program called fwcutter and a Windows driver. Once you've got that done you're ready to tackle WPA.

Quote:
I appreciate that WPA isn't a tweakable option in the networking window and that I have to fiddle with the /etc/network/interfaces file
I'm not sure this is entirely right. There is a program called wpa_supplicant that handles WPA encryption, and that usually isn't invoked from the network/interfaces file. In fact I use a script to start it when I bring my wireless card online. I've got a section on installing and using wpa_supplicant on my site, but I would suspect that you can get the program from your Xubuntu repositories. I know Ubuntu has it available.

Quote:
gksudo(which apparently allows me to change system things)
That is pretty close. The sudo command allows any command to be run with root privileges, and since the *buntus have pretty much done away with the root account (not entirely true, but close enough for now), you use sudo to do the kind of things root normally does. Now in my opinion, that is a gross violation of what sudo was intended to be used for, but that is a rant for another time. Since configuration files usually need root privileges to edit, you need to have an editor with root privileges in order to save your changes.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
scripts (kommander and command line) to start wireless devices with wpa/wpa2/wpa-aes Fluxx Linux - Wireless Networking 4 06-28-2010 02:51 AM
gcc problems xubuntu 6.1 bayonetblaha Linux - Software 1 10-20-2006 10:17 PM
xubuntu - make and internet connection problems Goatdemon Ubuntu 1 09-04-2006 11:21 PM
[kubuntu] Problems installing xubuntu-desktop JussiKp Linux - Software 0 08-26-2006 07:37 PM
WPA Wireless Config merana Linux - Wireless Networking 4 03-26-2004 01:03 PM


All times are GMT -5. The time now is 12:44 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration