ypvps.com
centos 32位 64位 下挂vagex一键包代码
32位:
#!/bin/bash
yum -y install vnc-server
vncserver
pkill -9 vnc
yum -y groupinstall xfce-4.4
yum -y install curl firefox
wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.1.102.55/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/
echo 'VNCSERVERS="1:root"' >> /etc/sysconfig/vncservers
echo 'VNCSERVERARGS[1]="-geometry 1024x768"' >> /etc/sysconfig/vncservers
/etc/init.d/vncserver restart
cat >/root/.vnc/xstartup <<EOF
#!/bin/sh
/usr/bin/startxfce4
EOF
/etc/init.d/vncserver restart
chmod +x ~/.vnc/xstartup
chkconfig vncserver on
wget https://addons.mozilla.org/firefox/downloads/file/151606/vagex_firefox_add_on-1.4.1-fx+fn+sm+an.xpi
Magnificent beat ! I wish to apprentice whilst you amend your website, how
can i subscribe for a weblog web site? The account helped me a acceptable deal.
I had been a little bit acquainted of this your broadcast provided bright
transparent idea https://steepster.com/Jimgriffin
http://mirrors.ustc.edu.cn/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
为centos6增加xfce4
/etc/resolv.conf添加如:nameserver 8.8.8.8
修改dns
yum install gnome-terminal -y
d .vnc/xstartxp 文件中 加行
gnome-terminal
CentOS32bit+FluxBox桌面+VNC+transmission一键安装包
#!/bin/bash
yum -y install vnc-server
yum -y install yum-priorities
/usr/bin/wget -P /etc/yum.repos.d/ -c http://www.chenguiwen.com/CentOS-Base.repo
cd
/usr/bin/wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
rpm -import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
rpm -K /root/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
rpm -i /root/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
echo "priority=11" >> /etc/yum.repos.d/rpmforge.repo
yum -y install firefox x11-xorg
yum -y install fluxbox
yum -y install yum-priorities
echo 'VNCSERVERS="0:root"' >> /etc/sysconfig/vncservers
echo 'VNCSERVERARGS[0]="-geometry 1366x768"' >> /etc/sysconfig/vncservers
/etc/init.d/vncserver restart
cat >/root/.vnc/xstartup <<EOF
#!/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 &
#gnome-session &
exec /usr/bin/fluxbox
EOF
/etc/init.d/vncserver restart
cd /etc/yum.repos.d/
wget http://geekery.altervista.org/geekery-el5.repo
cd /root
yum install -y transmission*
chkconfig vncserver on
centos的官方yum源里的firefox的版本升级都了10.01,以至于使用yum方式安装的firefox装不上flash插件。
所以在原有的教程上做一下修订。
这次修订,尽量做到内存最小占用,打造专用挂vagex的VPS。
所以要先清理下系统,如果你的VPS有做其他用途,那么这个命令请不要执行。
yum remove portmap* httpd* bind9* samba* nscd* sendmail*更新系统
yum update安装xfce-4.4
yum groupinstall xfce-4.4安装vnc-server
yum install vnc-server编辑vncserver配置文件
vi /etc/sysconfig/vncservers把下面的内容复制到打开文件的最后
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 800x600"退出保存即可
设置vnc的密码
vncpasswd两次输入密码即可
启动vncserverr
vncserver编辑随xstartup使vnc启动的时候启动xfce
vi /root/.vnc/xstartup删除原配置文件中的所有,填入下面的内容
#!/bin/sh
/usr/bin/startxfce4给配置文件添加权限
chmod +x ~/.vnc/xstartup添加vncserver为开机启动
chkconfig vncserver on添加计划任务,是的VPS每三小时一重启并删除log文件释放内存和硬盘,防假死
vi /var/spool/cron/root复制下面的内容添加进去
00 00 * * * rm -rf /root/.vnc/*.log
01 00 * * * reboot
00 03 * * * rm -rf /root/.vnc/*.log
01 03 * * * reboot
00 06 * * * rm -rf /root/.vnc/*.log
01 06 * * * reboot
00 09 * * * rm -rf /root/.vnc/*.log
01 09 * * * reboot
00 12 * * * rm -rf /root/.vnc/*.log
01 12 * * * reboot
00 15 * * * rm -rf /root/.vnc/*.log
01 15 * * * reboot
00 18 * * * rm -rf /root/.vnc/*.log
01 18 * * * reboot接下来开始安装firefox
下载firefox 3.6.28
wget http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.6.28/linux-i686/en-US/firefox-3.6.28.tar.bz2解压文件
bzip2 -d firefox-3.6.28.tar.bz2
tar -xvf firefox-3.6.28.tar下载flash插件
wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.1.102.55/install_flash_player_11_linux.i386.tar.gz
wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.1.102.55/install_flash_player_11_linux.i386.tar.gz
解压flash插件
tar zxvf install_flash_player_11_linux.i386.tar.gz创建firefox的插件文件夹
mkdir -p ~/.mozilla/plugins/复制flash插件到firefox的插件文件件
cp libflashplayer.so ~/.mozilla/plugins/下载vagex插件
wget https://addons.mozilla.org/firefox/downloads/file/143311/vagex_firefox_add_on-1.1.8-fx.xpi重启系统
reboot
然后通过vncserver登陆,通过图形化界面配置firefox。
当点击xfce桌面最下方的浏览器的时候会提示选择使用什么浏览器
此时点击选项框,选择下拉菜单里面的other
然后在name后面添上firefox
在command后面添上/root/firefox/firefox
确定即可。
Linux下64位的Firefox、Opera浏览器安装Flash插件
Linux下,64位的Firefox、Opera等浏览器默认搜索到的Flash插件是32位的,安装之后也不能正常工作。
需要手工安装一下。
1.下载插件
使用浏览器下载:
到Adobe的站点上下载64位的Flash插件: http://labs.adobe.com/downloads/flashplayer10_square.html
插件下载地址:
http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_2_p3_64bit_linux_111710.tar.gz
使用wget命令下载:
wget http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_2_p3_64bit_linux_111710.tar.gz
2.安装
解压下载的压缩文件
tar -zxf flashplayer10_2_p3_64bit_linux_111710.tar.gz
移动解压 得到的 libflashplayer.so 文件到64位浏览器的插件目录(需要root权限,注意应复制到64位的目录中)
su root
mv libflashplayer.so /usr/lib64/mozilla/plugins/libflashplayer.so
使用Opera的浏览器将上个命令改成如下即可:
mv libflashplayer.so /usr/lib64/opera/plugins/libflashplayer.so
3. 重启浏览器
重新启动浏览器,就能正常显示网页中的Flash了