{"id":182,"date":"2008-05-31T13:06:26","date_gmt":"2008-05-31T21:06:26","guid":{"rendered":"http:\/\/jim-zimmerman.com\/blog\/?p=182"},"modified":"2008-05-31T20:19:39","modified_gmt":"2008-06-01T04:19:39","slug":"how-to-configure-vnc-on-centosredhatfedora","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=182","title":{"rendered":"How to configure VNC on CentOS\/RedHat\/Fedora"},"content":{"rendered":"<p>Configure VNC to run at startup<\/p>\n<p>vi \/etc\/sysconfig\/vncservers<br \/>\n&#8230;<br \/>\nVNCSERVERS=&#8221;1:username&#8221;<br \/>\nVNCSERVERARGS[1]=&#8221;-geometry 1024&#215;768&#8243;<br \/>\n&#8230;<\/p>\n<p>Use ntsysv to configure vncserver to run at startup.<\/p>\n<p>Configure vnc session to use GNOME<\/p>\n<p>su &#8211; username # if necessary<br \/>\ncd .vnc<br \/>\ncp -p xstartup xstartup.orig<\/p>\n<p>vi xstartup<br \/>\n###Begin file###<br \/>\n#!\/bin\/sh<\/p>\n<p># Uncomment the following two lines for normal desktop:<br \/>\n unset SESSION_MANAGER<br \/>\n exec \/etc\/X11\/xinit\/xinitrc<\/p>\n<p>[ -x \/etc\/vnc\/xstartup ] &#038;&#038; exec \/etc\/vnc\/xstartup<br \/>\n[ -r $HOME\/.Xresources ] &#038;&#038; xrdb $HOME\/.Xresources<br \/>\nxsetroot -solid grey<br \/>\nvncconfig -iconic &#038;<br \/>\nxterm -geometry 80&#215;24+10+10 -ls -title &#8220;$VNCDESKTOP Desktop&#8221; &#038;<br \/>\nstartx &#038;<br \/>\n###End file###<\/p>\n<p>Note: Make sure there is not blank line after the startx line.<\/p>\n<p>service vncserver restart<\/p>\n<p>Use your vnc client to connect to hostname:1.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Configure VNC to run at startup vi \/etc\/sysconfig\/vncservers &#8230; VNCSERVERS=&#8221;1:username&#8221; VNCSERVERARGS[1]=&#8221;-geometry 1024&#215;768&#8243; &#8230; Use ntsysv to configure vncserver to run at startup. Configure vnc session to use GNOME su &#8211; username # if necessary cd .vnc cp -p xstartup xstartup.orig vi xstartup ###Begin file### #!\/bin\/sh # Uncomment the following two lines for normal desktop: unset [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-182","post","type-post","status-publish","format-standard","hentry","category-documentation"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=182"}],"version-history":[{"count":0,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/182\/revisions"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}