{"id":338,"date":"2007-08-03T15:02:13","date_gmt":"2007-08-03T07:02:13","guid":{"rendered":"http:\/\/blog.smallken.ink\/2007\/08\/03\/linux\/338.html"},"modified":"2007-08-03T15:02:45","modified_gmt":"2007-08-03T07:02:45","slug":"vnc-server-%e5%ae%89%e8%a3%9d%e8%a8%ad%e5%ae%9a-for-centos5","status":"publish","type":"post","link":"https:\/\/blog.smallken.site\/?p=338","title":{"rendered":"VNC Server \u5b89\u88dd\u8a2d\u5b9a for CentOS5"},"content":{"rendered":"<p><b>What is VNC?<\/b>  <\/p>\n<p>VNC stands for Virtual Network Computing. It is remote control software which allows you to view and interact with one computer (the &#8220;server&#8221;) using a simple program (the &#8220;viewer&#8221;) on another computer anywhere on the Internet. The two computers don&#8217;t even have to be the same type, so for example you can use VNC to view an office Linux machine on your Windows PC at home. VNC is freely and publicly available and is in widespread active use by millions throughout industry, academia and privately.  <\/p>\n<p>For more information, please visit <a href=\"http:\/\/www.realvnc.com\/\">http:\/\/www.realvnc.com\/<\/a>  <\/p>\n<p>\u78ba\u5b9a\u4e00\u4e0b\u6709\u6c92\u6709\u88dd vnc \u8ddf vnc-server \u9019\u5169\u500b\u5957\u4ef6<\/p>\n<p># yum -y install vnc vnc-server<\/p>\n<p>\u7de8\u8f2f \/etc\/sysconfig\/vncservers, \u5176\u4e2d1,\u662fport\u7684\u6700\u5f8c\u4e00\u500b\u6578\u5b57, \u5982 5801,&nbsp;root \u6307 \u9810\u8a2d vnc\u767b\u5165\u7684\u8eab\u4efd<\/p>\n<p><!--more--><\/p>\n<p># vi \/etc\/sysconfig\/vncservers<br \/><strong>VNCSERVERS=&#8221;1:root&#8221;<\/strong><\/p>\n<p>\u8a2d\u5b9a\u767b\u5165\u7684\u5bc6\u78bc<br \/># vncpasswd<br \/>Password:<br \/>Verify:<\/p>\n<p># vi ~\/.vnc\/xstartup<br \/>\u89e3\u9664\u8a3b\u89e3\u4ee5\u4e0b\u5169\u884c<br \/><strong>unset SESSION_MANAGER<br \/>exec \/etc\/X11\/xinit\/xinitrc<\/strong><\/p>\n<p>\u91cd\u65b0\u555f\u52d5 VNC Server<br \/># service vncserver restart<\/p>\n<p># netstat -lt<br \/>\u4f60\u53ef\u4ee5\u770b\u5230\u4ee5\u4e0b\u5c31\u8868\u793a vnc server \u5df2\u7d93\u555f\u52d5\u4e86,\u5b83\u76e3\u807d5801, \u6240\u4ee5\u8981\u6ce8\u610f\u9632\u706b\u7246\u8981\u6253\u958b<br \/>tcp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 *:5801<\/p>\n<p>\u63a5\u8457\u4f60\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u4e00\u53f0\u96fb\u8166\u4f7f\u7528\u700f\u89bd\u5668(\u700f\u89bd\u5668\u8981\u652f\u63f4java),\u8f38\u5165\u7db2\u5740: <a title=\"http:\/\/192.168.1.12:5801\/\" href=\"http:\/\/IP:5801\/\">http:\/\/IP:5801\/<\/a>&nbsp;,\u5982 <a title=\"http:\/\/192.168.1.12:5801\/\" href=\"http:\/\/192.168.1.12:5801\/\">http:\/\/192.168.1.12:5801\/<\/a><\/p>\n<p>OK<br \/><img decoding=\"async\" src=\"http:\/\/aycu23.webshots.com\/image\/21782\/2004354304870547198_rs.jpg\"\/>&nbsp;<\/p>\n<p>\u8f38\u5165\u525b\u525b\u8a2d\u5b9a\u7684\u5bc6\u78bc<br \/><img decoding=\"async\" src=\"http:\/\/aycu40.webshots.com\/image\/22719\/2003857400848787290_rs.jpg\"\/> <\/p>\n<p>\u756b\u8cea\u6703\u6bd4\u539f\u4f86\u7a0d\u5dee\uff0c\u767b\u5165\u6210\u529f!  <\/p>\n<p><img decoding=\"async\" src=\"http:\/\/aycu33.webshots.com\/image\/22832\/2001185797525365276_rs.jpg\"\/>&nbsp;<\/p>\n<p>\u53c3\u8003: <a title=\"http:\/\/fedoranews.org\/tchung\/vnc\/index.shtml\" href=\"http:\/\/fedoranews.org\/tchung\/vnc\/index.shtml\">http:\/\/fedoranews.org\/tchung\/vnc\/index.shtml<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is VNC? VNC stands for Virtual Network Computing. &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-338","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts\/338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=338"}],"version-history":[{"count":0,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts\/338\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}