网络解决方法试验手记:
网卡驱动程序,我选择参考的网站http://askubuntu.com/questions/205582/how-do-i-get-an-atheros-ar8162-working,
结合我的笔记本电脑dell5423,有线网卡Qualcomm Atheros AR8162/8166/8168与无线网卡 Intel(R) Centrino(R) Wireless-N 2230的具体型号,我选择下载
http://linuxwireless.org/download/compat-wireless-2.6/%20. 下的compat-wireless-2012-09-01-pc.tar.bz2为网卡驱动文件包。
(我下载的驱动文件保存位置是/home/zhao/ )
安装执行如下命令:
tar -xvf compat-wireless-2012-09-01-pc.tar
cd /home/zhao/compat-wireless-2012-09-01-pc
scripts/driver-select alx
make
sudo make install
modprobe alx
(alx加载方法附后)
有些问题如下:
输入 make install 命令后,会出现需要卸载先前无线网卡的提示。这个命令是不行,舍弃。
原先无线网卡的驱动是安装系统后就已经有的。
make install 命令换为 sudo make install命令
执行sudo make install命令后的结果:
zhao@zhao-Inspiron-5423:~/compat-wireless-2012-09-01-pc$ sudo make install
[sudo] password for zhao:
Updating Ubuntu's initramfs for 3.2.0-35-generic-pae under /boot/ ...
Will now run update-grub to ensure grub will find the new initramfs ...
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-36-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-36-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-35-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-35-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-33-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-33-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-32-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-32-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-23-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-23-generic-pae
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
make -C /lib/modules/3.2.0-35-generic-pae/build M=/home/zhao/compat-wireless-2012-09-01-pc modules
make[1]: 正在进入目录 `/usr/src/linux-headers-3.2.0-35-generic-pae'
Building modules, stage 2.
MODPOST 4 modules
make[1]:正在离开目录 `/usr/src/linux-headers-3.2.0-35-generic-pae'
make -C /lib/modules/3.2.0-35-generic-pae/build M=/home/zhao/compat-wireless-2012-09-01-pc "INSTALL_MOD_DIR=updates" \
modules_install
make[1]: 正在进入目录 `/usr/src/linux-headers-3.2.0-35-generic-pae'
INSTALL /home/zhao/compat-wireless-2012-09-01-pc/compat/compat.ko
INSTALL /home/zhao/compat-wireless-2012-09-01-pc/compat/sch_codel.ko
INSTALL /home/zhao/compat-wireless-2012-09-01-pc/compat/sch_fq_codel.ko
INSTALL /home/zhao/compat-wireless-2012-09-01-pc/drivers/net/ethernet/atheros/alx/alx.ko
DEPMOD 3.2.0-35-generic-pae
make[1]:正在离开目录 `/usr/src/linux-headers-3.2.0-35-generic-pae'
Updating Ubuntu's initramfs for 3.2.0-35-generic-pae under /boot/ ...
Will now run update-grub to ensure grub will find the new initramfs ...
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-36-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-36-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-35-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-35-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-33-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-33-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-32-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-32-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-23-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-23-generic-pae
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
Note: iwl4965 detected, we're going to disable it. If you would like to enable it later you can run:
sudo iwl-load iwl4965
Running iwl-enable iwlagn...
Disabling iwl4965 ... [OK] Module disabled:
kernel/drivers/net/wireless/iwlegacy/iwl4965.ko
depmod will prefer updates/ over kernel/ -- OK!
Now run:
sudo make unload to unload all: wireless, bluetooth and ethernet modules
sudo make wlunload to unload wireless modules
sudo make btunload to unload bluetooth modules
Run sudo modprobe driver-name to load your desired driver.
If unsure reboot.
必须加载alx
加载alx方法
首先用无线网联网,执行如下命令
sudo apt-get install linux-headers-generic build-essential
wget
http://www.orbit-lab.org/kernel/compat- ... pc.tar.bz2
tar -xf compat-wireless-3.5.1-1-snpc.tar.bz2
cd compat-wireless-3.5.1-1-snpc
./scripts/driver-select alx
make
sudo make install
sudo modprobe alx
重启系统后,现在插入有线网卡接口,问题依旧,不能链接网络,郁闷中。。。。