{"id":811,"date":"2015-07-06T01:31:28","date_gmt":"2015-07-05T16:31:28","guid":{"rendered":"https:\/\/hack.gpl.jp\/?p=811"},"modified":"2015-07-06T01:31:28","modified_gmt":"2015-07-05T16:31:28","slug":"post-811","status":"publish","type":"post","link":"https:\/\/hack.gpl.jp\/2015\/07\/06\/post-811.html","title":{"rendered":"\u306a\u3093\u3068\u304b\u30ea\u30e2\u30fc\u30c8\u3088\u308axwindow \u306b\u5165\u308c\u305f"},"content":{"rendered":"

\u307e\u3060\u3057\u3063\u304f\u308a\u7740\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u3068\u308a\u3042\u3048\u305a osx \u3088\u308a Pi2 \u306bx-window \u7d4c\u7531\u3067\u8d77\u52d5\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n

\u3044\u308d\u3044\u308d\u8a2d\u5b9a\u3092\u3044\u3058\u3063\u305f\u306e\u3067\u3001\u3069\u3053\u304c\u826f\u304f\u3066\u3001\u4f55\u304c\u30dd\u30a4\u30f3\u30c8\u3060\u3063\u305f\u306e\u304b\u3061\u3087\u3063\u3068\u307c\u3051\u3066\u3044\u307e\u3059\u3002\u7d76\u5bfe\u5fd8\u308c\u308b\u306e\u3067\u3001\u4f55\u3092\u3069\u3046\u3057\u305f\u3089\u3088\u304b\u3063\u305f\u306e\u304b\u3001\u30e1\u30e2\u7684\u306b\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002\u9593\u9055\u3063\u3066\u3044\u308b\u3068\u3053\u308d\u304c\u305f\u304f\u3055\u3093\u3042\u308b\u3068\u601d\u3046\u306e\u3067\u3001\u3053\u3053\u304b\u306a\uff1f\u3063\u3066\u3044\u3046\u90e8\u5206\u306e\u307f\u3002<\/p>\n

 <\/p>\n

osx \u306e term \u306b\u3066\u4ee5\u4e0b\u3092\u5b9f\u884c\u3002Pi2 \u306e IP \u3092\u5165\u308c\u3066\u3001osx \u306e X11 Server \u306b\u63a5\u7d9a\u8a31\u53ef\u8a2d\u5b9a\u3092\u5165\u308c\u308b<\/p>\n

\n

$ xhost +192.168.1.24
192.168.1.24 being added to access control list<\/p>\n

\u203bxhost \u306f\u3001osx \u306e X11 \u306e\u30c4\u30fc\u30eb<\/p>\n<\/blockquote>\n

osx \u306e ssh\u8a2d\u5b9a\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b<\/p>\n

\n

—- \/etc\/sshd_config
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
XAuthLocation \/opt\/X11\/bin\/xauth<\/p>\n<\/blockquote>\n

Pi2 \u306e ssh \u8a2d\u5b9a\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b<\/p>\n

\n

—- \/etc\/ssh\/ssh_config
::
   ForwardX11 yes
::<\/p>\n<\/blockquote>\n

osx \u3082 pi2 \u3082\u4e00\u56de\u518d\u8d77\u52d5\u3002<\/p>\n

\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3064\u3051\u3066\u63a5\u7d9a\u3002pi \u306f osx \u306e hosts \u306b\u3066IP \u8a18\u8f09\u3057\u3066\u3042\u308a\u540d\u524d\u89e3\u6c7a\u53ef\u80fd\u306a\u72b6\u614b\u3002<\/p>\n

\n

$ ssh -XC junkhack@pi<\/a><\/p>\n

\u203b-X \u3067\u52dd\u624b\u306bXQuartz 2.7.7 \u304c\u8d77\u52d5\u3002C \u306f\u5727\u7e2e<\/p>\n<\/blockquote>\n

\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u3089\u3001pi2 \u306b\u3066\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u3002<\/p>\n

\n

$ xfce4-session startxfce4<\/p>\n<\/blockquote>\n

\u3053\u306e\u3042\u305f\u308a\u3001\u30de\u30cb\u30e5\u30a2\u30eb\u898b\u308b\u3068\u3001\u3053\u3046\u3057\u3061\u3083\u3060\u3081\u3063\u3066\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u305f\u3076\u3093\u826f\u304f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

 <\/p>\n

\"xfce4-panel_\u3068_xeyes\" <\/p>\n

\u52d5\u4f5c\u306f\u3053\u3093\u306a\u3082\u306e\u304b\u3068\u601d\u3048\u3070\u3001\u307e\u3041\u826f\u3044\u306e\u304b\u3082\u3067\u3059\u304c\u3001\u901f\u3044\u30de\u30b7\u30f3\u3092\u4f7f\u3063\u3066\u3044\u308b\u30d2\u30c8\u306b\u306f\u6c7a\u3057\u3066\u5411\u304d\u307e\u305b\u3093\u3002\u3088\u3063\u307d\u3069\u7279\u6b8a\u306a\u7406\u7531\u304c\u306a\u3051\u308c\u3070\u307e\u305a\u4f7f\u308f\u306a\u3044\u3068\u65ad\u8a00\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30ed\u30b0\u30a2\u30a6\u30c8\u304c\u51fa\u308b\u307e\u3067\u3061\u3087\u3063\u3068\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002\uff12\uff5e\uff15\u79d2\u304f\u3089\u3044\u3002<\/p>\n

\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8_2015_07_06_1_22\" <\/p>\n

\u30ad\u30fc\u30de\u30c3\u30d7\u304c\u3088\u304f\u308f\u304b\u3089\u305a\u3001\u30b9\u30da\u30fc\u30b9\u30ad\u30fc\u304c\u62bc\u305b\u306a\u3044\u306e\u3067\u306a\u3093\u3068\u304b\u3057\u306a\u3044\u3068\u3002\u4ed6\u306b\u3082\u554f\u984c\u306f\u5c71\u6e08\u307f\u3067\u3059\u304c\u3002<\/p>\n

\u3068\u308a\u3042\u3048\u305a\u3001x-window \u3092\u30ea\u30e2\u30fc\u30c8\u304b\u3089\u63a5\u7d9a\u3059\u308b\u3053\u3068\u306f\u51fa\u6765\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u307e\u3060\u3057\u3063\u304f\u308a\u7740\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u3068\u308a\u3042\u3048\u305a osx \u3088\u308a Pi2 \u306bx-window \u7d4c\u7531\u3067\u8d77\u52d5\u3067\u304d\u307e\u3057\u305f\u3002 \u3044\u308d\u3044\u308d\u8a2d\u5b9a\u3092\u3044\u3058\u3063\u305f\u306e\u3067\u3001\u3069\u3053\u304c\u826f\u304f\u3066\u3001\u4f55\u304c\u30dd\u30a4\u30f3\u30c8\u3060\u3063\u305f\u306e\u304b\u3061\u3087\u3063\u3068\u307c\u3051\u3066\u3044\u307e\u3059\u3002\u7d76\u5bfe\u5fd8\u308c\u308b\u306e\u3067\u3001\u4f55\u3092\u3069\u3046\u3057\u305f […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","footnotes":""},"categories":[69],"tags":[],"acf":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"JunkHack","author_link":"https:\/\/hack.gpl.jp\/author\/junkhack\/"},"uagb_comment_info":0,"uagb_excerpt":"\u307e\u3060\u3057\u3063\u304f\u308a\u7740\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u3068\u308a\u3042\u3048\u305a osx \u3088\u308a Pi2 \u306bx-window \u7d4c\u7531\u3067\u8d77\u52d5\u3067\u304d\u307e\u3057\u305f\u3002 \u3044\u308d…","_links":{"self":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/811"}],"collection":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/comments?post=811"}],"version-history":[{"count":0,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/811\/revisions"}],"wp:attachment":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/media?parent=811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/categories?post=811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/tags?post=811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}