寻觅生命中的那一片浅草......

文章属于类别 移动

通过浏览器管理多台Android设备

相关介绍

软件安装

基础环境

zypper -n in make gcc gcc-c++ protobuf-devel ncurses-devel \
           jemalloc-devel boost-devel tar wget m4 which \
           openssl-devel libcurl-devel automake autoconf \
           libtool libicu-devel git libsodium-devel

node-v4.1.0-linux-x64

直接下载二进制文件

# 安装
tar xf /dist/dist/stf/node-v4.1.0-linux-x64.tar.gz
mv node-v4.1.0 node
ln -s /usr/local/node/bin/* /usr/bin/

android-sdk_r24.3.4-linux

现在的sdk包已经不包含adb这个命令,需要额外安装

# 下载链接
wget http://dl.google.com/android/android-sdk_r24.3.4-linux.tgz
# 软件包解压缩到/usr/local
# 列出所有sdk
./android list sdk --all
# 安装指定版本的sdk,其中2,3位上面指令输出的sdk编码
./android update sdk -u -a -t 2,3

protobuf_v2.5.0

先git下来,再切换到tags为v2.5.0的版本, 这里好像会依赖于gtest,这文件在墙外,如果不具备翻墙环境,会比较麻烦

git clone https://github.com/google/protobuf.git
cd protobuf
git checkout v2.5.0
./configure && make && make install

rethinkdb-2.1.4

tar xf rethinkdb-2.1.4.tgz
cd rethinkdb-2.1.4
./configure -dymanic jemalloc —prefix=/usr/local/rethinkdb
make && make install
mkdir -p /etc/rethinkdb/instances.d/
/bin/cp packaging/assets/config/default.conf.sample /etc/rethinkdb/
/bin/cp packaging/assets/config/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf
sed -i 's/# bind=127.0.0.1/bind=127.0.0.1/' /etc/rethinkdb/instances.d/instance1.conf
chown -R rethinkdb.rethinkdb /var/run/rethinkdb
ln -s /usr/local/rethinkdb/bin/rethinkdb /usr/bin/

GraphicsMagick-1.3.21

tar xf GraphicsMagick-1.3.21.tar.gz
cd GraphicsMagick-1.3.21
./configure && make && make install

zeromq-4.1.3

tar xf zeromq-4.1.3.tar.gz
cd zeromq-4.1.3
./configure && make && make install

stf安装

看起来很简单,但好像会依赖大量第三方包,而我们的墙。。。

npm install -g stf

其他辅助

/etc/init.d/rethinkdb

见链接

rethinkdb

进程管理:supervisor

安装

pip install supervisor

/etc/init.d/supervisord

见链接

opensuse-garymonson

supervisord.conf

[unix_http_server]
file=/tmp/supervisor.sock

[supervisord]
logfile=/data/logs/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB        ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10           ; (num of main logfile rotation backups;default 10)
loglevel=info                ; (log level;default info; others: debug,warn,trace)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false               ; (start in foreground if true;default false)
minfds=65535                  ; (min. avail startup file descriptors;default 1024)
minprocs=200                 ; (min. avail process descriptors;default 200)

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///tmp/supervisor.sock

[program:stf]
command = /usr/bin/stf local --public-ip 192.168.xx.xx 
numprocs = 1
autostart = true
autorestart = true
redirect_stderr = true
stdout_logfile=/data/logs/stf.log
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=5
stdout_capture_maxbytes=10MB
stderr_logfile=/data/logs/stf_error.log
stderr_logfile_maxbytes=50MB
stderr_logfile_backups=5
stderr_capture_maxbytes=10MB
2018年七月
« 2月    
 1
2345678
9101112131415
16171819202122
23242526272829
3031