Install Atheros AR8161 Gigabit Ethernet Driver on Ubuntu 12.04LTS

0.Confirm your Gigabit Ethernet verison

root@Alan-dell-14R-Turbo:~# lspci | grep Ethernet
03:00.0 Ethernet controller: Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 10)

1.Download Driver Package.

sudo su -     #input your password

wget http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-03-12-p.tar.bz2

2.Uncompress files and exec commands.

tar xvf compat-wireless-2012-03-12-p.tar.bz2

cd compat-wireless-2012-03-12-p

./scripts/driver-select alx

make

make install

./scripts/alx-enable atl1c

./scripts/alx-enable alx

modprobe alx