{"id":3278,"date":"2025-09-27T20:04:33","date_gmt":"2025-09-27T12:04:33","guid":{"rendered":"https:\/\/jir.idv.tw\/wordpress\/?p=3278"},"modified":"2025-09-27T20:04:33","modified_gmt":"2025-09-27T12:04:33","slug":"chrome-remote-desktopxxxxx-xdpyinfo-unable-to-open-display-20-%e5%bc%b7%e5%88%b6%e6%94%b9%e4%bd%bf%e7%94%a8xvfb%e9%a0%90%e8%a8%ad%e5%95%9f%e5%8b%95","status":"publish","type":"post","link":"https:\/\/jir.idv.tw\/wordpress\/?p=3278","title":{"rendered":"chrome-remote-desktop[xxxxx]: xdpyinfo:  unable to open display \u201c:20\u201d.\u5f37\u5236\u6539\u4f7f\u7528xvfb\u9810\u8a2d\u555f\u52d5"},"content":{"rendered":"<p>\u4e4b\u524d\u6709\u9019\u7bc7\u6587\u7ae0\u7684\u4fee\u6539\u65b9\u5f0f\uff1a<br \/>\n<a href=\"https:\/\/jir.idv.tw\/wordpress\/?p=3246\" target=\"_blank\">UBUNTU\u5347\u7d1a\u523024.04.2\u5f8c\uff0c\u672c\u4f86google remote desktop\u53ef\u4ee5\u7528\uff0c\u8b8a\u6210\u4e0d\u80fd\u7528\u7684\u53ef\u80fd\u89e3\u6cd5<br \/>\nhttps:\/\/jir.idv.tw\/wordpress\/?p=3246<\/a><\/p>\n<p>\u4e00\u6a23\u8981\u518d\u611f\u5606AI\u3001\u8b9a\u5606AI\u3002<br \/>\n\u524d\u5e7e\u5929apy upgrade\u628achrome-remote-desktop\u7248\u672c\u5347\u7d1a\u5f8c\uff0c\u53c8\u628a\u5b83\u6062\u5fa9\u6210\u5b98\u65b9\u539f\u59cb\u6a94\u6848\u3002<br \/>\n\u518d\u6b21\u51fa\u73fe\u932f\u8aa4\u8a0a\u606f\u7121\u6cd5\u555f\u7528\uff1a<br \/>\n<code>    Active: failed (Result: exit-code) since Sat 2025-09-27 19:51:16 CST; 3min 26s ago<br \/>\n   Duration: 11.481s<br \/>\n    Process: ExecStart=\/opt\/google\/chrome-remote-desktop\/chrome-remote-desktop --start --new-session (code=exited, status=1\/FAILURE)<br \/>\n   Main PID: (code=exited, status=1\/FAILURE)<br \/>\n        CPU: 5ms<br \/>\n 9\u6708 27 19:51:05  systemd[1]: Started chrome-remote-desktop@______.service - Chrome Remote Desktop instance for ______.<br \/>\n 9\u6708 27 19:51:09  chrome-remote-desktop[]: xdpyinfo:  unable to open display \":20\".<br \/>\n 9\u6708 27 19:51:10  chrome-remote-desktop[]: xdpyinfo:  unable to open display \":20\".<br \/>\n 9\u6708 27 19:51:15  chrome-remote-desktop[]: xdpyinfo:  unable to open display \":20\".<\/code><\/p>\n<p>\u4e0a\u6b21\u7684\u6539\u6cd5\u6709\u9ede\u8907\u96dc\uff0c\u7136\u5f8c\u6211\u5fd8\u8a18\u81ea\u5df1\u6709\u7559\u6587\u7ae0\u8a18\u9304\u3002<br \/>\n\u6240\u4ee5\u518d\u554f\u4e86\u4e00\u6b21AI\uff0c\u5927\u6982\u9b54\u6cd5\u5492\u8a9e\u5f88\u660e\u78ba\uff0c\u9019\u6b21AI\u56de\u7b54\u7684\u65b9\u6848\u6574\u500b\u8d85\u7c21\u55ae\u3002<br \/>\n<code>\u4fee\u6539\u9019\u500b\u6a94\u6848\uff1a<br \/>\nnano \/opt\/google\/chrome-remote-desktop\/chrome-remote-desktop<br \/>\n\u627e\u5230\u9019\u884c\uff1a<br \/>\nUSE_XVFB_ENV_VAR = \"CHROME_REMOTE_DESKTOP_USE_XVFB\"<br \/>\n\u7136\u5f8c\u4e0b\u9762\u65b0\u589e\u9019\u884c\uff1a<br \/>\n# Start custom modification: Force Xvfb driver to be used<br \/>\nos.environ[USE_XVFB_ENV_VAR] = '1'<br \/>\n# End custom modification<\/code><\/p>\n<p>\u5167\u5bb9\u6539\u6210\u50cf\u9019\u6a23\uff1a<br \/>\n<code># This script has a sensible default for the initial and maximum desktop size,<br \/>\n# which can be overridden either on the command-line, or via a comma-separated<br \/>\n# list of sizes in this environment variable.<br \/>\nDEFAULT_SIZES_ENV_VAR = \"CHROME_REMOTE_DESKTOP_DEFAULT_DESKTOP_SIZES\"<\/p>\n<p># By default, this script launches Xorg as the virtual X display, using the<br \/>\n# dummy display driver and void input device, unless Xorg+Dummy is deemed<br \/>\n# unsupported.<br \/>\nWhen this environment variable is set, the script will instead<br \/>\n# launch Xvfb.<br \/>\nUSE_XVFB_ENV_VAR = \"CHROME_REMOTE_DESKTOP_USE_XVFB\"<br \/>\n# Start custom modification: Force Xvfb driver to be used<br \/>\nos.environ[USE_XVFB_ENV_VAR] = '1'<br \/>\n# End custom modification<\/p>\n<p># If this environment variable is set, the script will launch a Wayland<br \/>\n# session instead of X11.<br \/>\nUSE_WAYLAND_ENV_VAR = \"CHROME_REMOTE_DESKTOP_USE_WAYLAND\"<br \/>\n# ... \u7a0b\u5f0f\u78bc\u5f8c\u9762\u90e8\u5206 ...<\/code><\/p>\n<p>\u4fee\u6539\u5b58\u6a94\u4e4b\u5f8c\uff0c\u91cd\u65b0\u57f7\u884c\u4e00\u6b21<br \/>\nsudo systemctl restart chrome-remote-desktop@username.service<br \/>\n\u61c9\u8a72\u99ac\u4e0a\u5c31\u6703\u555f\u52d5\u6b63\u5e38\u4e86\uff0cXDDDD<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e4b\u524d\u6709\u9019\u7bc7\u6587\u7ae0\u7684\u4fee\u6539\u65b9\u5f0f\uff1a UBUNTU\u5347\u7d1a\u523024.04.2\u5f8c\uff0c\u672c\u4f86google remote desktop\u53ef\u4ee5\u7528\uff0c\u8b8a\u6210\u4e0d\u80fd\u7528\u7684\u53ef\u80fd\u89e3\u6cd5 https:\/\/jir.idv.tw\/wordpress\/?p=3246 \u4e00\u6a23\u8981\u518d\u611f\u5606AI\u3001\u8b9a\u5606AI\u3002 \u524d\u5e7e\u5929apy upgrade\u628achrome-remote-desktop\u7248\u672c\u5347\u7d1a\u5f8c\uff0c\u53c8\u628a\u5b83\u6062\u5fa9\u6210\u5b98\u65b9\u539f\u59cb\u6a94\u6848\u3002 \u518d\u6b21\u51fa\u73fe\u932f\u8aa4\u8a0a\u606f\u7121\u6cd5\u555f\u7528\uff1a Active: failed (Result: exit-code) since Sat 2025-09-27 19:51:16 CST; 3min 26s ago Duration: 11.481s Process: ExecStart=\/opt\/google\/chrome-remote-desktop\/chrome-remote-desktop &#8211;start &#8211;new-session (code=exited, status=1\/FAILURE) Main PID: (code=exited, status=1\/FAILURE) CPU: 5ms 9\u6708 27 19:51:05 systemd[1]: &#8230; <a href=\"https:\/\/jir.idv.tw\/wordpress\/?p=3278\" class=\"readmore\">Read more (\u5b8c\u6574\u6587\u7ae0\u5167\u5bb9)<span class=\"screen-reader-text\">chrome-remote-desktop[xxxxx]: xdpyinfo:  unable to open display \u201c:20\u201d.\u5f37\u5236\u6539\u4f7f\u7528xvfb\u9810\u8a2d\u555f\u52d5<\/span><span class=\"fa fa-angle-double-right\" aria-hidden=\"true\"><\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-3278","post","type-post","status-publish","format-standard","hentry","category-4","content-layout-excerpt-thumb"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3278"}],"version-history":[{"count":1,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3278\/revisions"}],"predecessor-version":[{"id":3279,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3278\/revisions\/3279"}],"wp:attachment":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}