Linux系统CentOS 安装GNOME和KDE中文远程桌面
1、一.添加fastestmirror插件,这个插件会智能选择下载速度最快的yum源
yum -y install yum-fastestmirror
2、安装桌面
#安装GNOME桌面环境
yum groupinstall "X Window System" -y #安装X图形界面系统
yum -y groupinstall "GNOME Desktop Environment" # CentOS 5.x版本安装GNOME包
yum -y groupinstall "Desktop" # CentOS 6.x版本安装GNOME包
yum groupinstall "KDE (K Desktop Environment)" #安装KDE桌面环境
3、安装火狐和中文支持
yum -y install firefox
yum -y groupinstall chinese-support
4、配置vnc(其间需2次输入vnc密码)
yum -y install tigervnc-server
vncserver
vim /etc/sysconfig/vncservers
打开编辑文件,然后在最下面添加:
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"
以下命令重启vncserver
service vncserver restart
编辑启动xstartup文件
vi /root/.vnc/xstartup
把最后一行twn改成当前桌面(startkde或gnome-session)然后保存退出
设置vnc权限及开机启动
chmod +x ~/.vnc/xstartup
service vncserver restart
chkconfig vncserver on
5、VNC-Viewer-5.0.3-Windows-32bit.exe连接桌面,如下图,端口5901

6、显示为英文,根据下图设置中文。

7、重启vps
reboot
再次连接后已完全显示中文。
