Ubuntu下让Linux开发板通过笔记本上网

大多数情况下我们让Linux嵌入式开发板通过LAN口连接笔记本来达到两者之间的通信,这里更进一步,介绍在此基础上,让开发板能共享笔记本的无线网来达到直接上互联网的目的。我使用的开发板是飞凌公司的OK335xD,笔记本操作系统是Ubuntu 12.04



Configure the LAN and WLAN (general description)

Configure the LAN in terminal

$ sudo nano /etc/network/interfaces

Configure the WLAN to dhcp and automatic and LAN with a static ip address

auto lo
iface lo inet loopback

# The primary network interface
auto wlan0
iface wlan0 inet dhcp

# The second eth0
auto eth0
iface eth0 inet static
address 192.168.1.73

restart the network interface

$ sudo /etc/init.d/networking restart

Here if this cannot restart successfully, then try stop/start seperately, and the problem might be:

stop: Unknown instance:
networking stop/waiting

and even in the network application in ubuntu, the Wireless configuration is also disabled, it means that at the moment, the /etc/network/interfaces cannot correctly configure the network, here the solution is to use network manager service to configure the network:

sudo nano /etc/NetworkManager/NetworkManager.conf

change the line managed=false to managed=true (normally Ne

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值