Resolve the Bluetooth problem on Fedora 15/16

本文解决使用F15/F16通过蓝牙连接手机时遇到的连接拒绝或权限被拒问题,并提供了一个使用obexfs的工作绕过方法。讨论了Linux内核回归,解释了工作原理并提供了确保解决方案持久性的建议。

Problem

After you setup your phone with your F15/F16 through bluetooth, and try to browse or send files, you fail and get message like "connection refused" or "permission denied".

Solution

https://bugzilla.redhat.com/show_bug.cgi?id=753617

~~~~~~~~~~~~~

My steps

#sudo yum install gnome-user-share bluez-hcidump  obexfs

#sudo hciconfig hci0 sspmode 0

Remove the bluetooth devices and  then add them back.

~~~~~~~~~~~~~

Quotation from above web page.

Comment 16 Japplo 2012-02-12 18:06:16 EST
Hi guys, I've found a workaround using obexfs :-)
First, mount the bluetooth device like that:

yum install obexfs
mkdir /tmp/test
obexfs -b 12:34:56:78:90:12 /tmp/test

After this, I can send and receive files without problems! yes yes yes
Comment 17 Gökhan Sever 2012-02-13 12:58:04 EST
Hi Japplo,

I can get my N900 mount following your method. I can see files, but copying
doesn't move even a bit of data, and end up crashing file manager.
Comment 18 Luiz Augusto von Dentz 2012-02-15 08:29:51 EST
This is a regression in Linux Kernel, for more information check this thread:

http://thread.gmane.org/gmane.linux.bluez.kernel/15447/focus=20013

Any 2.1 device (with Secure Simple Pairing enabled) will fail to connect if sdp
is also connected, apparently obexfs doesn't do sdp thats why it works, the
workaround is to disable spp by doing: sudo hcidump hci0 sspmode 0
Comment 19 Saurav Sengupta 2012-02-15 13:19:37 EST
The command is hciconfig instead of hcidump. Does anyone know how to make the
workaround persist across Bluetooth on/off and system reboots?

在使用 `yum` 安装 `epel-release-latest-8.noarch.rpm` 时出现 `Curl error (6)` 无法解析主机名 `dl.fedoraproject.org` 的问题,通常是由于 DNS 配置不正确或网络连接问题导致的。以下是一些可能的解决办法: #### 检查网络连接 确保系统的网络连接正常,可以尝试使用 `ping` 命令测试网络连通性,例如: ```bash ping www.baidu.com ``` 如果无法 ping 通,需要检查网络配置,如网线是否插好、无线网络是否正常连接等。 #### 检查 DNS 配置 可以通过修改 `/etc/resolv.conf` 文件来配置 DNS 服务器。以下是一些常见的公共 DNS 服务器地址: - 阿里云 DNS:`223.5.5.5` 和 `223.6.6.6` - 谷歌 DNS:`8.8.8.8` 和 `8.8.4.4` 编辑 `/etc/resolv.conf` 文件,添加或修改 DNS 服务器地址,例如: ```bash nameserver 223.5.5.5 nameserver 223.6.6.6 ``` 修改完成后,再次尝试安装: ```bash yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm ``` #### 使用 hosts 文件 可以通过编辑 `/etc/hosts` 文件,将 `dl.fedoraproject.org` 的域名解析为 IP 地址。首先,通过 `nslookup` 命令获取 `dl.fedoraproject.org` 的 IP 地址: ```bash nslookup dl.fedoraproject.org ``` 然后,编辑 `/etc/hosts` 文件,添加解析记录,例如: ```plaintext <IP 地址> dl.fedoraproject.org ``` 保存文件后,再次尝试安装。 #### 临时使用其他 DNS 服务器 可以使用 `nmcli` 命令临时修改 DNS 服务器,例如: ```bash nmcli con mod <连接名称> ipv4.dns "223.5.5.5 223.6.6.6" nmcli con up <连接名称> ``` 其中,`<连接名称>` 可以通过 `nmcli con show` 命令查看。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值