记录我的一些生活写照、无聊的牢骚、内心世界的活动 注册 | 登陆

128M centosVPS挂vagex

128M centosVPS挂vagex

yum -y update
yum -y install tigervnc
yum -y install tigervnc-server
wget http://download.Fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
rpm -ivh epel-release-6-7.noarch.rpm
yum search xfce
yum groupinfo xfce
yum groupinstall xfce
yum -y groupinstall chinese-support
yum -y install firefox
wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.238/install_flash_player_11_linux.i386.tar.gz
tar zxvf install_flash_player_11_linux.i386.tar.gz
mkdir -p ~/.mozilla/plugins/
cp libflashplayer.so ~/.mozilla/plugins/
vncserver
vim /etc/sysconfig/vncservers
在最后添加添加
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 800x600 "
service vncserver restart
VNC地址 ip:1
vi /root/.vnc/xstartup
删除全部,加入
#!/bin/sh#
Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
startxfce4 &
执行
service vncserver restart

« 上一篇 | 下一篇 »

发表评论

评论内容 (必填):