2013年2月11日星期一

开启WINDOWS XP的任务计划服务



今天准备运行个自动采集程序,可是遇到了:任务计划无法启动,提示代码:0X80041315

原来是xp默认没有开启“Task Scheduler”这个服务

在运行中键入“services.msc”,查看“Task Scheduler”服务是否被设置成了“已禁用”,若是,只要双击它将启动类型改为“自动”,重新设定一个计划任务就可以执行了。

winxp定时关闭firefox并随之自动启动firefox批处理文件


 taskkill /f /im firefox.exe
c:\firefox\firefox.exe

用文本文件保存为firefox.bat,设置计划任务,定时运行。

entos6 挂vagex及多开教程




由于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 强大的话,多开几个也没有问题的。