{"id":541,"date":"2024-05-01T15:21:32","date_gmt":"2024-05-01T07:21:32","guid":{"rendered":"https:\/\/note.dayday.work\/?p=541"},"modified":"2024-05-01T16:01:11","modified_gmt":"2024-05-01T08:01:11","slug":"novnc%e5%ae%89%e8%a3%9d","status":"publish","type":"post","link":"https:\/\/note.dayday.work\/?p=541","title":{"rendered":"novnc\u5b89\u88dd"},"content":{"rendered":"<h3><\/h3>\n<h3>Fedora<span><\/span><\/h3>\n<p>\u5b89\u88dd\u5fc5\u8981\u5957\u4ef6<br \/>\n<code># dnf -y install novnc python3-websockify python-numpy<\/code><\/p>\n<p>\u9078\u64c7\u8b49\u66f8\u64fa\u653e\u4f4d\u7f6e<br \/>\n<code># cd \/etc\/pki\/tls\/certs<\/code><code><\/code><\/p>\n<p>\u8b49\u66f8\u52a0\u5bc6\u53c3\u6578\u8a2d\u5b9a<br \/>\n<code># openssl req -x509 -nodes -newkey rsa:2048 -keyout \/etc\/pki\/tls\/certs\/novnc.pem -out \/etc\/pki\/tls\/certs\/novnc.pem -days 3650<\/code><\/p>\n<p>\u4fee\u6539.pem\u6a94\u6848\u6b0a\u9650\u53ea\u6709\u64c1\u6709\u8005\u6709\u8b80\u5beb\u6b0a\u9650<br \/>\n<code># chmod 644 \/etc\/pki\/tls\/certs\/novnc.pem<\/code><\/p>\n<p>\u5982\u679c Firewalld \u6b63\u5728\u904b\u884c\uff0c\u958b\u653e\u9023\u63a5\u57e0<br \/>\n<code># firewall-cmd --add-port=6080\/tcp --permanent<br \/>\n# firewall-cmd --reload<\/code><\/p>\n<p>\u5b89\u88ddtigervnc\u5957\u4ef6<br \/>\n<code># dnf -y install tigervnc-server<\/code><\/p>\n<p>\u5982\u679c Firewalld \u6b63\u5728\u904b\u884c\uff0c\u958b\u653evnc-server\u9023\u63a5\u57e0<br \/>\n<code># firewall-cmd --add-service=vnc-server --permanent<br \/>\n# firewall-cmd --reload<\/code><\/p>\n<p>\u8a2d\u5b9aVNC\u5bc6\u78bc<br \/>\n<code># set VNC password<br \/>\ndebian@dlp:~$ vncpasswd<br \/>\nPassword:<br \/>\nVerify:<br \/>\nWould you like to enter a view-only password (y\/n)? n<\/code><\/p>\n<p>\u8a2d\u5b9a\u89e3\u6790\u5ea6<br \/>\n<code>#vncserver :1 -geometry 800x600 -depth 24<\/code><\/p>\n<p>\u555f\u52d5novnc\u8a2d\u5b9a\u8b49\u66f8\u4e26\u544a\u8a34\u5b83\u5c07\u9023\u63a5\u57e06080 \u7684\u6d41\u91cf\u8f49\u9001\u81f3\u9023\u63a5\u57e0 5901<br \/>\n<code>#websockify -D --web=\/usr\/share\/novnc\/ --cert=\/etc\/pki\/tls\/certs\/novnc.pem 6080 localhost:5901<\/code><\/p>\n<p>\u95dc\u9589novnc\u9023\u7dda<br \/>\n<code>#vncserver -kill :1<\/code><\/p>\n<h1>\u53c3\u8003\u8cc7\u6599<\/h1>\n<p><a href=\"https:\/\/www.server-world.info\/en\/note?os=Debian_12&amp;p=desktop&amp;f=8#google_vignette\" target=\"_blank\" rel=\"noopener\">https:\/\/www.server-world.info<br \/>\n<\/a><a href=\"https:\/\/blog.csdn.net\/allway2\/article\/details\/122331001\">https:\/\/blog.csdn.net\/allway2\/article\/details\/122331001<\/a><br \/>\n<a href=\"https:\/\/aws.amazon.com\/cn\/blogs\/china\/how-to-build-access-to-the-ubuntu-22-desktop-through-a-browser-using-novnc\/\" target=\"_blank\" rel=\"noopener\">https:\/\/aws.amazon.com\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fedora \u5b89\u88dd\u5fc5\u8981\u5957\u4ef6 # dnf -y install novnc python3-websockify &#8230; <span class=\"more\"><a class=\"more-link\" href=\"https:\/\/note.dayday.work\/?p=541\">[Read more&#8230;]<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[6],"tags":[52],"_links":{"self":[{"href":"https:\/\/note.dayday.work\/index.php?rest_route=\/wp\/v2\/posts\/541"}],"collection":[{"href":"https:\/\/note.dayday.work\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/note.dayday.work\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/note.dayday.work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/note.dayday.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=541"}],"version-history":[{"count":10,"href":"https:\/\/note.dayday.work\/index.php?rest_route=\/wp\/v2\/posts\/541\/revisions"}],"predecessor-version":[{"id":551,"href":"https:\/\/note.dayday.work\/index.php?rest_route=\/wp\/v2\/posts\/541\/revisions\/551"}],"wp:attachment":[{"href":"https:\/\/note.dayday.work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/note.dayday.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/note.dayday.work\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}