{"id":1394,"date":"2016-06-17T22:36:25","date_gmt":"2016-06-17T13:36:25","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=1394"},"modified":"2016-06-17T22:36:25","modified_gmt":"2016-06-17T13:36:25","slug":"want-the-android-terminal-to-the-touch-pad-instead-of-linux-blink-of-bluetooth-use","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2016\/06\/17\/want-the-android-terminal-to-the-touch-pad-instead-of-linux-blink-of-bluetooth-use\/","title":{"rendered":"Android\u7aef\u672b\u3092Linux\u306e\u30bf\u30c3\u30c1\u30d1\u30c3\u30c9\u66ff\u308f\u308a\u306b\u3057\u305f\u3044(Bluetooth\u5229\u7528\u306eBlink)"},"content":{"rendered":"<div id=\"content\">\n<div id=\"preamble\">\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>\u6700\u8fd1\u307e\u305f\u30dd\u30a4\u30f3\u30c6\u30a3\u30f3\u30b0\u30c7\u30d0\u30a4\u30b9\u306bApple Wireless Trackpad\u3092\u5229\u7528\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u304c\u6301\u3061\u904b\u3073\u306b\u306f\u5c11\u3057\u5d69\u5f35\u308a\u307e\u3059\uff0e\u30de\u30a6\u30b9\u3092\u6301\u3061\u904b\u3076\u306e\u3082\u304b\u3055\u3070\u308a\u307e\u3059\uff0e<br \/>\nUbuntu Touch\u3067HDMI\u63a5\u7d9a\u6642\u306b\u30bf\u30c3\u30c1\u30c7\u30d0\u30a4\u30b9\u306b\u306a\u308b\u3068\u3044\u3046\u306e\u3092\u898b\u3066Android\u7aef\u672b\u3092\u30bf\u30c3\u30c1\u30c7\u30d0\u30a4\u30b9\u306b\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u306e\u3067\u306f?\u305d\u308c\u306a\u3089\u8377\u7269\u5897\u3048\u7121\u3044\u3057\u3044\u3044\u304b\u3082\u3068\u601d\u3063\u3066\u5c11\u3057\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_bluetooth\u5229\u7528\u306eblink\">Bluetooth\u5229\u7528\u306eBlink<\/h2>\n<div class=\"sectionbody\">\n<div class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https:\/\/play.google.com\/store\/apps\/details?id=co.za.thatguy.blink\">Blink Linux Remote Control &#8211; Google Play \u306e Android \u30a2\u30d7\u30ea<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/drpain\/blink-server\">drpain\/blink-server: This is the server you would need to be able to run the Blink Android Application.<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<div class=\"paragraph\">\n<p>Blink\u306fBluetooth\u63a5\u7d9a\u304b\u3064PC\u5074\u3067\u30c7\u30fc\u30e2\u30f3\u3092\u52d5\u304b\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff0e<br \/>\n\u5148\u305aBluetooth\u30da\u30a2\u30ea\u30f3\u30b0\u3092\u3057\u3066\u304a\u304d\uff0cPC\u5074\u3067\u30c7\u30fc\u30e2\u30f3\u3092\u5c0e\u5165\u3057\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>\u5fc5\u8981\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u5c0e\u5165<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ sudo apt install bluez python-bluez xdotoolsudo apt-get install bluez python-bluez xdotool<\/pre>\n<\/div>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>\u30c7\u30fc\u30e2\u30f3\u306e\u5c0e\u5165<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ git clone https:\/\/github.com\/drpain\/blink-server.git ~\/.blink<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u30c7\u30fc\u30e2\u30f3\u3092\u8d77\u52d5\u3059\u308b\u306e\u3067\u3059\u304c\uff0c\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b\u6642\u70b9\u3067\u306eDebian stretch testing amd64\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ sudo ~\/.blink\/bluetooth_server.py\r\nTraceback (most recent call last):\r\n  File \"\/home\/mk\/.blink\/bluetooth_server.py\", line 25, in &lt;module&gt;\r\n    profiles         = [ SERIAL_PORT_PROFILE ]\r\n  File \"\/usr\/lib\/python2.7\/dist-packages\/bluetooth\/bluez.py\", line 176, in advertise_service\r\n    raise BluetoothError (str (e))\r\nbluetooth.btcommon.BluetoothError: (2, 'No such file or directory')<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>Guihub\u306eHELP\u3092\u53c2\u8003\u306b*\/etc\/bluetooth\/main.conf*\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>diff --git a\/bluetooth\/main.conf b\/bluetooth\/main.conf\r\nindex 372fd8c..2f7cc4a 100644\r\n--- a\/bluetooth\/main.conf\r\n+++ b\/bluetooth\/main.conf\r\n@@ -64,6 +64,9 @@\r\n # 'false'.\r\n #FastConnectable = false\r\n\r\n+# \"drpain\/blink-server: This is the server you would need to be able to run the Blink Android Application.\" https:\/\/github.com\/drpain\/blink-server\r\n+DisablePlugins = pnat\r\n+\r\n #[Policy]\r\n #\r\n # The ReconnectUUIDs defines the set of remote services that should try<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u8a2d\u5b9a\u3092\u53cd\u6620\u3059\u308b\u305f\u3081\u306bbluetoothd\u3092\u518d\u8d77\u52d5\u3057\u3066\u30b5\u30fc\u30d0\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ sudo service bluetooth restart<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u30b5\u30fc\u30d0\u306f\u8981root\u306e\u3088\u3046\u3067\u3059\uff0e<br \/>\n\u3053\u306e\u72b6\u614b\u3067Android\u5074\u304b\u3089\u30af\u30e9\u30a4\u30a2\u30f3\u30c8PC\u3092\u9078\u629e\u3057\u3066\u63a5\u7d9a\u3059\u308c\u3070ok\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ sudo ~\/.blink\/bluetooth_server.py\r\nREADY FOR CONNECTIONS, RFCOMM channel 1\r\n('INBOUND CONNECTION ', ('68:76:4F:3B:D1:E0', 1))\r\nCOMMAND RECEIVED [{\"action\":\"mouse-move\",\"x\":null,\"y\":null}]\r\n['xdotool', 'mousemove_relative', '--', 'None', 'None']\r\nCOMMAND RECEIVED [{\"action\":\"mouse-move\",\"x\":-1,\"y\":0}]\r\n['xdotool', 'mousemove_relative', '--', '-1', '0']\r\nCOMMAND RECEIVED [{\"action\":\"mouse-move\",\"x\":0,\"y\":0}]\r\n['xdotool', 'mousemove_relative', '0', '0']\r\nCOMMAND RECEIVED [{\"action\":\"mouse-move\",\"x\":-1,\"y\":0}]\r\n['xdotool', 'mousemove_relative', '--', '-1', '0']<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u4e0a\u306e\u65b9\u306e\u30e2\u30fc\u30c9\u5207\u66ff\u30b9\u30a4\u30c3\u30c1\u3092\u30bf\u30c3\u30d7\u3057\u3066\u898f\u5b9a\u306e\u300cSwipe Area\u300d\u304b\u3089\u300cMouse\u300d\u306b\u3057\u307e\u3059\uff0e\u300cMouse Area\u300d\u3067\u64cd\u4f5c\u3059\u308b\u3068xdotool\u306e\u30ed\u30b0\u304c\u5927\u91cf\u306b\u51fa\u3064\u3064\u64cd\u4f5c\u3067\u304d\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><a href=\"https:\/\/www.flickr.com\/photos\/119142834@N05\/27629912281\/in\/photostream\/\"><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/c2.staticflickr.com\/8\/7081\/27629912281_e0ba729509_n.jpg\" alt=\"27629912281 e0ba729509 n\"><\/span><\/a><br \/>\n<a href=\"https:\/\/www.flickr.com\/photos\/119142834@N05\/27094267013\/in\/photostream\/\"><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/c6.staticflickr.com\/8\/7181\/27094267013_3fb8577a76_n.jpg\" alt=\"27094267013 3fb8577a76 n\"><\/span><\/a><\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u64cd\u4f5c\u306f\u5c11\u3057\u89e3\u308a\u3065\u3089\u304f\u3066\u3053\u3093\u306a\u611f\u3058\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>\u30bf\u30c3\u30d7&#8594;\u5de6\u30af\u30ea\u30c3\u30af<\/p>\n<\/li>\n<li>\n<p>\u30bf\u30c3\u30d7, \u30db\u30fc\u30eb\u30c9, \u30ea\u30ea\u30fc\u30b9 &#8594; \u53f3\u30af\u30ea\u30c3\u30af<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<div class=\"paragraph\">\n<p>\u4e2d\u30af\u30ea\u30c3\u30af\u3084\u30c9\u30e9\u30c3\u30b0\u306f\u591a\u5206\u672a\u5b9f\u88c5\u3067\u4f7f\u3048\u307e\u305b\u3093\uff0e<br \/>\n\u30ab\u30fc\u30bd\u30eb\u79fb\u52d5\u306f\u3061\u3089\u3064\u304d\u307e\u3059\u304c\u3068\u308a\u3042\u3048\u305a\u4f7f\u3048\u308b\u611f\u3058\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3067\u3082\u5c0e\u5165\u306b\u8981\u8a2d\u5b9a\u5909\u66f4&amp;\u8981root\u306a\u306e\u304c\u9762\u5012\u3067\u3059\u306d\uff0e<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=4822237710\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=B01EVM3ZF4\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=B003XKO2LW\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u307e\u305f\u30dd\u30a4\u30f3\u30c6\u30a3\u30f3\u30b0\u30c7\u30d0\u30a4\u30b9\u306bApple Wireless Trackpad\u3092\u5229\u7528\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u304c\u6301\u3061\u904b\u3073\u306b\u306f\u5c11\u3057\u5d69\u5f35\u308a\u307e\u3059\uff0e\u30de\u30a6\u30b9\u3092\u6301\u3061\u904b\u3076\u306e\u3082\u304b\u3055\u3070\u308a\u307e\u3059\uff0e Ubuntu Touch\u3067HDMI\u63a5\u7d9a\u6642\u306b\u30bf\u30c3\u30c1\u30c7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[21,7,6,75,90],"tags":[283,276,275,290,291],"class_list":["post-1394","post","type-post","status-publish","format-standard","hentry","category-android","category-debian-linux","category-linux","category-stretch","category-testing","tag-android","tag-debian-linux","tag-linux","tag-stretch","tag-testing"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/1394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=1394"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/1394\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=1394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=1394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=1394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}