{"id":606,"date":"2009-05-13T17:43:26","date_gmt":"2009-05-13T09:43:26","guid":{"rendered":"http:\/\/www.liangliang.org.cn\/blog\/?p=606"},"modified":"2009-05-13T17:43:26","modified_gmt":"2009-05-13T09:43:26","slug":"debian-%e5%ae%89%e8%a3%85%e8%93%9d%e7%89%99%e9%bc%a0%e6%a0%87","status":"publish","type":"post","link":"https:\/\/www.liangliang.org.cn\/?p=606","title":{"rendered":"debian \u5b89\u88c5\u84dd\u7259\u9f20\u6807"},"content":{"rendered":"<p>\u5b89\u88c5\u9a71\u52a8<br \/>\napt-get install bluez-utils<br \/>\n\/etc\/init.d\/bluez-utils restart<\/p>\n<p>\u542f\u52a8\u670d\u52a1\u5e76\u641c\u7d22\u84dd\u7259\u8bbe\u522b\uff08\u8fd9\u65f6\u9700\u8981\u6309\u4e00\u4e0b\u84dd\u7259\u9f20\u6807\u7684connect\u952e\uff09<\/p>\n<p>sudo hidd --server<br \/>\nsudo hidd --search<\/p>\n<p>\u4e00\u4f1a\u4f60\u5c31\u53ef\u4ee5\u770b\u5230\u8fd9\u4e2a\u8bbe\u5907\u7684MAC\u7801\u3000xx:xx:xx:xx:xx:xx<\/p>\n<p>\u4fee\u6539\u3000\/etc\/default\/bluetooth<br \/>\nsudo vi \/etc\/default\/bluetooth<\/p>\n<p>\u6ce8\u610f\u4e0b\u9762\u7ea2\u8272\u7684\u5730\u65b9\uff0c\u90a3\u91cc\u6539\u6210\u4f60\u9f20\u6807\u7684MAC\u7801\uff0c\u7136\u540e\u4fdd\u5b58<\/p>\n<p># Defaults for bluez-utils<\/p>\n<p># This file supersedes \/etc\/default\/bluez-pan. If<br \/>\n# that exists on your system, you should use this<br \/>\n# file instead and remove the old one. Until you<br \/>\n# do so, the contents of this file will be ignored.<\/p>\n<p># start bluetooth on boot?<br \/>\n# compatibility note: If this variable is not found bluetooth will<br \/>\n# start<br \/>\nBLUETOOTH_ENABLED=1<\/p>\n<p># This setting will switch HID devices (e.g mouse\/keyboad) to HCI mode, that is<br \/>\n# you will have bluetooth functionality from your dongle instead of only HID.<br \/>\n# Note that not every bluetooth dongle is capable of switching back to HID<br \/>\n# mode, see http:\/\/bugs.debian.org\/cgi-bin\/bugreport.cgi?bug=355497<br \/>\nHID2HCI_ENABLED=1<\/p>\n<p>############ HIDD<br \/>\n#<br \/>\n# HID daemon<br \/>\n<span style=\"color: #ff0000;\">HIDD_ENABLED=1<br \/>\nHIDD_OPTIONS=\"--connect AA:BB:CC:DD:EE:FF --server\"<\/span><br \/>\n# to make hidd always use a particular interface, use something<br \/>\n# like this, substituting the bdaddr of the interface:<br \/>\n# HIDD_OPTIONS=\"-i AA:BB:CC:DD:EE:FF --server\"<\/p>\n<p>\u8bbe\u7f6e\u5f00\u673a\u81ea\u52a8\u8fde\u63a5\u9f20\u6807\uff0c\u7f16\u8f91rc.local<\/p>\n<p>$ sudo gedit \/etc\/init.d\/rc.local<\/p>\n<p>\u5728\u540e\u9762\u52a0\u4e0a<\/p>\n<p>hciconfig hci0 down<br \/>\nhciconfig hci0 up<br \/>\nhidd --search<\/p>\n<p>\u4fdd\u5b58<\/p>\n<p>\u5927\u529f\u544a\u6210\uff0c\u91cd\u542f\u52a8\u4e0b\u4f60\u7684\u8ba1\u7b97\u673a\u770b\u770b\uff0c\u662f\u4e0d\u662f\u53ef\u4ee5\u7528\u5566\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5\u9a71\u52a8 apt-get install bluez-utils \/etc\/init.d\/bluez-utils restart \u542f\u52a8\u670d\u52a1\u5e76\u641c\u7d22\u84dd\u7259\u8bbe\u522b\uff08\u8fd9\u65f6\u9700\u8981\u6309\u4e00\u4e0b\u84dd\u7259\u9f20\u6807\u7684connect\u952e\uff09 s&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-606","post","type-post","status-publish","format-standard","hentry","category-debian"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=606"}],"version-history":[{"count":0,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/606\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}