Posted on 2013-08-15 01:01
H2O 閱讀(939)
評論(0) 編輯 收藏 所屬分類:
那一天o 0 O
由于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.更新下系統
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 -y groupinstall chinese-support #防止中文亂碼
5.配置vnc
vi /etc/sysconfig/vncservers
shift+g 移到最后插入下面的代碼
VNCSERVERS="1:root" VNCSERVERARGS[1]="-geometry 800x600"
6.設置vnc密碼,輸入兩次。
7.啟動vnc,創建vnc文件
8.編輯vnc配置文件
插入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插件
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 強大的話,多開幾個也沒有問題的。
本文為轉載,僅為保留連接有效 感謝原文作者 原文鏈接:http://blog.firetry.com/htmls/319.html