我正在尝试使用WiFi和蓝牙软件狗在Raspberry Pi上设置NAT。想法是访问我的WiFi(显然我已经完成了该部分),并使此连接可用于具有Bluetooth但没有WiFi的设备。
蓝牙似乎完全是一团糟,至少在相关文档方面。
显然,我已经搜索了这个问题。最新的帖子(通常5-6岁)通常是指当前发行版中不存在的配置文件。
我正在尝试在Debian 8上进行设置,或者在Ubuntu 16.04等虚拟机上进行测试。
我不确定为什么这个答案被否决了,因为-我想-它回答了这个问题。我以一种非常简单的方式知道。无论如何,这里都是我的答案,它基本上是链接答案的扩展版本:
为了通过蓝牙共享wifi连接,以便其他设备可以通过此wifi连接访问互联网,这对我有用:
安装blueman软件包。
$ sudo apt安装blueman
在终端窗口中,打开Blueman Local Services:
$ blueman服务
只需按照指定的方式填写上面的窗口,然后单击“应用”(如果它是灰色的,则只需更改任何内容并还原即可)。
打开Blueman Manager,以更轻松地连接设备。
$ blueman-manager
然后,要通过我的Android手机使用此连接,请执行以下操作:
1.1启用蓝牙
1.2 Enter bluetooth settings and make device discoverable
1.3 On PC, click "Search", find your phone and click the Keys button on the toolbar.
1.4 Confirm pairing both on your phone AND on PC.
1.5 Optionally you can mark this connection as "Trusted" by clicking the Star button on the Blueman Manager window.
2.1 Enter bluetooth settings and click the area pointed by the following image.
2.2 From the screen that will open, turn on the "Internet access" option.
That's it. Within a few seconds, I had internet.
The procedure is very similar if you want to connect another device to the internet, such as a Windows PC. Just pair and enable internet through the connection.
My OS:
$ cat /etc/issue
Ubuntu 17.10 \n \l
底部注释:我知道OP要求Raspberry Pi的操作步骤,但是由于它是基于Debian的,因此我编写的所有内容都适用。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句