|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们!VNC(VirtualNetworkComputer)是假造收集盘算机的缩写。VNC是在基于UNIX和Linux操纵体系的收费的开源软件,近程把持才能壮大,高效有用,其功能能够和Windows和MAC中的任何近程把持软件媲美。
在Linux中,VNC包含以下四个下令:vncserver,vncviewer,vncpasswd,vncconnect。
上面以CentOS6.2为例,装置VNC步调以下:
1、装置gnome桌面情况
假如体系已装置了gnome桌面情况,此步省略。
[size=1em][size=1em]#装置fontforge,制止字体呈现方框乱码
[size=1em]yuminstallfontforge-y
[size=1em]#装置gnome桌面情况
[size=1em]yumgroupinstallDesktop-y
[size=1em]#装置中文言语撑持包
[size=1em]yumgroupinstallChineseSupport-y
[size=1em]#设置体系默许言语为中文
[size=1em]sed-i/LANG/cLANG="zh_CN.UTF-8"/etc/sysconfig/i18n
[size=1em]source/etc/sysconfig/i18n
2、安排vncserver
[size=1em][size=1em]#装置vnc软件包
[size=1em]yuminstalltigervnctigervnc-server-y
[size=1em]#设置vncserver开机启动
[size=1em]chkconfigvncserveron
[size=1em]#设置vnc登录暗码,暗码保留在~/.vnc/passwd
[size=1em]#假如修正一般用户的vnc暗码,要先su切换到此用户下
[size=1em]vncpasswd
[size=1em]#检察vncserver设置文件
[size=1em]rpm-qctigervnc-server
[size=1em]#设置vncserver
[size=1em]vim/etc/sysconfig/vncservers
[size=1em][size=1em]#以用户root启动第一个和第二个桌面
[size=1em]VNCSERVERS="1:root2:root"
[size=1em]#调剂分辩率
[size=1em]VNCSERVERARGS[1]="-geometry1024x768"
[size=1em]VNCSERVERARGS[2]="-geometry1024x768"
<divstyle="padding:0px;margin:0px;color:rgb(85,85,85);font-family:宋体,ArialNarrow,arial,serif;font-size:14px;line-height:28px;"><divclass="syntaxhighlighterbash"id="highlighter_508529"style="width:720px;padding:0px!important;margin:0.3em0px!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow-y:visible!important;overflow-x:auto!important;position:relative!important;right:auto!important;top:auto!important;vertical-align:baseline!important;box-sizing:content-box!important;font-family:Consolas,BitstreamVeraSansMono,CourierNew,Courier,monospace!important;font-size:1em!important;min-height:inherit!important;background-image:none!important;background-attachment:initial!important;background-size:initial!important;background-origin:initial!important;background-clip:initial!important;background-position:initial!important;background-repeat:initial!important;"><divclass="container"style="padding:0px!important;margin:0px!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow:visible!important;position:relative!important;right:auto!important;top:auto!important;vertical-align:baseline!important;width:auto!important;box-sizing:content-box!important;font-size:1em!important;min-height:inherit!important;background:none!important;"><divclass="linenumber1index0alt2"style="white-space:nowrap;padding:0px1em!important;margin:0px!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow:visible!important;position:static!important;right:auto!important;top:auto!important;vertical-align:baseline!important;width:auto!important;box-sizing:content-box!important;font-size:1em!important;min-height:inherit!important;background-image:none!important;background-attachment:initial!important;background-size:initial!important;background-origin:initial!important;background-clip:initial!important;background-position:initial!important;background-repeat:initial!important;"> |
|