LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-10-2007, 06:39 AM   #1
nicolasdiogo
Member
 
Registered: Oct 2003
Location: UK
Distribution: debian lenny x64
Posts: 130

Rep: Reputation: 20
Question Atheros Card on Ubuntu Server x86_64


hi,

i am trying to use ubuntu on a 64bit box i have.
it is a ubuntu installation but without gnome.

i need to install wireless a card on it; netgear WG311T.

i followed the instruction found on:

http://ubuntuforums.org/showthread.php?t=38972
http://madwifi.org/wiki/UserDocs/Distro/Ubuntu

but it fails when compiling the driver, giving the following error:

$make

Checking requirements ...ok
Checking kernel configuration ...FAILED
Please enable wireless extensions.
make: *** [configcheck] Error 1

so it seems i need to enable wireless extensions, but i do not know how to go about it.

surely a more experienced user will know it.

thanks in advance for your assistance.

regards
 
Old 01-10-2007, 01:15 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,988

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Check that the kernel headers you installed correspond to the kernel that you are using. To find your kernel number, run:

$ uname -a

Make sure that the kernel headers you installed track that kernel number. That error message is typical of a mismatch between kernel and kernel headers.
 
Old 01-10-2007, 01:32 PM   #3
nicolasdiogo
Member
 
Registered: Oct 2003
Location: UK
Distribution: debian lenny x64
Posts: 130

Original Poster
Rep: Reputation: 20
Exclamation strange you mention that

i was looking at the header and i noticed that i have the linux-image-2.6.17-10-generic installed as well as the headers.

but i thought i have a try and install the header linux-header-2.6.17-10-server and see what happens.

it seems that i can now compile the madwifi.
but the module is not loaded, i tried:

modprobe ath_pci

and it returns an error.

since the linux-image-2.6.17-10-generic kernel is loaded, i have the following options of header available:

linux-header-2.6.17-10-generic
linux-header-2.6.17-10
linux-header-2.6
linux-header-2.6.17-10-server

which should i keep installed?

nicolas
 
Old 01-10-2007, 02:45 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,988

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
The generic kernel matches your generic headers so that should work if you have wireless support compiled in your kernel. You can tell if it doesn't because there will be no /proc/net/wireless file. If that file isn't there, wireless support was not compiled into your kernel. You could recompile and make sure CONFIG_NET_RADIO is set to enabled. It is very rare to not have wireless support configured in but without it, you won't have the wireless extensions you need.

An alternative would be to switch to the server kernel which appears to have the wireless extensions enable since madwifi compiled against its kernel headers.
 
Old 01-11-2007, 04:46 AM   #5
nicolasdiogo
Member
 
Registered: Oct 2003
Location: UK
Distribution: debian lenny x64
Posts: 130

Original Poster
Rep: Reputation: 20
compiled and running

thanks,

it has compiled against the linux-header-2.6.17-10-server kernel.

and i managed to make it work with wpa_supplicant, but i have to issue the following command everytime i boot it:

wpa_supplicant -iath0 -Dmadwifi -c/etc/wpa_supplicant.conf -w -B

how can i make the wireless card become available automaticaly when rebooting the box?

thanks a lot.
 
Old 01-11-2007, 01:49 PM   #6
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,988

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
On non-debian based systems that's easy to do. You just put the commands you want to run at the end of /etc/rc.d/rc.local. In non-debian distros, rc.local is the last init script to run and it runs with root privileges as do all init scripts. Accordingly, any commands you put in there will run at the end of the boot process. It's an easy way to customize your boot setup like you want to do.

One of the more aggravating things about debian is they refuse to put in an rc.local script even though people have been complaining, questioning this for years. Since ubuntu is debian based you probably have no rc.local script. Not to worry, here's a link that describes more succinctly than I ever could how to create an rc.local on a debian system:

http://www.justlinux.com/nhf/Distrib..._Commands.html

Follow the instructions and once rc.local is setup just copy this in it:

wpa_supplicant -iath0 -Dmadwifi -c/etc/wpa_supplicant.conf -w -B


The next time you boot, that command should be run.

Last edited by kilgoretrout; 01-11-2007 at 04:20 PM.
 
Old 01-11-2007, 01:59 PM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Use these lines in your /etc/network/interfaces file to describe your ath0 interface. You can use madwifi instead of wext, of course, but it probably won't matter either way.
Code:
auto ath0
iface ath0 inet dhcp
        pre-up /sbin/wpa_supplicant -Bw -Dwext -c/etc/wpa_supplicant.conf -iath0
 
Old 01-16-2007, 07:27 AM   #8
nicolasdiogo
Member
 
Registered: Oct 2003
Location: UK
Distribution: debian lenny x64
Posts: 130

Original Poster
Rep: Reputation: 20
many thanks

i have installed the card and it is now working at lovely!

Quakeboy02 suggestion did the work fine.

kind regards to you all.
 
  


Reply

Tags
atheros, connection, server, ubuntu, wireless



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
Getting Netgear Wireless USB dongle WPN111 (Atheros chipset) to work on Ubuntu 6.06 mouzy93 Linux - Wireless Networking 6 09-11-2010 08:12 PM
Ubuntu edgy and atheros chipsets.... nosrednaekim Ubuntu 16 02-04-2007 10:00 AM
Wifi card Atheros a+g Stabby McTwist Linux - Hardware 5 10-29-2006 11:20 PM
How to install Wifi Card Atheros ar5005G on Ubuntu? andresmilleiro Linux - Hardware 2 08-26-2006 10:41 AM
Wine on x86_64 Ubuntu install help Nox_hand Ubuntu 4 12-25-2005 09:16 AM

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

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