#!/bin/bash



yum -y groupinstall "Desktop"

yum -y groupinstall "X Window System"

yum -y groupinstall "Chinese Support"



echo 'LANG="zh_CN.UTF-8"' >> /etc/sysconfig/i18n



startx



echo 'id:5:initdefault' >> /etc/inittab



yum -y install tigervnc tigervnc-server



echo 'VNCSERVERS="1:root"' >> /etc/sysconfig/vncservers

echo 'VNCSERVERARGS[1]="-geometry 1024x768"' >> /etc/sysconfig/vncservers



vncpasswd



#service vncserver restart #[重启]

#service vncserver start #[启动]

#chkconfig vncserver on #[开机启动]


Back to home | File page

Subscribe | Register | Login | N