{"id":1570,"date":"2013-04-12T17:17:46","date_gmt":"2013-04-12T09:17:46","guid":{"rendered":"http:\/\/www.huzs.top\/?p=1570"},"modified":"2014-07-05T10:30:21","modified_gmt":"2014-07-05T02:30:21","slug":"centos%e5%91%bd%e4%bb%a4%e8%a1%8c%e5%ae%89%e8%a3%85%e6%a1%8c%e9%9d%a2%e7%8e%af%e5%a2%83%e5%b9%b6%e5%bc%80%e5%90%afvnc%e8%bf%9c%e7%a8%8b%e6%a1%8c%e9%9d%a2","status":"publish","type":"post","link":"https:\/\/www.huzs.top\/?p=1570","title":{"rendered":"CentOS\u547d\u4ee4\u884c\u5b89\u88c5\u684c\u9762\u73af\u5883\u5e76\u5f00\u542fVNC\u8fdc\u7a0b\u684c\u9762"},"content":{"rendered":"<p>\u591a\u6570\u60c5\u51b5\u4e0b\u6211\u4eec\u9700\u8981\u6700\u5c0f\u5316\u5b89\u88c5\uff0c\u8fd9\u6837\u5c31\u6ca1\u6709\u684c\u9762\u4e86\u3002\u6240\u4ee5\uff0c\u6211\u4eec\u9700\u8981\u5728\u547d\u4ee4\u884c\u5b89\u88c5\u684c\u9762\u73af\u5883\u3002<br \/><strong><br \/>\u4e00\u3001YUM\u5b89\u88c5\u684c\u9762<\/strong><\/p>\n<pre>#yum groupinstall 'X Window System' -y<\/pre>\n<p>\u5b89\u88c5GNOME\u684c\u9762\u73af\u5883(CentOS 5.x)<\/p>\n<pre>#yum groupinstall 'GNOME Desktop Environment' -y<\/pre>\n<p>\u5b89\u88c5GNOME\u684c\u9762\u73af\u5883(CentOS 6.x)<\/p>\n<pre>#yum groupinstall 'Desktop' -y<\/pre>\n<p>\u5982\u679c\u5b89\u88c5KDE\u684c\u9762\u73af\u5883<\/p>\n<pre>#yum groupinstall 'KDE (K Desktop Environment)' -y<\/pre>\n<p>\u5378\u8f7dGNOME\u684c\u9762\u73af\u5883<\/p>\n<pre>#yum groupremove \"GNOME Desktop Environment\"<\/pre>\n<p>\u5378\u8f7dKDE\u684c\u9762\u73af\u5883<\/p>\n<pre>#yum groupremove \"KDE (K Desktop Environment)\" <\/pre>\n<p><strong>\u4e8c\u3001\u5b89\u88c5\u4e2d\u6587\u652f\u6301<\/strong><!--more--><br \/>1.\u5b89\u88c5\u4e2d\u6587\u5305<\/p>\n<pre>#yum groupinstall chinese-support -y<\/pre>\n<p>2.\u4fee\u6539\u5b57\u7b26\u7f16\u7801\u914d\u7f6e\u6587\u4ef6<\/p>\n<pre>vi \/etc\/sysconfig\/i18n<\/pre>\n<p>\u4fee\u6539\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<pre>LANGUAGE=\"zh_CN.GB18030:zh_CN.GB2312:zh_CN\"<br>SUPPORTED=\"zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en\"<br>SYSFONT=\"latarcyrheb-sun16\"<br>export LC_ALL=\"zh_CN.GB18030\"<\/pre>\n<p>3.\u91cd\u65b0\u767b\u5f55\u7cfb\u7edf\u3002<\/p>\n<p><strong>\u4e09\u3001\u5b89\u88c5VNC\u670d\u52a1\u3002<\/strong><br \/>1\u3001\u5b89\u88c5VNC<\/p>\n<pre>#yum install vnc vnc-server -y<\/pre>\n<p>\u6216\u8005<\/p>\n<pre>#yum install vnc tigervnc-server -y<\/pre>\n<p>2\u3001\u8bbe\u7f6e VNC \u5bc6\u7801<\/p>\n<pre>#vncserver<\/pre>\n<p>\u6b64\u65f6\u4f1a\u63d0\u793a\u4f60\u8f93\u5165\u5bc6\u7801\uff0c\u56e0\u4e3a\u662f\u7b2c\u4e00\u6b21\u914d\u7f6e\u3002\u91cd\u590d\u8f93\u5165\u4e24\u6b21\u5373\u53ef\u3002<\/p>\n<p>3\u3001\u914d\u7f6e\u684c\u9762\u7c7b\u578b<br \/>\u8bbe\u7f6e\u4e00\u4e0b\u8fdc\u7a0b\u684c\u9762\u4f7f\u7528\u90a3\u4e2a\u7c7b\u578b\u7684\u684c\u9762(\u9ed8\u8ba4\u662f\u547d\u4ee4\u884c\u684c\u9762)\u3002\u8f93\u5165\uff1a<\/p>\n<pre>#vi ~\/.vnc\/xstartup<\/pre>\n<p>\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u4f7f\u7528\u7684 Linux \u684c\u9762\u90fd\u662f &#8220;Gnome&#8221; \u684c\u9762\uff0c\u6545\u914d\u7f6e\u6210\u8fd9\u4e2a\u684c\u9762\u6bd4\u8f83\u4e60\u60ef\u3002<br \/>\u6ce8\u91ca\u8fd9\u4e24\u884c<\/p>\n<pre># xterm -geometry 80x24+10+10 -ls -title \"$VNCDESKTOP Desktop\" &<br># twm &<\/pre>\n<p>\u5728\u6700\u540e\u9762\u6dfb\u52a0\u8fd9\u4e00\u884c<\/p>\n<pre>gnome-session &<\/pre>\n<p>4\u3001\u914d\u7f6e\u767b\u5f55\u5e10\u53f7\u3001\u684c\u9762\u5206\u8fa8\u7387\u3001\u8fde\u63a5\u65b9\u5f0f<\/p>\n<pre>#vi \/etc\/sysconfig\/vncservers<\/pre>\n<p>\u5728\u6700\u540e\u4e24\u884c\u6dfb\u52a0\uff1a<\/p>\n<pre>VNCSERVERS=\"1:root\"<br>VNCSERVERARGS[1]=\"-geometry 1024x768\"<\/pre>\n<p>\u91cd\u542fVNC\u670d\u52a1\uff0c\u4f7f\u914d\u7f6e\u751f\u6548\uff1a<\/p>\n<pre>#service vncserver restart<\/pre>\n<p><strong>\u5b9e\u7528\u547d\u4ee4<\/strong><br \/>vncserver[:n]\u5f00\u670d\u52a1<br \/>vncserver -list\u770b\u6709\u51e0\u4e2a\u5728\u8fd0\u884c<br \/>vncserver -kill :n \u00a0 \u6740\u6389\u7b2c\u51e0\u4e2ax-display<br \/>vncpasswd \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u4fee\u6539\u5bc6\u7801<\/p>\n<p>5\u3001\u914d\u7f6e\u9632\u706b\u5899\uff0c\u5141\u8bb8 VNC \u8fde\u63a5<br \/>VNC server \u76d1\u542c\u7684\u7aef\u53e3\u4ece 5900 \u5f00\u59cb\uff0cdisplay:1 \u7684\u76d1\u542c 5901\uff0cdisplay:2 \u76d1\u542c 5902\uff0c\u4ee5\u6b64\u7c7b\u63a8\u3002CentOS \u7684\u9632\u706b\u5899\u7f3a\u7701\u662f\u4e0d\u5141\u8bb8\u8fde\u63a5\u8fd9\u4e9b\u7aef\u53e3\u7684\uff0c\u6240\u4ee5\u9700\u8981\u4f7f\u7528\u4e0b\u9762\u7684\u6b65\u9aa4\u6253\u5f00\u9632\u706b\u5899\uff08\u9700\u8981 root \u6743\u9650)\uff1a<\/p>\n<pre>#vi \/etc\/sysconfig\/iptables<\/pre>\n<p>\u6dfb\u52a0\u4e00\u6761\u89c4\u5219\uff1a<\/p>\n<pre>-A INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT<\/pre>\n<p>\u4fdd\u5b58\u540e\u91cd\u542f\u9632\u706b\u5899\uff1a<\/p>\n<pre>#service iptables restart<\/pre>\n<p>6\u3001\u8bbe\u7f6e VNC \u81ea\u52a8\u542f\u52a8<\/p>\n<pre>#chkconfig --level 35 vncserver on<\/pre>\n<p>\u5ba2\u6237\u7aef\u8fde\u63a5<br \/>1.\u5b98\u65b9\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/www.realvnc.com\/download\/\">http:\/\/www.realvnc.com\/download\/<\/a><br \/>2.\u5b98\u65b9\u7eff\u8272\u7248\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/www.huzs.top\/soft\/VNC-Viewer-5.0.5-Windows-32bit.exe\" target=\"_blank\">http:\/\/www.huzs.top\/soft\/VNC-Viewer-5.0.5-Windows-32bit.exe<\/a><br \/>\u8fde\u63a5\u65b9\u5f0f\uff08IP\u548c\u7aef\u53e3\u56e0\u60c5\u51b5\u4e0d\u540c\u800c\u4e0d\u540c\uff09\uff1a<\/p>\n<pre>192.168.0.188:5901<\/pre>\n<p>\u8fde\u63a5\u540e\uff0c\u684c\u9762\u9ed8\u8ba4\u4e3a\u975e\u771f\u5f69\u8272\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u6765\u6539\u53d8\uff0c\u5982\u4e0b\u56fe\uff1a<br \/><a href=\"http:\/\/www.huzs.top\/wp-content\/uploads\/2013\/04\/Unnamed-QQ-Screenshot20130520110640.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1594\" alt=\"Unnamed QQ Screenshot20130520110640\" src=\"http:\/\/www.huzs.top\/wp-content\/uploads\/2013\/04\/Unnamed-QQ-Screenshot20130520110640.png\" width=\"348\" height=\"415\" \/><\/a><\/p>\n<p>\u8f93\u5165\u6cd5\u95ee\u9898\uff1a<br \/>\u542f\u52a8\u684c\u9762\u540e\u4f1a\u53d1\u73b0\u6ca1\u6709\u4e2d\u6587\u8f93\u5165\uff01\u8fd9\u662f\u4f60\u53ef\u4ee5\u6253\u5f00\u4e00\u4e2a\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8\uff1a<\/p>\n<pre>scim &<\/pre>\n<p>\u5b89\u88c5\u5fae\u8f6f\u96c5\u9ed1\u5b57\u4f53\uff1a<\/p>\n<pre>wget http:\/\/www.huzs.top\/soft\/WindowsFont.sh<br>sh WindowsFont.sh<\/pre>\n<p>\u6253\u5f00\u6d4f\u89c8\u5668\u8bbe\u7f6e\uff0c\u548c\u7cfb\u7edf\u7684\u201c\u5916\u89c2\u201d\u5206\u522b\u8bbe\u7f6e\u5b57\u4f53\u4e3a\u5fae\u8f6f\u96c5\u9ed1\u5373\u53ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u591a\u6570\u60c5\u51b5\u4e0b\u6211\u4eec\u9700\u8981\u6700\u5c0f\u5316\u5b89\u88c5\uff0c\u8fd9\u6837\u5c31\u6ca1\u6709\u684c\u9762\u4e86\u3002\u6240\u4ee5\uff0c\u6211\u4eec\u9700\u8981\u5728\u547d\u4ee4\u884c\u5b89\u88c5\u684c\u9762\u73af\u5883\u3002\u4e00\u3001YUM\u5b89\u88c5\u684c\u9762 #yu [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1570","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts\/1570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1570"}],"version-history":[{"count":4,"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts\/1570\/revisions"}],"predecessor-version":[{"id":2191,"href":"https:\/\/www.huzs.top\/index.php?rest_route=\/wp\/v2\/posts\/1570\/revisions\/2191"}],"wp:attachment":[{"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.huzs.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}