centos6 挂vagex及多开教程

admin
2012-10-17 / 0 评论 / 329 阅读 / 正在检测是否收录...

由于centos5 去除了xfce的组安装,使用yum install xfce* 安装后问题多多,不知道是不是源的问题。而且貌似centos6 挂vagex 更稳定些。

特别提醒:本教程适用于 centos6 32 位

本教程参考:http://sunsea.im/centos-install-firefox-flash-vagex.html 感谢原作者。

1.清理无用的程序,如果你vps还有其他用途,请忽略

yum remove portmap* httpd* bind9* samba* nscd* sendmail* -y


2.更新下系统

yum update -y


3.安装xfce

wget http://blog.firetry.com/soft/epel-release-6-7.noarch.rpm
rpm -ivh epel-release-6-7.noarch.rpm 
yum search xfce 
yum groupinstall xfce 

4.安装vnc

yum install  tigervnc-server -y 
#防止方块字
yum install fontforge -y 


5.配置vnc

vi /etc/sysconfig/vncservers


shift+g 移到最后插入下面的代码

VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 800x600"


6.设置vnc密码,输入两次。

vncpasswd


7.启动vnc,创建vnc文件

vncserver


8.编辑vnc配置文件

vi /root/.vnc/xstartup


插入xfce启动代码,替换文件开头部分就行了

#!/bin/sh
/usr/bin/startxfce4

9.设置vnc自动启动

chmod +x ~/.vnc/xstartup
chkconfig vncserver on


10.安装firefox 。感谢www.8shop.org 提供下载

wget http://www.8shop.org/firefox-3.6.28.tar.bz2
bzip2 -d firefox-3.6.28.tar.bz2
tar -xvf firefox-3.6.28.tar

11.安装flash插件

wget http://blog.firetry.com/soft/libflashplayer.so
mkdir
-p ~/.mozilla/plugins/ cp libflashplayer.so ~/.mozilla/plugins/


12.下载vagex 插件,youtube优化插件

wget http://vagex-debian.googlecode.com/files/vagex_firefox_add_on-1.1.8-fx.xpi
wget http://vagex-debian.googlecode.com/files/youtube_video_quality_manager-1.2-fx.xpi

13.reboot 下就行了。

14.ip:5901 登陆vnc。启动firefox ,安装插件

补充部分。多开教程

1.ssh 代理 。在终端运行下边的命令,xxxx 是你的ip

ssh -qTfnN -D 7070  username@x.x.x.x

输入yes,输入密码。

2.在vnc 里点右键 applications –》run program

输入

/root/firefox/firefox -profilemanager -no-remote

在打开的firefox窗口中创建新的profile

安装foxyproxy插件,设置*://vagex.com/* 经过代理访问

安装插件,ok ,就可以双开了,如果你vps 强大的话,多开几个也没有问题的。

0

评论 (0)

取消