{"id":319,"date":"2022-03-19T01:28:52","date_gmt":"2022-03-19T01:28:52","guid":{"rendered":"https:\/\/ouritsource.com\/blog\/?p=319"},"modified":"2025-05-29T18:22:03","modified_gmt":"2025-05-29T18:22:03","slug":"319-2","status":"publish","type":"post","link":"https:\/\/ouritsource.com\/blog\/319-2\/","title":{"rendered":"How to Install TigerVNC Server on RedHat Linux 8.3"},"content":{"rendered":"<body>\n<p>The following are instructions on how to install TigerVNC Server on a RedHat Linux workstation so it can be accessed remotely using a VNC Viewer. <\/p>\n\n\n\n<p><strong>1. Install Tiger VNC Server:<\/strong><\/p>\n\n\n\n<p><code>su<br>yum install tigervnc-server*<\/code><\/p>\n\n\n\n<p><strong>2. Create configuration file for the VNC Service<\/strong>:<\/p>\n\n\n\n<p><code>vi \/etc\/systemd\/system\/<code>vncserver@\\:2.service<\/code><\/code> <\/p>\n\n\n\n<p>or<\/p>\n\n\n\n<p><code>nano \/etc\/systemd\/system\/vnserver@\\:2.service<\/code><\/p>\n\n\n\n<p><em>Note: On the configuration file, replace the user, group, and WorkingDirectory for the user that will be access this server remotely. <\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"640\" height=\"396\" src=\"https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-21-58-10.png?resize=640%2C396&#038;ssl=1\" alt=\"\" class=\"wp-image-326\" loading=\"lazy\" srcset=\"https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-21-58-10.png?w=749&amp;ssl=1 749w, https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-21-58-10.png?resize=300%2C185&amp;ssl=1 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p><strong>3. Modify GDM Custom Configuration:<\/strong><\/p>\n\n\n\n<p><code>nano \/etc\/gdm\/custom.conf<\/code><\/p>\n\n\n\n<p>or <\/p>\n\n\n\n<p><code>vi \/etc\/gdm\/custom.conf<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"640\" height=\"407\" src=\"https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-19-14-48-57-1.png?resize=640%2C407&#038;ssl=1\" alt=\"\" class=\"wp-image-386\" loading=\"lazy\" srcset=\"https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-19-14-48-57-1.png?w=727&amp;ssl=1 727w, https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-19-14-48-57-1.png?resize=300%2C191&amp;ssl=1 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>4. Create or Modify the xstartup file: <\/strong><\/p>\n\n\n\n<p><code>vi \/home\/ddeocampo\/.vnc\/xstartup<\/code> <\/p>\n\n\n\n<p>or<\/p>\n\n\n\n<p><code>nano \/home\/ddeocampo\/.vnc\/xstartup<\/code><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><em>Note:   make sure <strong>exec \/X11\/xinit\/xinitrc <\/strong> is added to the configuration to prevent the blank screen issue: some people experience a blank screen when connecting to a VNC server. Also, ensure<strong> x-window-manager &amp;<\/strong> is also included at the bottom of the configuration file.<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"640\" height=\"418\" src=\"https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-23-56-30.png?resize=640%2C418&#038;ssl=1\" alt=\"\" class=\"wp-image-375\" loading=\"lazy\" srcset=\"https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-23-56-30.png?w=760&amp;ssl=1 760w, https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-23-56-30.png?resize=300%2C196&amp;ssl=1 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>5.<\/strong> <strong>Restart the daemon:<\/strong><\/p>\n\n\n\n<p><code>systemctl daemon-reload<\/code><\/p>\n\n\n\n<p><strong>6.<\/strong> <strong>Enable the VNC Service:<\/strong><\/p>\n\n\n\n<p><code>systemctl enable vncserver@\\:2.service<\/code><\/p>\n\n\n\n<p><strong>7. Setup VNC password for user account:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"640\" height=\"392\" src=\"https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-22-50-22.png?resize=640%2C392&#038;ssl=1\" alt=\"\" class=\"wp-image-345\" loading=\"lazy\" srcset=\"https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-22-50-22.png?w=755&amp;ssl=1 755w, https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-22-50-22.png?resize=300%2C184&amp;ssl=1 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p><strong>8. Start or Restart the Service<\/strong><\/p>\n\n\n\n<p><code>systemctl start vncserver@\\:2.service<\/code><\/p>\n\n\n\n<p>or<\/p>\n\n\n\n<p><code>systemctl restart vncserver@\\:2.service<\/code><\/p>\n\n\n\n<p><strong>9. You Can Verify the VNC Service\u2019s Status:<\/strong><\/p>\n\n\n\n<p><code>systemctl status vncserver@\\:2.service<\/code><\/p>\n\n\n\n<p><strong>10.<\/strong> <strong>Disable Selinux:<\/strong><br><br><code>setenforce 0<\/code><br><code>sed -i 's\/enforcing\/disabled\/g' etc\/selinux\/config<\/code><\/p>\n\n\n\n<p><strong>11. Configure the Selinux Config file<\/strong>:<\/p>\n\n\n\n<p><code>vi \/etc\/selinux\/config<\/code><\/p>\n\n\n\n<p>or<\/p>\n\n\n\n<p><code>nano \/etc\/selinux\/config<\/code><\/p>\n\n\n\n<p><em>Note: change SELINUX=permissive to SELINUX=disabled:<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"640\" height=\"390\" src=\"https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-19-13-44-33.png?resize=640%2C390&#038;ssl=1\" alt=\"\" class=\"wp-image-380\" loading=\"lazy\" srcset=\"https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-19-13-44-33.png?w=753&amp;ssl=1 753w, https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-19-13-44-33.png?resize=300%2C183&amp;ssl=1 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code><\/code><\/pre>\n\n\n\n<p><strong>12. To Check Selinux Status:<\/strong><br><code>sestatus<\/code><\/p>\n\n\n\n<p><strong>13. To Find TCP Port(s) the VNCServer is using, use the following command:<\/strong><br><br><code>ss -tulnp | grep 590*<\/code><\/p>\n\n\n\n<p><em>Note: As you can see, Xvnc in this example is configured for 5902 and 5903. Your port can be different but it will start with 590. <\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"640\" height=\"285\" src=\"https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-21-48-02.png?resize=640%2C285&#038;ssl=1\" alt=\"\" class=\"wp-image-324\" loading=\"lazy\" srcset=\"https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-21-48-02.png?resize=1024%2C456&amp;ssl=1 1024w, https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-21-48-02.png?resize=300%2C134&amp;ssl=1 300w, https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-21-48-02.png?resize=768%2C342&amp;ssl=1 768w, https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-21-48-02.png?w=1075&amp;ssl=1 1075w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>14. Open VNC Port(s) on Firewall<\/strong>:<code><br><\/code><br><code>firewall-cmd --permanent --zone=public --add-port=5903\/tcp<\/code><\/p>\n\n\n\n<p><strong>15. Other commands You May Need:<\/strong><\/p>\n\n\n\n<p><code>firewall-cmd --reload   <em>\/\/restarts the firewall daemon<\/em><br>sysctl stop firewalld  <em>\/\/stops the firewall daemon<\/em><br>systemctl status firewalld <em>\/\/checks the firewall status<\/em><br>firewall-cmd --state  <em>\/\/checks the firewall state<\/em><\/code><\/p>\n\n\n\n<p><strong>16. Or you can install firewall-config to view firewall settings through a GUI interface:<\/strong><\/p>\n\n\n\n<p><code>firewall-config <\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"640\" height=\"523\" src=\"https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-21-23-56.png?resize=640%2C523&#038;ssl=1\" alt=\"\" class=\"wp-image-325\" loading=\"lazy\" srcset=\"https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-21-23-56.png?w=874&amp;ssl=1 874w, https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-21-23-56.png?resize=300%2C245&amp;ssl=1 300w, https:\/\/i0.wp.com\/ouritsource.com\/blog\/wp-content\/uploads\/2022\/03\/Screenshot-from-2022-03-18-21-23-56.png?resize=768%2C627&amp;ssl=1 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p><strong> 17. Start the VNCService<\/strong>:<\/p>\n\n\n\n<p><code>systemctl start vncserver@\\:2.service<\/code><\/p>\n<\/body>","protected":false},"excerpt":{"rendered":"<p>The following are instructions on how to install TigerVNC Server on a RedHat Linux workstation so it can be accessed remotely using a VNC Viewer. 1. Install Tiger VNC Server: suyum install&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-319","post","type-post","status-publish","format-standard","hentry","category-redhat-linux","no-thumbnail"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ouritsource.com\/blog\/wp-json\/wp\/v2\/posts\/319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ouritsource.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ouritsource.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ouritsource.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ouritsource.com\/blog\/wp-json\/wp\/v2\/comments?post=319"}],"version-history":[{"count":16,"href":"https:\/\/ouritsource.com\/blog\/wp-json\/wp\/v2\/posts\/319\/revisions"}],"predecessor-version":[{"id":389,"href":"https:\/\/ouritsource.com\/blog\/wp-json\/wp\/v2\/posts\/319\/revisions\/389"}],"wp:attachment":[{"href":"https:\/\/ouritsource.com\/blog\/wp-json\/wp\/v2\/media?parent=319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ouritsource.com\/blog\/wp-json\/wp\/v2\/categories?post=319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ouritsource.com\/blog\/wp-json\/wp\/v2\/tags?post=319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}