Installing Atheros AR8161 Ethernet Drivers on Kali x64

I’ve been trying to get Kali (based on Debian) up and running on my laptop recently and had issues getting the wired Ethernet working out of the box. It looks like the drivers aren’t included with the release (as of 12/7/13) so you’ve got to manually install them.

First thing you have to do is get the required libraries from the repository. Use the following to do so:

uname -r
apt-get install build-essential linux-headers-'uname -r output'
#In my case, the command looks like:
apt-get install build-essential linux-headers-3.7-trunk-amd64

Once you have those libraries installed, go ahead and download the driver from here:

http://www.linuxfoundation.org/collaborate/workgroups/networking/alx

I saved that to my Desktop, but you can save it anywhere. Next, we have to untar the archive using the following command:

tar jxvf compat-drivers-2013-03-04-u.tar.bz2

Afterwards, we move into the new directory and have to edit a file before we can run the script. Go to the following location and edit out lines 134 & 135 by adding ‘//’ before the if/else statement.

cd compat-drivers-2013-03-04-u/drivers/net/ethernet/atheros/alx
nano alx_main.c

Save and close the file. Next, head back to the root driver directory and run the following commands:

cd ~
cd compat-drivers-2013-03-04-u
./scripts/driver-select alx
make
make install
make unload
modprobe alx

Screenshot from 2013-12-07 14:56:07

That’s it! If you have a network cable connected to your computer, you should now have a connection! If you don’t, go ahead and reboot. Once the PC comes back up, you should have a connection!

Comments

comments