{"id":2959,"date":"2014-03-28T23:01:42","date_gmt":"2014-03-28T15:01:42","guid":{"rendered":"http:\/\/rmohan.com\/?p=2959"},"modified":"2014-03-28T23:01:42","modified_gmt":"2014-03-28T15:01:42","slug":"vnc-server-configuration-redhat-and-centos","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=2959","title":{"rendered":"VNC Server Configuration Redhat and Centos"},"content":{"rendered":"<div>2. Install package<\/div>\n<div><b>#yum install\u00a0 \u2013y\u00a0 tigervnc-server.x86_64 0:1.0.90-0.15.20110314svn4359.el6<\/b><\/div>\n<div><\/div>\n<div>3. Edit vncservers file:<br \/>\n<b># vim \/etc\/sysconfig\/vncservers<\/b><\/div>\n<div>Uncomment the two lines below and edit it with your own username:<\/div>\n<div><i><b>VNCSERVERS=\u201d2:myusername\u201d<\/b><br \/>\n<b>VNCSERVERARGS[2]=\u201d-geometry 800\u00d7600 -nolistentcp -nohttpd -localhost\u201d<\/b><\/i><\/div>\n<div>\n<b>Example:<\/b><br \/>\n<i><b>VNCSERVERS=\u201d2:root\u201d<\/b><br \/>\n<b>VNCSERVERARGS[2]=\u201d-geometry 1024\u00d7768?<\/b><\/i><\/div>\n<div><\/div>\n<div>4. Configuring Desktop Environment if needed:<br \/>\n<b># \/root\/.vnc\/xstartup<\/b><\/div>\n<div><\/div>\n<div>5. Set the password for vncserver user:<br \/>\n<b># vncpasswd<\/b><br \/>\n<i><b>Password:<\/b>\u00a0myvncpassword<br \/>\n<b>Verify:<\/b>\u00a0myvncpassword<\/i><\/div>\n<div><i>Start the VNCServer:<\/i><\/p>\n<\/div>\n<div><b><b>Note:<\/b>\u00a0Its must to set the password for VNC otherwise the service may not start.<\/b><\/div>\n<div>\n6. Configure other services:<\/div>\n<div><b># service vncserver start<\/b><\/div>\n<div><b># chkconfig vncserver on<\/b><\/div>\n<div><\/div>\n<div>Configure firewall for vnc users, to disable it:<\/div>\n<div>Also stop NetworkManager&amp; disable SELinux<\/div>\n<div><\/div>\n<div><b># \/etc\/init.d\/NetworkManager stop<\/b><\/div>\n<div><b># chkconfigNetworkManager off<\/b><\/div>\n<div><\/div>\n<div><\/div>\n<div>Edit here for disable SELINUX.<\/div>\n<div><b>#vim\u00a0 \/etc\/sysconfing\/selinux<\/b><\/div>\n<div><i>SELINUX=disabled<\/i><\/div>\n<div><i>Save &amp;quit!<\/i><\/div>\n<div>\n<b>Stop the IPtables.<\/b><\/div>\n<div><\/div>\n<div><b># \/etc\/init.d\/iptables save<\/b><b><br \/>\n<b># \/etc\/init.d\/iptables stop<\/b><\/b><\/div>\n<div><b># chkconfigiptables off<\/b><\/div>\n<div><\/div>\n<div>\n<div><b>B. Client configuration:\u00a0<\/b><br \/>\nNow to acces the VNC console from the client, you need to install VNC client on the system on both Linux or Windows which is\u00a0<b>&#8220;Tigervnc Client&#8221;<\/b>. You can download it from &#8216;sourceforge&#8217; website.<\/div>\n<div>\nNow, Run tigervnc Client<\/div>\n<div><\/div>\n<div><i>Give IP as:\u00a0\u00a0 172.16.XX.XX<\/i><\/div>\n<div><\/div>\n<div>The default port number is 5900+1 for each user:<\/div>\n<div>The second user will be 5902 (VNCSERVERS=\u201d2:root\u201d).<\/div>\n<div><\/div>\n<div>You can Access the Server machine now.<\/div>\n<div><\/div>\n<div><b>Note:<\/b>\u00a0vnc server &amp; client machine in same Network.<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>2. Install package #yum install \u2013y tigervnc-server.x86_64 0:1.0.90-0.15.20110314svn4359.el6 3. Edit vncservers file: # vim \/etc\/sysconfig\/vncservers Uncomment the two lines below and edit it with your own username: VNCSERVERS=\u201d2:myusername\u201d VNCSERVERARGS[2]=\u201d-geometry 800\u00d7600 -nolistentcp -nohttpd -localhost\u201d Example: VNCSERVERS=\u201d2:root\u201d VNCSERVERARGS[2]=\u201d-geometry 1024\u00d7768? 4. Configuring Desktop Environment if needed: # \/root\/.vnc\/xstartup 5. Set the password for vncserver user: # vncpasswd Password: [&#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\/2959"}],"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=2959"}],"version-history":[{"count":2,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2959\/revisions"}],"predecessor-version":[{"id":2961,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2959\/revisions\/2961"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}