一款基于nodejs+jade模板开发的手机群控框架,你能够在此基础上拿来测试设备,或者群操做等等。
主要核心技术在于如何在不root的状况下实时流畅录屏,以及远程操做手机。html
官方git
https://github.com/openstf/stfnode
虚拟机:centos7
镜像源:yum阿里云镜像(http://mirrors.aliyun.com/)linux
前提是一件安装好了nodejs环境,而后执行简单的命令便可android
npm install -g stf
光安装软件是没法运行的,下面还要安装各类依赖。git
包括github
ADB+Android SDK去腾讯镜像下载
http://android-mirror.bugly.qq.com:8080/include/usage.html
用winscp复制下载文件到linux系统,我选择路径为/opt/
unzip或tar命令解压便可。
先解压sdk,生成android-sdk-linux目录,再把platform-tools_r24.0.3-linux移到目录里,解压
sql
设置环境变量
建立文件
cd /etc/profile.d
touch path.sh
vim path.sh
保存内容
export ANDROID_HOME=/opt//android-sdk-linux
export PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools
重启机器
adbshell
听说完美支持SSD的nosql
https://rethinkdb.com/docs/install/centos/npm
sudo wget http://download.rethinkdb.com/centos/7/`uname -m`/rethinkdb.repo \ -O /etc/yum.repos.d/rethinkdb.reposudo yum install rethinkdb
图片处理瑞士军刀
安装各类库
主要是下面三个,若是还想支持别的图片,自行yum
FreeType 2.0 –with-ttf=yes no (须要freetype支持)
JPEG v1 –with-jpeg=yes no (须要libjpeg支持)
PNG –with-png=yes no (须要libpng支持)
下载安装
http://www.graphicsmagick.org/download.htmljson
tar -xf GraphicsMagick-1.3.18.tar.gzcd GraphicsMagick-1.3.18#若是上面的库都是yes,no的不支持,想支持自行yum,就没有问题了./configure --prefix=/usr/local/GraphicsMagick --enable-sharedmake && make install#这些都是典型的使用GNU的AUTOCONF和AUTOMAKE产生的程序的安装步骤。#./configure是用来检测你的安装平台的目标特征的。好比它会检测你是否是有CC或GCC,并非须要CC或GCC,它是个shell脚本。configure,这一步通常用来#生成 Makefile,为下一步的编译作准备,你能够经过在 configure 后加上参数来对安装进行控制,好比代码:./configure –prefix=/usr 意思是将该软件安装在 /usr 下#面,执行文件就会安装在 /usr/bin (而不是默认的 /usr/local/bin),资源文件就会安装在 /usr/share(而不是默认的/usr/local/share)。同时一些软件的配置文件你#能够经过指定 –sys-config= 参数进行设定。有一些软件还能够加上 –with、–enable、–without、–disable 等等参数对编译加以控制,你能够经过容许 ./configure –#help 察看详细的说明帮助。#make是用来编译的,它从Makefile中读取指令,而后编译。#make install是用来安装的,它也从Makefile中读取指令,安装到指定的位置。
添加到环境变量
vim /etc/profile.d/path.sh#添加一行export PATH=$PATH:/usr/local/GraphicsMagick/bin
重启便可
gm
轻量级消息队列内核
有点大
http://zeromq.org/intro:get-the-software
git clone https://github.com/zeromq/libzmq./autogen.sh && ./configure && make -j 4make check && make install && sudo ldconfig
安装过程遇到一个test fail,我怀疑是官方搞错了,跳过check,直接安装吧
git貌似很差使,因此仍是下载安装包
To build on UNIX-like systems
If you have free choice, the most comfortable OS for developing with ZeroMQ is probably Ubuntu.
Make sure that libtool, pkg-config, build-essential, autoconf, and automake are installed.
Check whether uuid-dev package, uuid/e2fsprogs RPM or equivalent on your system is installed.
Unpack the .tar.gz source archive.
Run ./configure, followed by make.
To install ZeroMQ system-wide run sudo make install.
On Linux, run sudo ldconfig after installing ZeroMQ.
To see configuration options, run ./configure –help. Read INSTALL for more details.
安装完成后
Libraries have been installed in: /usr/local/libIf you ever happen to want to link against installed librariesin a given directory, LIBDIR, you must either use libtool, andspecify the full pathname of the library, or use the `-LLIBDIR'flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf'See any operating system documentation about shared libraries formore information, such as the ld(1) and ld.so(8) manual pages.
这是告诉你接下来要怎么用。简单的办法是在 /etc/ld.so.conf.d 下新建一个文件 local.conf,里边写上 /usr/local/lib。而后以 root 权限执行 ldconfig。这样你的系统才会找获得安装到 /usr/local/lib 下的库文件。
https://github.com/google/protobuf/releases
google的存储格式协议,相似json
wget https://github.com/google/protobuf/releases/download/v3.0.2/protobuf-cpp-3.0.2.tar.gztar -xvf./configuremake #编译时间很久make checksudo make installsudo ldconfig # refresh shared library cache.
protoc –version
Yasm是一个彻底重写的NASM汇编。目前,它支持x86和AMD64指令集,接受NASM和GNU汇编器(gas)语法,产出二进制, ELF32 , ELF64 , COFF , Mach - O的( 32和64 ) , RDOFF2 ,的Win32和Win64对象的格式,并生成STABS 调试信息的来源,DWARF 2 ,CodeView 8格式。
看到这用到汇编我就哭了
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gztar -xf yasm-1.3.0.tar.gz./configuremakemake install
rethinkdbstf local在浏览器中输入地址:http://localhost:7100/ 访问客户端。若是要远程调试,stf local --public-ip 192.168.153.129 --allow-remote有些包没安装报错 cd /usr/local/lib/node_modules/stf/npm install
各类运行报错,检查错误,而后修复便可
包括http://phantomjs.org/download.html
这个插件的安装,环境变量的添加
npm install jpeg-turbo