刚装上ubuntu18.04没有为wifi适配器,以及连接有线和wifi的操作

刚装上ubuntu18.04没有为wifi适配器,
原因:没有驱动,网卡mediatek mt7630e;
解决:
来源:https://blog.csdn.net/zw__chen/article/details/78355047
内容:
Mediatek launched a working driver for their wireless device MT7630E for Linux Mint/Ubuntu which was officially supported only for kernel 3.13 and 3.14. The modified driver I am going to use can be installed upto kernel 4.4.*

Download:

Download the driver from here (It’s a modification of the original driver for easy installation)https://github.com/neurobin/MT7630E/archive/release.zip

Install:

Now follow the instructions below:

extract the archive in your Downloads directory (or any other directory).

In terminal run:

cd ~/Downloads/MT7630E-release (change the path if you extracted in another folder)

now run these commands one by one:

sudo chmod +x install
sudo ./install

It will prompt for your password. Put your password and wait to finish the installaion.

After installation has been completed the wifi will appear in the networkmanager and bluetooth will be available for use. The driver will load at startup automatically, so you don’t need to load the driver every time you reboot.


ubuntu 连接wifi的时候,没有ui界面时,需要命令设置连接的ssid以及password。更改文件什么的对新手太复杂,下面的方法比较好。

在linux下除了图形方式连接wifi,还可以使用命令行方式连接,这种方式方便没有图形界面的linux、无显示器、裁剪系统等嵌入式设备。

获取nmcli方法
如果在你的设备可以访问互联网的情况下
sudo apt-get install network-manager
通过上述命令直接安装network-manager,包含了nmcli 命令

如果在你的设备无法访问互联网的情况下,你可以下载一份源码,通过目标板编译或者交叉编译的方式编译出network-manager工具,这里不多做描述。

nmcli扫描并查看wifi情况
使用方法:
nmcli d wifi connect password iface
例如:连接KFC_free
通过ifconfig 获取网卡描述,一般默认wlan0
nmcli d wifi connect “KFC_free” password “12345678” wlan0
连接成功后通过ifconfig 查看一下是否获得了ip

如果出现下面的情况
Error: Failed to add/activate new connection: (32) Not authorized to control networking.
尝试切换root用户尝试。

连接成功后,每次开机默认都会去连接wifi,此时去切换别的wifi会失败,可提前断开连接
nmcli dev dis wlan0
或者
nmcli con del KFC_free
断开连接后,再连接别的wifi就正常了。

彻底删除wifi连接的方法

nmcli c
这个命令可以获取到当前设备所有连接过多的历史连接及对于UUID号码

通过
nmcli c del 72ffd5f4-71f8-0001-b434-6122908cfd4e

del 后边是UUID号码


连接有线需要账户密码登陆的时候,在/usr/share/applications/下面找到netword-connections,创建一个的
dsl/pppoe的连接,选择有线的网卡,输入账号密码,服务不用管,在常规选项里面勾选 可用时自动连接网络,以太网李把这个选项去掉。再到网络设置里面去掉以太网李有线连接的自动连接,会出现一个蓝牙的pppo什么的。就可以了。
不过我后来再启动没办法联网,有线无托管,百度一下把有一个选项由false改为true(忘了,百度没有托管就好了),有线里面会出现一个之前设置的有线网卡选项,连接就可以上网了,下次遇到再说。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值