{"id":2512,"date":"2025-05-28T19:00:14","date_gmt":"2025-05-28T11:00:14","guid":{"rendered":"https:\/\/airy.cn\/WordPress\/?p=2512"},"modified":"2025-05-28T19:00:43","modified_gmt":"2025-05-28T11:00:43","slug":"setup-realvnc-server-and-client-on-rocky-linux","status":"publish","type":"post","link":"https:\/\/airy.cn\/WordPress\/?p=2512","title":{"rendered":"Setup RealVNC Server and Client on Rocky Linux"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>Step 1 \u2013 Install Desktop Environment on Rocky Linux 8|AlmaLinux 8<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf update\nsudo dnf groupinstall -y \"Server with GUI\"\nsudo systemctl set-default graphical.target\nsudo systemctl default\nsudo reboot<\/code><\/pre>\n\n\n\n<p>Step 2 \u2013 Install the RealVNC server on Rocky Linux<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>##For 64-bit\nwget https:\/\/downloads.realvnc.com\/download\/file\/vnc.files\/VNC-Server-6.9.1-Linux-x64.rpm\n\n##For 32-bit\nwget https:\/\/downloads.realvnc.com\/download\/file\/vnc.files\/VNC-Server-6.9.1-Linux-x86.rpm\n\nsudo yum localinstall VNC-Server-6.9.1-Linux-*.rpm\n\n\nsudo systemctl enable vncserver-virtuald.service\nsudo systemctl start vncserver-virtuald.service\nsudo systemctl enable vncserver-x11-serviced.service\nsudo systemctl start vncserver-x11-serviced.service<\/code><\/pre>\n\n\n\n<p> <\/p>\n\n\n\n<p> <\/p>\n\n\n\n<p>License expiry: Expires on 2035-03-28 &#8211; Desktops: 1029179<\/p>\n\n\n\n<p>vnclicense -add WHJRK-UXY7V-Q34M9-CZU8L-8KGFA <\/p>\n\n\n\n<p>Linux<br>sudo vnclicense -add 77NVU-D9G5T-79ESS-V9Y6X-JMVGA<\/p>\n\n\n\n<p> <\/p>\n\n\n\n<p>export DISPLAY=:0.0<br>xrandr &#8211;newmode &#8220;1920x1080_60.00&#8221; 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync<br>xrandr &#8211;addmode VGA-1 &#8220;1920x1080_60.00&#8221;<\/p>\n\n\n\n<p>sudo vim \/etc\/gdm\/custom.conf<\/p>\n\n\n\n<p># Uncomment the line below to force the login screen to use Xorg <\/p>\n\n\n\n<p>WaylandEnable=<mark>true<\/mark><\/p>\n\n\n\n<p>sudo systemctl restart gdm<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 1 \u2013 Install Desktop Environment on Rocky Linux 8|A &#8230; <a title=\"Setup RealVNC Server and Client on Rocky Linux\" class=\"read-more\" href=\"https:\/\/airy.cn\/WordPress\/?p=2512\" aria-label=\"\u9605\u8bfb Setup RealVNC Server and Client on Rocky Linux\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kadence_starter_templates_imported_post":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-2512","post","type-post","status-publish","format-standard","hentry","category-airy-tech"],"_links":{"self":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts\/2512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2512"}],"version-history":[{"count":2,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts\/2512\/revisions"}],"predecessor-version":[{"id":2514,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts\/2512\/revisions\/2514"}],"wp:attachment":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}