ubuntu14.04 连接无线网
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了ubuntu14.04 连接无线网,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2510字,纯文字阅读大概需要4分钟。
内容图文
![ubuntu14.04 连接无线网](/upload/InfoBanner/zyjiaocheng/975/c05501b33a954ab9a7447fba32407b27.jpg)
ubuntu14.04 连接无线网
查看usb无线网卡驱动
1.命令:lsusb
得到ID 0bda:818b Realtek Semiconductor Corp,此ID对应于RTL8192eu,下载该无线网卡驱动并安装。
2.下载地址:
https://github.com/Mange/rtl8192eu-linux-driver
3.安装:
sudo su (或者命令前加sudo)
make clean
make
modprobe lib80211
modprobe cfg80211
insmod 8192eu.ko
cp 8192eu.ko /lib/modules/uname -r
/kernel/drivers/net/wireless#uname -r
改为自己电脑中文件夹名字
depmod -a #与编译驱动相关的事宜到此完结
modprobe 8192eu #加载驱动
lsmod #查看是否有8192eu 驱动模块
echo 8192eu >> /etc/modules 将驱动添加到开机启动列表
4.重启电脑。
安装w311p等无线网卡光盘提供的驱动(或官网下载)
1.注意看带readme字眼的文件,有说明做修改:
“HAS_WPA_SUPPLICANT=n”——>“HAS_WPA_SUPPLICANT=y”;
“HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n”——>“HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y”
2.运行 sudo make
如果fsuid 出错(查看终端显示error+行数的地方,warning可不管),做如下修改:
“pOSFSInfo->fsuid = current_fsuid(); ”——>“pOSFSInfo->fsuid = *(int *)¤t_fsuid(); ”;
“pOSFSInfo->fsgid =current_fsgid(); ”——>“pOSFSInfo->fsgid = *(int *)¤t_fsgid(); ”
如果是内核版本原因,类似于:
1)erreur: ‘rt2860_remove_one’ undeclared here (not in a function)
remove: __devexit_p(rt2860_remove_one),
2)erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘rt2860_remove_one’
static VOID __devexit rt2860_remove_one(
3)erreur: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
remove: __devexit_p(rt2860_remove_one) 等
修改:
sed -i ‘s/__devexit/__exit/g’ pci_main_dev.c
sed -i ‘s/__devinit/__init/g’ pci_main_dev.c
sed -i 's/old/new/g’ xxx:把xxx文档里面的old这个词换成new。
3.安装 sudo make install。
4.sudo echo “blacklist rt2800usb”>>etc/modprobe.d/blacklist.conf
参考连接:
【1】https://jingyan.baidu.com/article/fdffd1f8536d53f3e98ca1ef.html
【2】https://bbs.archlinux.org/viewtopic.php?id=161952 5楼:
The error seems to be because some macros such as __devexit and __devinit have been deprecated with recent kernel versions.
If you have a recent kernel (≥ 3.8.0), you should edit the code to get rid of references to those macros. Edit os/linux/pci_main_dev.c like this:
sed -i ‘s/__devexit/__exit/g’ pci_main_dev.c
sed -i ‘s/__devinit/__init/g’ pci_main_dev.c
内容总结
以上是互联网集市为您收集整理的ubuntu14.04 连接无线网全部内容,希望文章能够帮你解决ubuntu14.04 连接无线网所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。