{"id":3360,"date":"2012-06-23T20:57:40","date_gmt":"2012-06-23T17:57:40","guid":{"rendered":"http:\/\/mummila.net\/nuudelisoppa\/?p=3360#post-"},"modified":"2012-06-24T15:57:24","modified_gmt":"2012-06-24T12:57:24","slug":"pan-over-bluetooth-in-ubuntu-12-04-wbluez-4-blueman","status":"publish","type":"post","link":"https:\/\/mummila.net\/nuudelisoppa\/2012\/06\/23\/pan-over-bluetooth-in-ubuntu-12-04-wbluez-4-blueman\/","title":{"rendered":"PAN over Bluetooth in Ubuntu 12.04 w\/Bluez 4 &amp; Blueman"},"content":{"rendered":"<p>I&#8217;m setting up a Bluetooth &#8220;Group ad-hoc Network&#8221; (GN) between my desktop (say, MAC 00:00:00:00:00:0A) and laptop (MAC 00:00:00:00:00:0B) just to see if I can. Existing documentation&#8217;s pretty sparse, so I&#8217;m documenting what I do as I go along, to be able to recreate it later if need be. This is not a proper how-to, it&#8217;s public just for myself; you&#8217;re free to apply it though (as you should).<\/p>\n<p>I installed bluez-tools.<\/p>\n<p>$ bt-adapter -i<\/p>\n<p>shows information about the local adapter.<\/p>\n<p>I set both adapters discoverable:<\/p>\n<p>$ bt-adapter &#8211;set Discoverable 1<\/p>\n<p>They already were pairable. If not, set them so:<\/p>\n<p>$ bt-adapter &#8211;set Pairable 1<\/p>\n<p>This enables me to query the other device:<\/p>\n<p>jani@A:~$ sudo hcitool info 00:00:00:00:00:0B<\/p>\n<p>jani@B:~$ hcitool scan<br \/>\nScanning &#8230;<br \/>\n\t00:00:00:00:00:0A\tA-0<\/p>\n<p>And to <a href=\"http:\/\/wiki.openmoko.org\/wiki\/Manually_using_Bluetooth#Pair\">pair<\/a> them:<\/p>\n<p>jani@A:~$ bluez-simple-agent<br \/>\nAgent registered<\/p>\n<p>jani@B:~$ bluez-simple-agent hci0 00:00:00:00:00:0A<br \/>\nRequestPinCode (\/org\/bluez\/1075\/hci0\/dev_00_00_00_00_00_0A)<br \/>\nEnter PIN Code: 1234<\/p>\n<p>#(back at A)<br \/>\nRequestPinCode (\/org\/bluez\/1395\/hci0\/dev_00_1A_6B_28_21_1C)<br \/>\nEnter PIN Code: 1234<\/p>\n<p>#(back at B)<br \/>\nRelease<br \/>\nNew device (\/org\/bluez\/1075\/hci0\/dev_00_00_00_00_00_0A)<\/p>\n<p>I did this manually, because I was having trouble pairing the devices using GUIs. But once I had the two computers paired, I ran Blueman on both, added networking service on the desktop (all the default settings, using dnsmasq and Network Manager), created trust between the two (not sure if necessary) and connected the laptop to the desktop&#8217;s networking service. Oh, and <a href=\"https:\/\/bugs.launchpad.net\/debian\/+source\/blueman\/+bug\/884651\/comments\/5\">patched Blueman on the laptop to be able to connect<\/a>.<\/p>\n<p>After that I ran sudo dhclient bnep0 on the laptop. I think the <a href=\"http:\/\/blueman-project.org\/w\/index.php?title=Networking_Support_(DUN\/PAN)&amp;oldid=35#DhcpClient\">DhcpClient<\/a> plugin in Blueman is supposed to take care of this, but <a href=\"http:\/\/blueman-project.org\/forum\/viewtopic.php?f=6&amp;t=301\">it doesn&#8217;t work for some reason<\/a>, and Network Manager doesn&#8217;t see the interface (on either end) so it&#8217;s not configurable there either.<\/p>\n<p>At some point of the process I also added myself to the &#8216;bluetooth&#8217; group on both setups, though I&#8217;m not sure if it&#8217;s necessary or even desirable. If things continue to work as they are, I&#8217;ll probably try removing myself from the group to see if it still works.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m setting up a Bluetooth &#8220;Group ad-hoc Network&#8221; (GN) between my desktop (say, MAC 00:00:00:00:00:0A) and laptop (MAC 00:00:00:00:00:0B) just to see if I can. Existing documentation&#8217;s pretty sparse, so I&#8217;m documenting what I do as I go along, to be able to recreate it later if need be. This is not a proper how-to, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3360","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/comments?post=3360"}],"version-history":[{"count":11,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3360\/revisions"}],"predecessor-version":[{"id":3375,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/3360\/revisions\/3375"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/media?parent=3360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/categories?post=3360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/tags?post=3360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}