#!/bin/bash
rpm -ivh http://mirrors.aliyun.com/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install tigervnc-server firefox java* javaws -y
yum groupinstall "desktop" "chinese-support" "development tools" -y
cat >/etc/inittab<<EOF
id:5:initdefault:
EOF
vncpasswd<<EOF
test1234
test1234
EOF
cat >/etc/sysconfig/i18n<<EOF
LANG="zh_CN.UTF-8"
SYSFONT="latarcyrheb-sun16"
EOF

cat >/etc/sysconfig/i18n<<EOF
LANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="lat0-sun16"
EOF


vncserver
passwd<<EOF
qpzm7913
qpzm7913
EOF
cat >>/etc/rc.d/rc.local<<EOF
vncserver :1
EOF
cat >/etc/resolv.conf<<EOF
nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4
EOF
chattr +i /etc/resolv.conf
clear
echo "#===========================================#"
echo "# Gnome-Firefox is installed. #"
echo "# The vncpasswd is test1234(Port:5901) #"
echo "# The rootpasswd is qpzm7913(Port:22) #"
echo "#===========================================#"


Back to home | File page

Subscribe | Register | Login | N