惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
U
Unit 42
IT之家
IT之家
D
DataBreaches.Net
Y
Y Combinator Blog
B
Blog RSS Feed
F
Fortinet All Blogs
GbyAI
GbyAI
V
Visual Studio Blog
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
美团技术团队
L
LangChain Blog
N
Netflix TechBlog - Medium
G
Google Developers Blog
Recent Announcements
Recent Announcements
T
Tailwind CSS Blog

方永、南天紫雲

linux透明代理 技术的边界 停机问题通俗说明 Rust与oracle、redis集群的纠结 学习能力的增长 微信调试的原语 mac外接移动硬盘安装ArchLinux linux的死机问题 linux下全键盘操作 漂亮又好用的bspwm linux本机透明代理 ssh、mosh、autossh linux不能待机又一例 从WordPress切换到Hugo 折腾电脑开机 linux系统QQ新思路 Arch Linux的字体渲染 svn管理之submin OpenWrt自动fucking墙記錄 二维码(qrcode)名片的一些事儿 用lua nginx module搭建一个二维码(qr code)生成器 CentOS 7 安裝註記 php程序連接MySQL时只能127.0.0.1而localhost無法連接的問題 ThinkPad之FAN_ERROR、hi fi聲卡 jetty多端口部署 OpenWrt簡單暴力限網 linux中cron之PATH变量 OpenWrt的WDS無線橋接模式 再敘OpenWrt下的rtl8187無線中繼 sed之模擬tail
电脑通过蓝牙连接手机GPRS上网
zola · 2011-11-06 · via 方永、南天紫雲

电脑通过蓝牙连接手机GPRS上网

参考:

pacman -S bluez
rc.d start bluetooth
hcitool scan

记下上面的bd地址,添加到–bdaddr后面

sdptool search --bdaddr <BDADDR> DUN

有:

Protocol Descriptor List:
“RFCOMM” ..

则支持网络。

记住频道号,下面会用到。

/etc/bluetooth/rfcomm.conf中添加:

bind yes:
device <BDADDR>;
channel <CHANNEL>;
comment "GPRS dialup";

替换相关数据。

在/etc/conf.d/bluetooth中添加:

RFCOMM_ENABLE="true"
rc.d restart bluetooth
sudo cat /dev/rfcomm0

在手机上若出现确认连接,那么上述步骤正确,然后CTRL-c结束掉。

添加pppoe拨号要用到的文件:

/etc/ppp/peers/中添加文件gprs,内容如下:

/dev/rfcomm0
115200
connect '/usr/sbin/chat -v -f /etc/ppp/peers/chat-gprs'
crtscts
modem -detach
noccp
defaultroute
usepeerdns
noauth
ipcp-accept-remote
ipcp-accept-local
noipdefault

/etc/ppp/peers/中添加文件chat-gprs,内容如下(中国移动信号):

'' ATZ OK
AT+CGDCONT=1,"IP","cmnet"
OK "ATD\*99\*\*\*1#"
CONNECT ''

然后pon gprs,略等片刻就能连上网络了。