{"id":6007,"date":"2016-04-24T12:27:33","date_gmt":"2016-04-24T04:27:33","guid":{"rendered":"https:\/\/kyle.ai\/blog\/?p=6007"},"modified":"2016-04-24T12:27:33","modified_gmt":"2016-04-24T04:27:33","slug":"%e5%9c%a8mac%e4%b8%8a%e8%bf%90%e8%a1%8c%e6%a0%91%e8%8e%93%e6%b4%be%e7%95%8c%e9%9d%a2","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/6007.html","title":{"rendered":"\u5728mac\u4e0a\u8fd0\u884c\u6811\u8393\u6d3e\u754c\u9762"},"content":{"rendered":"<p>\u5f53\u62ff\u5230\u624b\u4e00\u4e2a\u5168\u65b0\u7684\u6811\u8393\u6d3e\uff0c\u65e0\u9f20\u6807\u952e\u76d8\u548c\u663e\u793a\u5668\u63a5\u5165\u7684\u60c5\u51b5\u4e0b\uff0c\u5982\u4f55\u914d\u7f6e\u7cfb\u7edf\uff0c\u8fde\u63a5\u7f51\u7edc\u7b49\uff1f<\/p>\n<p>\u6709\u4e2a\u601d\u8def\u5c31\u662f\u7528\u7f51\u7ebf\u628amacbook\u548c\u6811\u8393\u6d3e\u76f4\u63a5\u8fde\u63a5\u8d77\u6765\uff0c\u56e0\u4e3a\u6240\u6709\u6811\u8393\u6d3e\u7684mac\u5730\u5740\u90fd\u662f\u4ee5 b8:27:eb \u5f00\u5934\u7684\uff0c\u901a\u8fc7\u7f51\u7ebf\u8fde\u63a5\u65f6\uff0c\u53ef\u4ee5\u53d1\u73b0\u8bf7\u6c42dhcp\u4fe1\u606f <\/p>\n<p>sudo tcpdump |egrep &#8220;b8:27:eb&#8221; <\/p>\n<p>\u4ece\u4e0a\u9762grep\u7684\u65e5\u5fd7\u5c31\u53ef\u4ee5\u770b\u5230\u6811\u8393\u6d3e\u83b7\u53d6\u7684ip\u5730\u5740\uff0c\u5982169.254.52.165\u3002<\/p>\n<p>\u7136\u540e\u518d ssh -X pi@169.254.52.165 \u6253\u5f00ssh\uff0c\u5e76\u8f6c\u53d1\u5230x11\u663e\u793a\u754c\u9762\u3002\u767b\u9646\u5230pi\u540e\uff0c\u518d\u8fd0\u884c\u547d\u4ee4 lxsession  \u6216 \/etc\/X11\/Xsession<\/p>\n<p>\u5982\u679c\u60f3\u8ba9pi\u901a\u8fc7mac\u5171\u4eab\u7f51\u7edc\u4e0a\u7f51\uff0c\u5728mac\u7684\u7cfb\u7edf\u8bbe\u7f6e &#8211; \u5171\u4eab\uff0c\u6253\u5f00\u4e92\u8054\u7f51\u5171\u4eab\uff0c\u8fd9\u6837pi\u5c31\u80fd\u62ff\u5230\u4e0emac\u4e00\u4e2a\u7f51\u6bb5\u7684ip\u5730\u5740\u3002<\/p>\n<p>\u8981\u8ba9mac\u652f\u6301x11\uff0c\u9700\u8981\u4e0b\u8f7d\u5e76\u5b89\u88c5xquartz\uff1a  http:\/\/www.xquartz.org\/<\/p>\n<p>\u5378\u8f7dxquartz\u65b9\u6cd5\uff1a<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nlaunchctl unload \/Library\/LaunchAgents\/org.macosforge.xquartz.startx.plist\r\nsudo launchctl unload \/Library\/LaunchDaemons\/org.macosforge.xquartz.privileged_startx.plist\r\nsudo rm -rf \/opt\/X11* \/Library\/Launch*\/org.macosforge.xquartz.* \/Applications\/Utilities\/XQuartz.app \/etc\/*paths.d\/*XQuartz\r\nsudo pkgutil --forget org.macosforge.xquartz.pkg\r\n\r\n# Log out and log in\r\n<\/pre>\n<p>\u6765\u6e90 https:\/\/gist.github.com\/tonymtz\/714e73ccb79e21c4fc9c<\/p>\n<p>\u53e6\u4e00\u4e2a\u601d\u8def\uff0c\u5c31\u662f\u5f53ssh\u8fdb\u53bb\u4e4b\u540e\uff0c\u518d\u5b89\u88c5 vnc \u8f6f\u4ef6\uff0c\u901a\u8fc7vnc\u65b9\u5f0f\u663e\u793api\u7cfb\u7edf\u7684\u56fe\u5f62\u754c\u9762\u3002vnc\u65b9\u9762\u7684\u8d44\u6599\u7f51\u4e0a\u5f88\u591a\uff0c\u5c31\u4e0d\u591a\u8bf4\u4e86\u3002<\/p>\n<p>sudo apt-get install tightvncserver<br \/>\ntightvncserver<br \/>\nservice lightdm stop<br \/>\nvncserver :1 -geometry 1920&#215;1080 -depth 24<\/p>\n<p>\u6765\u6e90\uff1a https:\/\/www.raspberrypi.org\/documentation\/remote-access\/vnc\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u62ff\u5230\u624b\u4e00\u4e2a\u5168\u65b0\u7684\u6811\u8393\u6d3e\uff0c\u65e0\u9f20\u6807\u952e\u76d8\u548c\u663e\u793a\u5668\u63a5\u5165\u7684\u60c5\u51b5\u4e0b\uff0c\u5982\u4f55\u914d\u7f6e\u7cfb\u7edf\uff0c\u8fde\u63a5\u7f51\u7edc\u7b49\uff1f \u6709\u4e2a\u601d\u8def\u5c31\u662f\u7528\u7f51\u7ebf\u628ama [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-6007","post","type-post","status-publish","format-standard","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/6007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=6007"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/6007\/revisions"}],"predecessor-version":[{"id":6008,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/6007\/revisions\/6008"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=6007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=6007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=6007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}