{"id":9983,"date":"2025-04-18T17:48:15","date_gmt":"2025-04-18T09:48:15","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/9983.html"},"modified":"2025-04-18T17:48:15","modified_gmt":"2025-04-18T09:48:15","slug":"%e5%9c%a8debian-12%e4%b8%8a%e5%ae%89%e8%a3%85vnc%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/9983.html","title":{"rendered":"\u5728Debian 12\u4e0a\u5b89\u88c5VNC\u670d\u52a1\u5668"},"content":{"rendered":"<h2>\u4e0d\u77e5\u9053\u4ec0\u4e48\u6807\u9898<\/h2>\n<p>\u53ef\u4ee5\u770b\u5230\u8fd9\u4e2a\u6587\u7ae0\u662f\u901a\u8fc7\u8c46\u5305\u4ece\u56fd\u5916\u7f51\u7ad9copy\u7684&#xff0c;\u5148\u8fd9\u6837\u5199\u7740\u597d\u4e86&#xff0c;\u5177\u4f53\u7684\u6211\u6709\u65f6\u95f4\u518d\u8865\u5145&#xff0c;\u57fa\u672c\u5185\u5bb9\u90fd\u5728\u8fd9\u91cc\u4e86\u3002<\/p>\n<h2>\u5728Debian 12\u4e0a\u5b89\u88c5VNC\u670d\u52a1\u5668<\/h2>\n<h3>\u7b80\u4ecb<\/h3>\n<p>VNC&#xff08;Virtual Network Computing&#xff0c;\u865a\u62df\u7f51\u7edc\u8ba1\u7b97&#xff09;\u662f\u4e00\u79cd\u56fe\u5f62\u5316\u684c\u9762\u5171\u4eab\u7cfb\u7edf&#xff0c;\u53ef\u8ba9\u4f60\u8fdc\u7a0b\u63a7\u5236\u53e6\u4e00\u53f0\u8ba1\u7b97\u673a\u3002\u672c\u6559\u7a0b\u5c06\u6307\u5bfc\u4f60\u5728Debian 12\u4e0a\u5b89\u88c5VNC\u670d\u52a1\u5668\u7684\u8fc7\u7a0b&#xff0c;\u4f7f\u4f60\u80fd\u591f\u8fdc\u7a0b\u8bbf\u95eeDebian\u684c\u9762\u3002<\/p>\n<h3>\u524d\u63d0\u6761\u4ef6<\/h3>\n<p>\u5728\u5f00\u59cb\u4e4b\u524d&#xff0c;\u8bf7\u786e\u4fdd\u4f60\u5177\u5907&#xff1a;<\/p>\n<ul>\n<li>\u4e00\u53f0Debian 12\u670d\u52a1\u5668\u6216\u684c\u9762\u7cfb\u7edf<\/li>\n<li>\u5bf9\u670d\u52a1\u5668\u7684SSH\u8bbf\u95ee\u6743\u9650&#xff08;\u53ef\u9009&#xff09;<\/li>\n<li>root\u6216sudo\u6743\u9650<\/li>\n<\/ul>\n<h3>\u6b65\u9aa41&#xff1a;\u5b89\u88c5VNC\u670d\u52a1\u5668<\/h3>\n<p>\u66f4\u65b0\u8f6f\u4ef6\u5305\u7d22\u5f15\u5e76\u5b89\u88c5VNC\u670d\u52a1\u5668&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> <span class=\"token parameter variable\">-y<\/span> tigervnc-standalone-server<\/p>\n<h3>\u6b65\u9aa42&#xff1a;\u914d\u7f6eVNC\u670d\u52a1\u5668<\/h3>\n<p>\u751f\u6210VNC\u5bc6\u7801&#xff1a;<\/p>\n<p>vncpasswd<\/p>\n<p>\u542f\u52a8VNC\u670d\u52a1\u5668&#xff1a;<\/p>\n<p>vncserver<\/p>\n<p>\u7cfb\u7edf\u63d0\u793a\u65f6&#xff0c;\u8f93\u5165\u4f60\u4e4b\u524d\u751f\u6210\u7684\u5bc6\u7801\u3002<\/p>\n<h3>\u6b65\u9aa43&#xff1a;\u914d\u7f6eVNC\u670d\u52a1<\/h3>\n<p>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684systemd\u670d\u52a1\u5355\u5143\u6587\u4ef6&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/systemd\/system\/vncserver&#064;.service<\/p>\n<p>\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p>[Unit]<br \/>\nDescription&#061;VNC Server for %i<br \/>\nAfter&#061;syslog.target network.target<\/p>\n<p>[Service]<br \/>\nType&#061;forking<br \/>\nExecStartPre&#061;\/bin\/sh -c &#039;\/usr\/bin\/vncserver -kill %i &gt; \/dev\/null 2&gt;&amp;1 || :&#039;<br \/>\nExecStart&#061;\/usr\/bin\/vncserver %i -geometry 1280&#215;800 -localhost no -alwaysshared -fg<br \/>\nExecStop&#061;\/usr\/bin\/vncserver -kill %i<\/p>\n<p>[Install]<br \/>\nWantedBy&#061;multi-user.target<\/p>\n<p>\u4fdd\u5b58\u5e76\u5173\u95ed\u6587\u4ef6\u3002<\/p>\n<h3>\u6b65\u9aa44&#xff1a;\u542f\u7528\u5e76\u542f\u52a8VNC\u670d\u52a1<\/h3>\n<p>\u4e3a\u76ee\u6807\u7528\u6237\u542f\u7528VNC\u670d\u52a1&#xff08;\u5c06&lt;username&gt;\u66ff\u6362\u4e3a\u4f60\u7684\u7528\u6237\u540d&#xff09;&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> <span class=\"token parameter variable\">&#8211;now<\/span> vncserver&#064;:1.service<\/p>\n<h3>\u6b65\u9aa45&#xff1a;\u8bbf\u95eeVNC\u670d\u52a1\u5668<\/h3>\n<p>\u5728\u672c\u5730\u8ba1\u7b97\u673a\u4e0a\u4e0b\u8f7dVNC\u5ba2\u6237\u7aef&#xff0c;\u5982RealVNC\u6216TigerVNC Viewer\u3002<\/p>\n<p>\u4f7f\u7528VNC\u5ba2\u6237\u7aef\u8fde\u63a5\u5230Debian\u670d\u52a1\u5668\u7684IP\u5730\u5740\u6216\u4e3b\u673a\u540d&#xff0c;\u540e\u9762\u52a0\u4e0a\u7aef\u53e3\u53f7&#xff08;\u9ed8\u8ba4\u662f5901&#xff09;\u3002<\/p>\n<p>\u7cfb\u7edf\u63d0\u793a\u65f6&#xff0c;\u8f93\u5165\u4f60\u5728\u6b65\u9aa42\u4e2d\u8bbe\u7f6e\u7684\u5bc6\u7801\u3002<\/p>\n<h3>\u7ed3\u8bba<\/h3>\n<p>\u606d\u559c&#xff01;\u4f60\u5df2\u6210\u529f\u5728Debian 12\u4e0a\u5b89\u88c5\u5e76\u914d\u7f6e\u4e86VNC\u670d\u52a1\u5668\u3002\u73b0\u5728&#xff0c;\u4f60\u53ef\u4ee5\u4f7f\u7528VNC\u5ba2\u6237\u7aef\u8fdc\u7a0b\u8bbf\u95eeDebian\u684c\u9762\u3002<\/p>\n<h2>\u53c2\u8003<\/h2>\n<p>\u7b49\u4f1a\u8865\u5145&#xff0c;\u5199\u5230\u4e00\u534a\u5361\u6b7b\u4e86&#xff0c;\u771f\u662f\u86cb\u75bc<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e10\u6b21\uff0c\u6536\u85cf3\u6b21\u3002VNC\uff08Virtual Network Computing\uff0c\u865a\u62df\u7f51\u7edc\u8ba1\u7b97\uff09\u662f\u4e00\u79cd\u56fe\u5f62\u5316\u684c\u9762\u5171\u4eab\u7cfb\u7edf\uff0c\u53ef\u8ba9\u4f60\u8fdc\u7a0b\u63a7\u5236\u53e6\u4e00\u53f0\u8ba1\u7b97\u673a\u3002\u672c\u6559\u7a0b\u5c06\u6307\u5bfc\u4f60\u5728Debian 12\u4e0a\u5b89\u88c5VNC\u670d\u52a1\u5668\u7684\u8fc7\u7a0b\uff0c\u4f7f\u4f60\u80fd\u591f\u8fdc\u7a0b\u8bbf\u95eeDebian\u684c\u9762\u3002_debian vncserver<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[402,92,43],"topic":[],"class_list":["post-9983","post","type-post","status-publish","format-standard","hentry","category-server","tag-debian","tag-github","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728Debian 12\u4e0a\u5b89\u88c5VNC\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/9983.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728Debian 12\u4e0a\u5b89\u88c5VNC\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e10\u6b21\uff0c\u6536\u85cf3\u6b21\u3002VNC\uff08Virtual Network Computing\uff0c\u865a\u62df\u7f51\u7edc\u8ba1\u7b97\uff09\u662f\u4e00\u79cd\u56fe\u5f62\u5316\u684c\u9762\u5171\u4eab\u7cfb\u7edf\uff0c\u53ef\u8ba9\u4f60\u8fdc\u7a0b\u63a7\u5236\u53e6\u4e00\u53f0\u8ba1\u7b97\u673a\u3002\u672c\u6559\u7a0b\u5c06\u6307\u5bfc\u4f60\u5728Debian 12\u4e0a\u5b89\u88c5VNC\u670d\u52a1\u5668\u7684\u8fc7\u7a0b\uff0c\u4f7f\u4f60\u80fd\u591f\u8fdc\u7a0b\u8bbf\u95eeDebian\u684c\u9762\u3002_debian vncserver\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/9983.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T09:48:15+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/9983.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/9983.html\",\"name\":\"\u5728Debian 12\u4e0a\u5b89\u88c5VNC\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T09:48:15+00:00\",\"dateModified\":\"2025-04-18T09:48:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/9983.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/9983.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/9983.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728Debian 12\u4e0a\u5b89\u88c5VNC\u670d\u52a1\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5728Debian 12\u4e0a\u5b89\u88c5VNC\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/9983.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5728Debian 12\u4e0a\u5b89\u88c5VNC\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e10\u6b21\uff0c\u6536\u85cf3\u6b21\u3002VNC\uff08Virtual Network Computing\uff0c\u865a\u62df\u7f51\u7edc\u8ba1\u7b97\uff09\u662f\u4e00\u79cd\u56fe\u5f62\u5316\u684c\u9762\u5171\u4eab\u7cfb\u7edf\uff0c\u53ef\u8ba9\u4f60\u8fdc\u7a0b\u63a7\u5236\u53e6\u4e00\u53f0\u8ba1\u7b97\u673a\u3002\u672c\u6559\u7a0b\u5c06\u6307\u5bfc\u4f60\u5728Debian 12\u4e0a\u5b89\u88c5VNC\u670d\u52a1\u5668\u7684\u8fc7\u7a0b\uff0c\u4f7f\u4f60\u80fd\u591f\u8fdc\u7a0b\u8bbf\u95eeDebian\u684c\u9762\u3002_debian vncserver","og_url":"https:\/\/www.wsisp.com\/helps\/9983.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T09:48:15+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/9983.html","url":"https:\/\/www.wsisp.com\/helps\/9983.html","name":"\u5728Debian 12\u4e0a\u5b89\u88c5VNC\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T09:48:15+00:00","dateModified":"2025-04-18T09:48:15+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/9983.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/9983.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/9983.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5728Debian 12\u4e0a\u5b89\u88c5VNC\u670d\u52a1\u5668"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/9983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=9983"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/9983\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=9983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=9983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=9983"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=9983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}