LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 07:39 AM   #1
nicolasdiogo
Member
 
Registered: Oct 2003
Location: UK
Distribution: debian lenny x64
Posts: 129

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, 02:15 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,334

Rep: Reputation: 144Reputation: 144
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, 02:32 PM   #3
nicolasdiogo
Member
 
Registered: Oct 2003
Location: UK
Distribution: debian lenny x64
Posts: 129

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, 03:45 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,334

Rep: Reputation: 144Reputation: 144
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, 05:46 AM   #5
nicolasdiogo
Member
 
Registered: Oct 2003
Location: UK
Distribution: debian lenny x64
Posts: 129

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, 02:49 PM   #6
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,334

Rep: Reputation: 144Reputation: 144
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 05:20 PM.
 
Old 01-11-2007, 02:59 PM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
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, 08:27 AM   #8
nicolasdiogo
Member
 
Registered: Oct 2003
Location: UK
Distribution: debian lenny x64
Posts: 129

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


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


All times are GMT -5. The time now is 09:39 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration