標籤:
配置案頭
# 安裝gnome案頭環境
yum groupinstall Desktop -y
# 安裝中文語言支援包(可選)
yum groupinstall ‘Chinese Support‘ -y
# 設定系統預設語言為中文(可選)
sed -i ‘/LANG/c\LANG="zh_CN.UTF-8"‘ /etc/sysconfig/i18n
source /etc/sysconfig/i18n
?
?
?
?
配置VNC Server
#安裝vncserver包
yum install tigervnc tigervnc-server –y
#開啟自啟動
chkconfig vncserver on
你可以通過UltraVNC Viewer、TigerVNC Viewer或者RealVNC Viewer訪問遠端桌面了。
#確認vncserver包已經安裝
[[email protected] ~]# rpm -qa | egrep -i vnc
tigervnc-server-1.1.0-16.el6.centos.x86_64
[[email protected] ~]#
#確認rpm包設定檔路徑
[[email protected] ~]# rpm -ql tigervnc-server-1.1.0-16.el6.centos.x86_64
/etc/rc.d/init.d/vncserver
/etc/sysconfig/vncservers
/usr/bin/Xvnc
/usr/bin/vncconfig
/usr/bin/vncpasswd
/usr/bin/vncserver
/usr/bin/x0vncserver
/usr/share/man/man1/Xvnc.1.gz
/usr/share/man/man1/vncconfig.1.gz
/usr/share/man/man1/vncpasswd.1.gz
/usr/share/man/man1/vncserver.1.gz
/usr/share/man/man1/x0vncserver.1.gz
?
?
?
#root使用者啟動vncserver
#輸入以root使用者登入vncserver時的密碼
[[email protected] ~]# vncserver
?
You will require a password to access your desktops.
?
Password:
Verify:
xauth: (stdin):1: bad display name "su172:1" in "add" command
?
New ‘su172:1 (root)‘ desktop is su172:1
?
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/su172:1.log
?
[[email protected] ~]# cd .vnc/
[[email protected] .vnc]# ls
passwd su172:1.log su172:1.pid xstartup
#普通使用者啟動vncserver
[[email protected] ~]$vncserver
#普通使用者需要手工改密碼
[[email protected] ~]$ vncpasswd
Password:
Verify:
?
?
?
?
?
?
?
?
?
?
?
?
?
#root驗證
?
?
?
?
#普通user驗證
?
?
?
?
#在Server端進行連接埠驗證
?
#確認vcn進程
?
?
#kill vnc進程驗證
?
?
?
?
?
?
#參考
http://www.centoscn.com/image-text/config/2014/1120/4151.html
CentOS下配置VNC