{"id":5143,"date":"2018-08-09T10:19:30","date_gmt":"2018-08-09T02:19:30","guid":{"rendered":"http:\/\/4563.org\/?p=5143"},"modified":"2018-08-10T01:38:05","modified_gmt":"2018-08-09T17:38:05","slug":"%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e6%a1%8c%e9%9d%a2%e7%8e%af%e5%a2%83%e3%80%81rdp%e3%80%81windows%e6%94%af%e6%8c%81%ef%bc%88for-linux%ef%bc%89","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=5143","title":{"rendered":"\u4e00\u952e\u5b89\u88c5\u684c\u9762\u73af\u5883\u3001RDP\u3001Windows\u652f\u6301\uff08For Linux\uff09"},"content":{"rendered":"<p><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1;\"><span style=\"font-size: x-large;\">\u7b80\u4ecb<\/span><\/span><\/p>\n<p><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1;\"><span style=\"font-size: large;\">\u5bf9\u4e8e\u4e00\u4e2a\u6700\u5c0f\u5b89\u88c5\u7684Linux\u7cfb\u7edf\uff0c\u5728\u4e00\u4e9b\u65f6\u5019\u4e0b\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5\u7b80\u5355\u5feb\u901f\u7684\u684c\u9762\u73af\u5883\u5e76\u4e14\u901a\u8fc7RDP\u8bbf\u95ee\u3002<\/span><\/span><\/p>\n<p>\u4f8b\u5982\uff1a\u8fd0\u884c\u6d4f\u89c8\u5668\uff0c\u6216\u8005\u4e00\u4e9bLinux\u5e94\u7528\u7a0b\u5e8f\uff0c\u751a\u81f3\u4e00\u4e9bWindows\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>\u73b0\u5728\uff0c\u4f60\u6709\u4e86\u4e00\u4e2a\u66f4\u597d\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u53ea\u9700\u4e00\u952e\uff0c\u5c31\u53ef\u4ee5\u5feb\u901f\u7684\u5e2e\u4f60\u5b89\u88c5\u597d\u684c\u9762\u73af\u5883\u548c\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u4ee5\u53caWindows\u652f\u6301\u3002\u5982\u679c\u4f60\u6b63\u5728\u5bfb\u627e\u8fd9\u6837\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u5c31\u6765\u8bd5\u8bd5\u5427\u3002<\/p>\n<p>\u6211\u5c06\u4f7f\u7528CentOS7\u6765\u6f14\u793a\u5982\u4f55\u64cd\u4f5c\u3002<\/p>\n<p><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1;\"><span style=\"font-size: x-large;\">\u6f14\u793a\u56fe\u7247<\/span><\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" id=\"aimg_os4c6\" class=\"zoom\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2018\/08\/Demo_Picture.png\" alt=\"\" width=\"600\" height=\"356\" border=\"0\" \/><\/p>\n<p><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1;\"><span style=\"font-size: x-large;\">\u529f\u80fd\u4ecb\u7ecd<\/span><\/span><\/p>\n<p><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1;\"><span style=\"font-size: large;\">1.\u53ea\u9700\u4e00\u952e\uff0c\u5373\u53ef\u4e3aCentOS\u5b89\u88c5\u684c\u9762\u73af\u5883\u548cRDP\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u3002<\/span><\/span><\/p>\n<p>\uff08\u60a8\u9700\u8981\u5168\u65b0\u5b89\u88c5\u7684CentOS7\uff0c\u6700\u4f4e\u786c\u4ef6\u8981\u6c42\u662f\uff1aCPU\u6838\u5fc3\u22651\uff0c\u5185\u5b58\u22651GB\uff0c\u78c1\u76d8\u7a7a\u95f4\u226515GB\u3002\uff09<\/p>\n<p>2. Windows\u5e94\u7528\u7a0b\u5e8f\u652f\u6301\u3002 \uff08\u901a\u8fc7Wine\uff09<\/p>\n<p>\uff08\u5b89\u88c5Wine X64\u548cX86\uff0c\u73b0\u5728\u53ef\u4ee5\u5728Linux\u4e0a\u8fd0\u884cWindows\u5e94\u7528\u7a0b\u5e8f\u3002\u4f8b\u5982\uff1aTelegram\u3001WeChat\uff09<\/p>\n<p>3.\u521b\u5efa3GB\u4ea4\u6362\u5185\u5b58\u3002 \u907f\u514d\u5185\u5b58\u4e0d\u8db3\u5bfc\u81f4\u7684\u9519\u8bef\u3002<\/p>\n<p>\uff08\u4ea4\u6362\u4f4d\u7f6e\uff1a\/var\/swapd\uff09<\/p>\n<p>4.\u5b89\u88c5\u4e2d\u6587\u8f93\u5165\u73af\u5883\uff0c\u4e2d\u6587\u652f\u6301\u3002<\/p>\n<p>\uff08\u5982\u679c\u6ca1\u6709\u4e2d\u6587\u73af\u5883\uff0c\u60a8\u5c06\u65e0\u6cd5\u67e5\u770b\u4e2d\u6587\u5b57\u4f53\u3001\u8f93\u5165\u4e2d\u6587\u5185\u5bb9\u3002\u800c\u4e14\u4f1a\u5bfc\u81f4\u7f16\u7801\u6df7\u4e71\u3002\uff09<\/p>\n<p>5.\u5b89\u88c5\u4eba\u4eec\u63a8\u8350\u7684\u8f6f\u4ef6\uff0c\u4f8b\u5982\u6d4f\u89c8\u5668\u548c\u8f93\u5165\u6cd5\u3002<\/p>\n<p>\uff09<\/p>\n<p><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1;\"><span style=\"font-size: x-large;\">\u5982\u4f55\u505a\u548c\u4f7f\u7528<\/span><\/span><\/p>\n<p>1. \u4fdd\u8bc1\u4f60\u6709\u4e00\u4e2a\u65b0\u5b89\u88c5\u7684\u7eaf\u51c0CentOS 7\u6700\u5c0f\u5316\u7cfb\u7edf\u3002\uff08\u6ca1\u6709\u5b89\u88c5\u4efb\u4f55\u65e0\u5173\u7ec4\u4ef6\uff0c\u5426\u5219\u53ef\u80fd\u4f1a\u5bfc\u81f4\u9519\u8bef\uff09<\/p>\n<p>2. \u767b\u9646SSH\uff0c\u901a\u8fc7root\u7528\u6237\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<p>sudo curl -sSL https:\/\/raw.githubusercontent.com\/MeowLove\/CentOS-One-click-Installation-of-Desktop-Environment-and-Remote-Desktop-Connection-RDP\/master\/download\/main\/install.sh | sudo bash<\/p>\n<p><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1;\"><span style=\"font-size: x-large;\">\u4f60\u9700\u8981\u660e\u767d<\/span><\/span><\/p>\n<p><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1;\"><span style=\"font-size: large;\">1. \u5b8c\u6210\u540e\u3002\u4f60\u5c31\u53ef\u4ee5\u8fde\u63a5IP:3389\uff08\u901a\u8fc7\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\uff09\u3002RDP\u767b\u9646\u8d26\u53f7\u5bc6\u7801\u5c31\u662f\u60a8\u7684\u7cfb\u7edf\u8d26\u6237\u548c\u5bc6\u7801\u3002<br \/>\n2. \u521b\u5efa\u65b0\u7528\u6237\u65f6\uff0c\u8bf7\u6388\u6743\u65b0\u7528\u6237RDP\u8fdc\u7a0b\u8fde\u63a5\u3002 \u4f60\u9700\u8981\u8fd9\u6837\u505a\u3002\uff08\u6211\u5c06\u6f14\u793a\u521b\u5efa\u65b0\u7528\u6237CXT\uff09<br \/>\n\u2460. \u4f7f\u7528root\u7528\u6237\u5207\u6362\u8fdb\u5165\u5230CXT\u7684\u76ee\u5f55\u3002<br \/>\ncd \/home\/CXT<br \/>\n\u2461. \u8f93\u5165\u4e0b\u9762\u7684\u547d\u4ee4<br \/>\ntouch .\/.Xclients<br \/>\necho \u201cmate-session\u201d &gt; .\/.Xclients<br \/>\nchmod a+x .\/.Xclients<br \/>\n3. Chrome\u6d4f\u89c8\u5668\u4e0d\u80fd\u901a\u8fc7root\u7528\u6237\u8fd0\u884c\u3002\u5982\u679c\u60a8\u9700\u8981\u8fd0\u884c\uff0c\u8bf7\u65b0\u5efa\u8d26\u6237\u3002(\u6216\u8005\u9644\u52a0\u8fd0\u884c\u547d\u4ee4 \u2013no-sandbox)<br \/>\n4. \u4e00\u4e9bWindows\u5e94\u7528\u7a0b\u5e8f\u4e0d\u5de5\u4f5c\uff0c\u4e5f\u8bb8\u9700\u8981\u60a8\u5173\u95edSELinux\u3002\uff08\u4e0d\u63a8\u8350\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\u4e0d\u9700\u8981\uff09<br \/>\n5. \u4e00\u4e9bWindows\u8f6f\u4ef6\u770b\u8d77\u6765\u6a21\u7cca\uff0c\u4f60\u9700\u8981\u8c03\u6574\u8f6f\u4ef6\u540e\u9762\u7684\u80cc\u666f\u989c\u8272\u4e3a\u6697\u8272\u8c03\u3002\uff08\u4f8b\u5982\u66f4\u6362\u58c1\u7eb8\u4e3a\u6df1\u8272\u58c1\u7eb8\uff09<br \/>\n6. \u73b0\u5728\uff0c\u4f60\u5df2\u7ecf\u6709\u4e86\u6d4f\u89c8\u5668\uff0c\u6211\u76f8\u4fe1\u4f60\u53ef\u4ee5\u5b8c\u6210\u5f88\u591a\u7684\u4e8b\u60c5\u4e86\u3002<br \/>\n7. \u5982\u679c\u4f60\u662fDebian\/Ubuntu\u7528\u6237\uff0c\u4f60\u9700\u8981\u4fee\u6539\u90e8\u5206\u4e00\u952e\u811a\u672c\u8fdb\u884c\u624b\u52a8\u5b89\u88c5\u3002<br \/>\n8. \u5f53\u524d\u7684\u9ed8\u8ba4\u7cfb\u7edf\u8bed\u8a00\u662f\u4e2d\u6587\u3002\u5982\u679c\u60a8\u662f\u82f1\u8bed\u7528\u6237\uff0c\u8bf7\u6267\u884c\u2019 sudo localectl set-locale LANG = en_US.UTF-8 \u2018<\/span><\/span><\/p>\n<p><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1;\"><span style=\"font-size: x-large;\">\u4eab\u53d7\u7f8e\u597d\u7684\u684c\u9762Linux\u751f\u6d3b<\/span><\/span><\/p>\n<p><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1;\"><span style=\"font-size: large;\">\u73b0\u5728\u4f60\u53ef\u4ee5\u901a\u8fc7\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\uff08RDP\uff09\u8bbf\u95ee\u4e86\u3002[IP:3389]<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u4ecb \u5bf9\u4e8e\u4e00\u4e2a\u6700\u5c0f\u5b89\u88c5\u7684Linux&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/5143"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5143"}],"version-history":[{"count":1,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/5143\/revisions"}],"predecessor-version":[{"id":5155,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/5143\/revisions\/5155"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5143"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}