﻿{"id":806,"date":"2012-04-24T09:32:29","date_gmt":"2012-04-24T01:32:29","guid":{"rendered":"http:\/\/nick.workao.org\/?p=806"},"modified":"2012-04-24T09:32:29","modified_gmt":"2012-04-24T01:32:29","slug":"ubuntu%e9%80%9a%e8%bf%87%e9%85%8d%e7%bd%aevnc%e4%bd%bfwindows%e5%8f%af%e4%bb%a5%e8%bf%9c%e7%a8%8b%e6%a1%8c%e9%9d%a2%e8%87%aa%e5%8a%a8%e5%90%af%e5%8a%a8","status":"publish","type":"post","link":"http:\/\/nick.txtcc.com\/index.php\/linux\/806","title":{"rendered":"Ubuntu\u901a\u8fc7\u914d\u7f6evnc\u4f7fwindows\u53ef\u4ee5\u8fdc\u7a0b\u684c\u9762,\u81ea\u52a8\u542f\u52a8"},"content":{"rendered":"<p>\u5728\u516c\u53f8\u91cc\u6211\u6709\u4e24\u53f0\u673a\u5668\uff0c\u4e00\u53f0win7 ,\u53e6\u4e00\u53f0\u524d\u4e24\u5929\u5b89\u88c5\u4e86ubuntu 11.10 \uff0c\u641e\u4e24\u5957\u952e\u76d8\u9f20\u6807\u592a\u70e6\uff0c\u5e72\u8106\u7ed9ubuntu\u641e\u4e2a\u8fdc\u7a0b\u684c\u9762\uff08\u5728ubuntu\u4e0b\u8fdc\u7a0bwin7\u7684\u8bdd\uff0c\u989c\u8272\u4ec0\u4e48\u7684\u6700\u9ad8\u53ea\u80fd\u523024\uff0c\u5f88\u4e11\uff09\uff0c\u8fd9\u6837\u5c31\u80fd\u628a\u4e24\u53f0\u663e\u793a\u5668\u8fde\u5230\u4e00\u53f0\u673a\u5668\u4e0a\uff0c\u540c\u65f6\u7528\u4e24\u53f0\u673a\u5668\uff0c\u4e00\u5957\u952e\u76d8\u9f20\u6807\u3002\n\u5148\u8bf4\u8bf4win \u4e0b\u8981\u505a\u7684\u8bbe\u7f6e\uff1a\nwin \u4e0b\u5176\u5b9e\u5f88\u7b80\u5355\uff0c\u5230vncviewer\u53bb\u4e0b\u8f7d\u4e2a\u5ba2\u6237\u7aef\u5c31OK\u4e86\uff0c\u5f88\u5c0f\u7684\u4e00\u4e2aexe\u6587\u4ef6\uff0c\u76f4\u63a5\u6267\u884c\uff0c\u4e0b\u8f7d\u5730\u5740\uff1a\n<a href=\"http:\/\/www.realvnc.com\/products\/free\/4.1\/winvncviewer.html\"><a href=\"http:\/\/www.realvnc.com\/products\/free\/4.1\/winvncviewer.html\">http:\/\/www.realvnc.com\/products\/free\/4.1\/winvncviewer.html<\/a><\/a><\/p>\n<p>ubuntu vncserver \uff1a\n\u5176\u5b9eubuntu 11.10 \u91cc\u9762\u5df2\u7ecf\u5b89\u88c5\u4e86 \u684c\u9762\u5171\u4eab \uff0c\u7528\u7684\u662f vino-server \uff0c\u8fd9\u4e2a\u4e1c\u897f\u597d\u662f\u597d\uff0c\u5c31\u662f\u6709\u4e2a\u5f88\u4e0d\u723d\u7684\u7f3a\u70b9\uff1a\u5fc5\u987b\u8981\u5728ubuntu\u4e3b\u673a\u4e0a\u767b\u5f55\u8fc7\u540e\u624d\u80fd\u5728win \u4e0b\u7528vncviewer\u767b\u5f55\u3002\u5e76\u4e14\u597d\u50cf\u767b\u5f55\u8fc7\u540e\u9501\u5b9a\u6216\u8005\u6ce8\u9500\u90fd\u4e0d\u80fd\u6b63\u5e38\u4f7f\u7528\u3002\n\u8bd5\u8fc7 vnc4server\u3001tightvncserver\u3001\u90fd\u6709\u4e00\u4e9b\u95ee\u9898\u3002\u6700\u540e\u4f7f\u7528\u4e86 x11vnc\uff0c\u4e00\u6bb5\u914d\u7f6e\u4e0b\u6765\uff0c\u91cd\u542f\u673a\u5668\uff0cOK\u3002\u5f88\u723d\uff0c\u4e0b\u9762\u662f\u6b65\u9aa4\uff1a\n1\u3001\u5b89\u88c5x11vnc<\/p>\n<div>\n<div>\n<div><strong>\n<\/strong><\/div>\n<\/div>\n<ol start=\"1\">\n    <li>sudo\u00a0apt-get\u00a0install\u00a0vino\u00a0vinagre\u00a0x11vnc<\/li>\n<\/ol>\n<\/div>\n<p>2\u3001\u8bbe\u7f6e\u8fdc\u7a0b\u684c\u9762\u767b\u5f55\u65f6\u4f7f\u7528\u7684\u5bc6\u7801\uff0c\u8bbe\u7f6e\u5b8c\u540e\u76f4\u63a5\u56de\u8f66\u786e\u8ba4\u4fdd\u5b58\u5bc6\u7801\u5230 \u00a0 \u00a0\u00a0 ~\/.vnc\/passwd\u00a0 \u6587\u4ef6\u91cc\uff0c\u201c~\/\u00a0 \u201d\u662f\u4f60\u5f53\u524d\u7528\u6237\u7684\u6839\u76ee\u5f55\u5982\uff1a \/home\/jzy\/<\/p>\n<div>\n<div><strong>\n<\/strong><\/div>\n<ol start=\"1\">\n    <li>sudo\u00a0x11vnc\u00a0-storepasswd<\/li>\n<\/ol>\n<\/div>\n<p>3\u3001\u8bbe\u7f6ex11vnc\u901a\u7528\u7684\u5bc6\u7801\u5b58\u50a8\u4f4d\u7f6e<\/p>\n<div>\n<div><strong>\n<\/strong><\/div>\n<ol start=\"1\">\n    <li>sudo\u00a0x11vnc\u00a0-storepasswd\u00a0in\u00a0\/etc\/x11vnc.pass<\/li>\n<\/ol>\n<\/div>\n<p>4\u3001\u5c06\u7528\u6237\u76ee\u5f55\u4e0b\u7684passwd\u6587\u4ef6\u5185\u5bb9copy\u5230 \/etc\/x11vnc.pass\u4e0b<\/p>\n<div>\n<div><strong>\n<\/strong><\/div>\n<ol start=\"1\">\n    <li>sudo\u00a0cp\u00a0\/home\/jzy\/.vnc\/passwd\u00a0\/etc\/x11vnc.pass<\/li>\n<\/ol>\n<\/div>\n<p>5\u3001\u914d\u7f6ex11vnc\u4e3a\u8ddf\u968f\u7cfb\u7edf\u81ea\u52a8\u542f\u52a8\n\u9700\u8981\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u00a0 \/etc\/init\/x11vnc.conf<\/p>\n<div>\n<div><strong>\n<\/strong><\/div>\n<ol start=\"1\">\n    <li>sudo\u00a0vi\u00a0\/etc\/init\/x11vnc.conf<\/li>\n<\/ol>\n<\/div>\n<p>\u6309 i \u952e\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f\uff0c\u7c98\u8d34\u4ee5\u4e0b\u5185\u5bb9\uff0c\u5e76\u4fdd\u5b58\u9000\u51fa\uff1a<\/p>\n<div>\n<div><strong>\n<\/strong><\/div>\n<ol start=\"1\">\n    <li>start\u00a0on\u00a0login-session-start<\/li>\n    <li>\n    <li>script<\/li>\n    <li>\u00a0\u00a0\u00a0\u00a0x11vnc\u00a0-display\u00a0:0\u00a0-auth\u00a0\/var\/run\/lightdm\/root\/:0\u00a0-forever\u00a0-bg\u00a0-o\u00a0\/var\/log\/x11vnc.log\u00a0-rfbauth\u00a0\/etc\/x11vnc.pass\u00a0-rfbport\u00a05900<\/li>\n    <li>end\u00a0script<\/li>\n<\/ol>\n<\/div>\n<p>\u5176\u4e2d\uff0c5900\u662f\u7aef\u53e3\u53f7\uff0c\u53ef\u4ee5\u81ea\u5df1\u5b9a\u4e49\u3002<\/p>\n<p>6\u3001\u91cd\u542fubuntu<\/p>\n<p>\u7b49\u91cd\u542f\u597d\u4e86\u4ee5\u540e\uff0c\u5230win \u4e0b \u6253\u5f00 vncviewer \uff0c\u8f93\u5165ubuntu \u7684\u5730\u5740\u548c5900\u7aef\u53e3\u53f7\uff0c\u5982 \uff1a 10.1.170.8:5900\u00a0 \u7136\u540e\u8fde\u63a5\uff0c\u5982\u679c\u6210\u529f\u7684\u8bdd\uff0c\u4f1a\u51fa\u73b0\u8f93\u5165\u5bc6\u7801\u7684\u5bf9\u8bdd\u6846\uff0c\n\u53ea\u9700\u8981\u8f93\u5165\u4e0a\u9762\u8bbe\u7f6e\u597d\u7684\u5bc6\u7801\u5c31\u53ef\u4ee5\u770b\u5230\u64cd\u4f5c\u8fdc\u7a0b\u684c\u9762\u5566\uff01<\/p>","protected":false},"excerpt":{"rendered":"<p>\u5728\u516c\u53f8\u91cc\u6211\u6709\u4e24\u53f0\u673a\u5668\uff0c\u4e00\u53f0win7 ,\u53e6\u4e00\u53f0\u524d\u4e24\u5929\u5b89\u88c5\u4e86ubuntu 11.10 \uff0c\u641e\u4e24\u5957\u952e\u76d8\u9f20\u6807\u592a\u70e6\uff0c\u5e72\u8106\u7ed9ubuntu\u641e\u4e2a\u8fdc\u7a0b\u684c\u9762\uff08\u5728ubuntu\u4e0b\u8fdc\u7a0bwin7\u7684\u8bdd\uff0c\u989c\u8272\u4ec0\u4e48\u7684\u6700\u9ad8\u53ea\u80fd\u523024\uff0c\u5f88\u4e11&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-806","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=806"}],"version-history":[{"count":2,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/806\/revisions"}],"predecessor-version":[{"id":808,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/806\/revisions\/808"}],"wp:attachment":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=806"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}