这里使用EPEL和rpmforge,官网http://fedoraproject.org/wiki/EPEL http://repoforge.org/use/
(先别急复制,用第一到第三步合并后的命令更方便!)
rpm -ivh http://mirrors.sohu.com/fedora-epel/6/i386/epel-release-6-8.noarch.rpm ; rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
yum groupinstall xfce chinese-support -y
此步与CentOS5下差别较大,CentOS6下用tigervnc
yum install tigervnc-server -y
rpm -ivh http://mirrors.sohu.com/fedora-epel/6/i386/epel-release-6-8.noarch.rpm ; rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm ; yum groupinstall xfce chinese-support -y ; yum install tigervnc-server -y
运行一次vnc
vncserver
设置一下vnc密码
再终止vncserver,配置vnc+xfce启动
哥把命令全合一起了,一下子搞掂全部~
pkill -9 vnc ; rm -rf /infocontent/.X1* /root/.vnc/xstartup ; cd /root/.vnc/ ; wget http://img.crazyfeng.com/sh/xfce-vnc/xstartup ; chmod +x ~/.vnc/xstartup ; chkconfig vncserver on ; echo ‘VNCSERVERS=”1:root”‘ >> /etc/sysconfig/vncservers ; echo ‘VNCSERVERARGS[1]=”-geometry 800×600″‘ >> /etc/sysconfig/vncservers ; service vncserver restart
如果出现
unable to keep input method running
giving up to bring the process up because main input method process for FCITX rapidly died many times.see.imsetting.log for more details.
reboot一下就好了!
之后可以根据需要安装自己要的东西,比如firefox,可以直接yum装
但因为挂vagex好像不能用新版ff,我收藏了一个firefox 3.6旧版~
cd /opt ; wget https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/3.6/linux-i686/zh-CN/firefox-3.6.tar.bz2 ; tar jxvf firefox-3.6.tar.bz2 ; ln -s /opt/firefox/firefox /usr/bin/firefox