PDA

View Full Version : [ubuntu] 9.10 Wireless connection set-up



ispy99
February 12th, 2010, 10:19 PM
Hi, first time posting here so I apologize if i don't get everything quite right.

I downloaded Ubuntu 9.10 and successfully installed it side by side with my Windows XP media edition OS. I have been trying to set up my connection to my wireless network using my windows drivers. I have a linksys card and I found both the .ini and .sys files for it (and ndiswrapper correctly installs the driver). I am having moderate luck using various paths I have found on the web (iwconfig, etc). However, I keep running into the error "SIOCSIFFLAGS: No file or directory". I understand that it is coming from an ioctl() call. What I can't figure out is what file/directory is missing. I have seen notes about needing firmwear files in addition to the .ini and .sys files for certain types of cards, but from what I have read my linksys card doesn't need it. Any help would be greatly appreciated. How do I get it to tell me what file/directory is missing?

Thanks

gordintoronto
February 13th, 2010, 12:38 AM
Did you look at:
https://help.ubuntu.com/community/WifiDocs/WirelessCardsSupported

Many wireless cards "just work." Did you try?

There are many, many *different* Linksys cards. If it is a PCI card, you can get the exact identification by opening Accessories/Terminal and entering the command:
lspci

There's also a "lsusb" command for usb devices.

If there's a "network manager" icon at the top-right of your screen, you can right-click on it, and "add" a connection. You need to know the essid, encryption type and password.

ispy99
February 13th, 2010, 05:17 PM
Thanks for the quick response. I think you found my problem.

I cleared my previous attempts to connect via network-manager and started from scratch. No luck.

I then used lspci and here was my output:
00:00.0 Host bridge: nVidia Corporation C55 Host Bridge (rev a2)
00:00.1 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:00.2 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:00.3 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:00.4 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:00.5 RAM memory: nVidia Corporation C55 Memory Controller (rev a2)
00:00.6 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:00.7 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:01.0 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:01.1 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:01.2 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:01.3 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:01.4 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:01.5 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:01.6 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:02.0 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:02.1 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:02.2 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)
00:03.0 PCI bridge: nVidia Corporation C55 PCI Express bridge (rev a1)
00:09.0 RAM memory: nVidia Corporation MCP55 Memory Controller (rev a2)
00:0a.0 ISA bridge: nVidia Corporation MCP55 LPC Bridge (rev a3)
00:0a.1 SMBus: nVidia Corporation MCP55 SMBus (rev a3)
00:0b.0 USB Controller: nVidia Corporation MCP55 USB Controller (rev a1)
00:0b.1 USB Controller: nVidia Corporation MCP55 USB Controller (rev a2)
00:0d.0 IDE interface: nVidia Corporation MCP55 IDE (rev a1)
00:0e.0 RAID bus controller: nVidia Corporation MCP55 SATA Controller (rev a3)
00:0e.1 RAID bus controller: nVidia Corporation MCP55 SATA Controller (rev a4)
00:0e.2 RAID bus controller: nVidia Corporation MCP55 SATA Controller (rev a5)
00:0f.0 PCI bridge: nVidia Corporation MCP55 PCI bridge (rev a2)
00:13.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
00:16.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
00:17.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
00:18.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
01:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 8800 GT] (rev a2)
02:02.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
02:04.0 Multimedia audio controller: Creative Labs SB X-Fi
02:05.0 Communication controller: Conexant Systems, Inc. HSF 56k Data/Fax Modem
02:0a.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
04:00.0 Multimedia controller: ATI Technologies Inc Device 4d51
05:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5754 Gigabit Ethernet PCI Express (rev 02)

