{"id":1902,"date":"2013-02-26T14:53:40","date_gmt":"2013-02-26T06:53:40","guid":{"rendered":"http:\/\/rmohan.com\/?p=1902"},"modified":"2013-02-26T14:53:40","modified_gmt":"2013-02-26T06:53:40","slug":"how-to-install-and-configure-vnc-server","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=1902","title":{"rendered":"How to Install and Configure VNC Server"},"content":{"rendered":"<p>First you need to check for already installed VNC Server. You can check this by executing following command.<\/p>\n<p>rpm -q vnc-server<\/p>\n<p>If you found message like\u00a0 &#8220;package vnc-server is not installe&#8221; then you need to install it first by executing following command from root user.<\/p>\n<p>yum install vnc-server<\/p>\n<p>Once VNC Server installed you need to have a window manager installed if not already available. execute following command to install &#8216;GNOME Desktop Environment&#8217; from root user.<\/p>\n<p>yum groupinstall &#8220;GNOME Desktop Environment&#8221;<\/p>\n<p>Now change the configuration of VNC Server&#8217;s configuration file<\/p>\n<p>cd \/etc\/sysconfig<br \/>vi vncservers<\/p>\n<p>&nbsp;<\/p>\n<p>add following lines to the file. change anyusername to your already created username.<\/p>\n<p>VNCSERVERS=&#8221;1:root&#8221;<br \/>VNCSERVERARGS[1]=&#8221;-geometry 1024&#215;768&#8243;<\/p>\n<p>&nbsp;<\/p>\n<p>Now login with root user and start the &#8220;vnc server&#8221;<\/p>\n<p>\/sbin\/service vncserver start<\/p>\n<p>now login to &#8220;root&#8221; and configure the vnc password for this user<\/p>\n<p>cd \/root\/.vnc\/<\/p>\n<p>vncpasswd<\/p>\n<p>&nbsp;<\/p>\n<p>cd .vnc<br \/>vi xstartup<\/p>\n<p>uncomment following lines by deleting &#8220;#&#8221; sign<\/p>\n<p>unset SESSION_MANAGER<br \/>exec \/etc\/X11\/xinit\/xinitrc<\/p>\n<p>and change the xterm command as follows<\/p>\n<p>xterm -geometry 1024&#215;768 -ls -title &#8220;&amp;VNCDESKTOP Desktop&#8221; &amp; gnome-session &amp;<\/p>\n<p>Now start the vnc server again by root user<\/p>\n<p>\/sbin\/service vncserver start<\/p>\n<p>Once started you can now install the vnc client in you client machine and login to CentOs machine as follows<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First you need to check for already installed VNC Server. You can check this by executing following command.<\/p>\n<p>rpm -q vnc-server<\/p>\n<p>If you found message like &#8220;package vnc-server is not installe&#8221; then you need to install it first by executing following command from root user.<\/p>\n<p>yum install vnc-server<\/p>\n<p>Once VNC Server installed you need to [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1902"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1902"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1902\/revisions"}],"predecessor-version":[{"id":1903,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1902\/revisions\/1903"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}