According to the link you included it is hit or miss with Hardy (although he doesn't have Karmic listed which is the version I have). So I assume I have to find a thread on how to make it work. Any suggestions?

Thanks for your help.

gordintoronto
February 14th, 2010, 02:54 AM
Here are other interesting links:
http://linuxwireless.org/
http://www.linuxquestions.org/linux/answers/Networking/HOW_TO_install_the_Broadcom_bcm43xx_Driver_in_Debi an_Linux_and_enable_WPA_Encryption

Many of the things I find on Google are surprisingly old.

ispy99
February 14th, 2010, 09:47 PM
Thanks for the leads. I am about 90% there.

I ended up using fwcutter version 12 (you have to follow some links to find it). I also downloaded the broadcom tar ball that is mentioned instead of using the drivers on my original CD, as farslayer recommends. All seemed to go well. When I do a "iwlist wlan0 scan", I see my network (as well as the million others around me).

However, I go back to network-manager, wipe out previous connection to my network, restart my computer and now network-manager says "Device not managed". I used the system tools to create a connection to my network with SSID, WPA2, and the password, (with the appropriate values) and network-manager still says "Device not managed". And of course, I don't have a connection to my wireless network.

Any suggestions would be appreciated.

gordintoronto
February 15th, 2010, 01:16 AM
One more link:
http://ubuntuforums.org/showthread.php?t=1350588

ispy99
February 21st, 2010, 09:23 PM
I am starting to think the firmware install didn't work completely. I have a couple of questions if you don't mind.

If I can see surrounding networks, doesn't that mean my wireless card is working at some level?

The write up on the fwcutter used an older version of fwcutter. According to it, when you extracted from the tarball, you should have a list of files in /lib/firmware starting with bcm43.

I used a newer version of fwcutter (to match the files in the broadcom tarball), and I ended up with these files, in a subdirectory of /firmware called b43:
-rw-r--r-- 1 root root 25160 2010-02-21 14:54 ucode9.fw
-rw-r--r-- 1 root root 22384 2010-02-21 14:54 ucode5.fw
-rw-r--r-- 1 root root 30488 2010-02-21 14:54 ucode15.fw
-rw-r--r-- 1 root root 31384 2010-02-21 14:54 ucode14.fw
-rw-r--r-- 1 root root 32232 2010-02-21 14:54 ucode13.fw
-rw-r--r-- 1 root root 29864 2010-02-21 14:54 ucode11.fw
-rw-r--r-- 1 root root 1320 2010-02-21 14:54 pcm5.fw
-rw-r--r-- 1 root root 2100 2010-02-21 14:54 n0initvals11.fw
-rw-r--r-- 1 root root 158 2010-02-21 14:54 n0bsinitvals11.fw
-rw-r--r-- 1 root root 158 2010-02-21 14:54 n0absinitvals11.fw
-rw-r--r-- 1 root root 2052 2010-02-21 14:54 lp0initvals15.fw
-rw-r--r-- 1 root root 2064 2010-02-21 14:54 lp0initvals14.fw
-rw-r--r-- 1 root root 3618 2010-02-21 14:54 lp0initvals13.fw
-rw-r--r-- 1 root root 158 2010-02-21 14:54 lp0bsinitvals15.fw
-rw-r--r-- 1 root root 158 2010-02-21 14:54 lp0bsinitvals14.fw
-rw-r--r-- 1 root root 158 2010-02-21 14:54 lp0bsinitvals13.fw
-rw-r--r-- 1 root root 2002 2010-02-21 14:54 b0g0initvals9.fw
-rw-r--r-- 1 root root 1840 2010-02-21 14:54 b0g0initvals5.fw
-rw-r--r-- 1 root root 2080 2010-02-21 14:54 b0g0initvals13.fw
-rw-r--r-- 1 root root 158 2010-02-21 14:54 b0g0bsinitvals9.fw
-rw-r--r-- 1 root root 158 2010-02-21 14:54 b0g0bsinitvals5.fw
-rw-r--r-- 1 root root 158 2010-02-21 14:54 b0g0bsinitvals13.fw
-rw-r--r-- 1 root root 2002 2010-02-21 14:54 a0g1initvals9.fw
-rw-r--r-- 1 root root 1840 2010-02-21 14:54 a0g1initvals5.fw
-rw-r--r-- 1 root root 2080 2010-02-21 14:54 a0g1initvals13.fw
-rw-r--r-- 1 root root 158 2010-02-21 14:54 a0g1bsinitvals9.fw
-rw-r--r-- 1 root root 158 2010-02-21 14:54 a0g1bsinitvals5.fw
-rw-r--r-- 1 root root 158 2010-02-21 14:54 a0g1bsinitvals13.fw
-rw-r--r-- 1 root root 2002 2010-02-21 14:54 a0g0initvals9.fw
-rw-r--r-- 1 root root 1840 2010-02-21 14:54 a0g0initvals5.fw
-rw-r--r-- 1 root root 158 2010-02-21 14:54 a0g0bsinitvals9.fw
-rw-r--r-- 1 root root 158 2010-02-21 14:54 a0g0bsinitvals5.fw

So my second question is, what is the name of the driver? a0g1?

Thanks again for the help.

gordintoronto
February 22nd, 2010, 01:09 AM
If you can see surrounding networks, your wireless card is working just fine.

On the networking icon, right-click and select "edit connections." You want to Add a Wireless connection; you need to know your router's ID, encryption type and password.

ispy99
February 22nd, 2010, 06:26 PM
That's what I was assuming, thanks.

When I click on the icon, under wireless it says "Device not managed" and I can't edit any connections. I am going to play around with it some more. I'll post again if I run into any brick walls. Thanks.

dummy910
February 22nd, 2010, 07:25 PM
http://ubuntuforums.org/showpost.php?p=8215883&postcount=22

problems should be solved... follow my directions exactly, and don't forget to reboot after install the 'backports' package ;)

ispy99
February 24th, 2010, 01:28 AM
Wow, really getting tired of dealing with Ubuntu...sorry, a little bit of a vent there.

I finally managed to find the right package, couldn't install it with the sudo apt method, couldn't get Synaptic Package Manager to install it (because I don't have an internet connection it can't see the repositories, at least that's my guess). Finally found a post that references GDebi installer. I have that, great! Find the package, right click, pick install package, and....get the error message: "Error: Dependency is not satisfiable: linux-image-2.61.31-19-generic-pae" and then it says something about installing a meta package or something.....

ispy99
February 26th, 2010, 12:46 AM
I decided to retry setting up wpa_supplicant to see what happened. I followed the directions and this is the output:
root@me-desktop:/home/me# wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ap_scan=2
Line: 4 - start of a new network block
ssid - hexdump_ascii(len=6):
Hex dump was here myssid
scan_ssid=1 (0x1)
key_mgmt: 0x2
PSK - hexdump(len=32): [REMOVED]
Priority group 0
id=0 ssid='myssid'
Interface wlan0 set UP - waiting a second for the driver to complete initialization
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf flags 0x0
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:1d:7e:11:d9:7f
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
WPS: UUID based on MAC address - hexdump(len=16): Hex dump listed here
WPS: Build Beacon and Probe Response IEs
WPS: * Version
WPS: * Wi-Fi Protected Setup State (0)
WPS: * Version
WPS: * Wi-Fi Protected Setup State (0)
WPS: * Response Type (2)
WPS: * UUID-E
WPS: * Manufacturer
WPS: * Model Name
WPS: * Model Number
WPS: * Serial Number
WPS: * Primary Device Type
WPS: * Device Name
WPS: * Config Methods (0)
WPS: * RF Bands (3)
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
Added interface wlan0
Daemonize..

It looks like to me that it worked (at least it doesn't show any errors). Can anyone confirm this is the right output? Also, let me know if I posted anything I shouldn't have, like security info. Thanks!

ispy99
March 2nd, 2010, 10:04 PM
Just for closure, I did manage to get wpa_supplicant to work. When I have a second I'll dig up the link that worked for me, in case anyone else has a similar problem. Thanks for the help.\\:D/

Here's the thread that works:
http://ubuntuforums.org/showthread.php?t=263136