Recent projects related to the need for more equipment batch management, found a tool that can be used in batch to a large number of devices web-side management, tools home: https://openstf.github.io/
Tool Name STF (Smartphone Test Farm)
STF (or Smartphone Test Farm) is a Web application for debugging smartphones, smartwatches and other gadgets remotely, fro M the comfort of your browser.
On the last page:
Its github page is: HTTPS://GITHUB.COM/OPENSTF/STF
Below is a simple record of the steps to build it on Ubuntu (Windows has not tried and should be similar)
Environment: Ubuntu15.04 (Desktop-64bit)
Browser: Firefox
1, Linux some basic package installation:
Run separately on the console
sudo apt-get updatesudo apt-get install gitsudo apt-get install lib32stdc++6sudo apt-get install Yum
2. Installation of SDK Environment
Here I stole a lazy straight copy of the downloaded JDK and Android SDK Environment, of course, if not the students are expected to slowly re-download and install.
To copy the SDK directory to your home directory, open the console command to run:
sudo gedit ~/.BASHRC
Configure environment variables and save exit (Wang is the user name and needs to be filled in according to the actual path)
Export Java_home=/home/wang/sdk/jdk1.8.0_45export path= $JAVA _home/bin: $PATHexport classpath=.: $JAVA _home/lib/ Dt.jar: $JAVA _home/lib/tools.jar export android_home=/home/wang/sdk/android-sdk-linuxexport PATH= $ANDROID _home/ Tools: $ANDROID _home/platform-tools: $PATH
Execute the command in the console to make it effective:
SOURCE ~/.BASHRC
Verify: The console enters ADB and java-version separately to verify that the SDK is configured to take effect
3, Nodejs installation
In https://nodejs.org/download/
Download the Nodejs installation package, unzip the console and enter the directory
Run the following command
./configuremakesudo make Installsudo ln-s/usr/local/bin/node/usr/bin/nodesudo ln-s/usr/local/bin/npm/usr/bin/npm
Verify: the console inputs node-v and npm-v separately to verify that the configuration is complete
4, Installation Bower
Console executes NPM command for Bower installation and waits for completion
sudo npm install bower-g
Verify:
5, Installation RETHINKBD
Console execution
[Java]View Plaincopy
- Source/etc/lsb-release && echo "Deb Http://download.rethinkdb.com/apt $DISTRIB _codename main" | sudo tee/et C/apt/sources.list.d/rethinkdb.list
- Wget-qo-http://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add-
- Note: The above is a command that needs to be executed together
- sudo apt-get update
- sudo apt-get install RETHINKDB
Verify:
6, installation GraphicsMagick
Latest Version Package address: http://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/
Unzip the graphicsmagick-1.3.21.tar.gz and console into the directory
Perform
./configuremakesudo Make Install
Verify:
7, Installation Libsodium (ZEROMQ dependence)
GitHub Download Latest Package: Https://github.com/jedisct1/libsodium/releases
Unzip the libsodium-1.0.3.tar.gz and console into the directory
Perform
./configuremakesudo Make Install
Verify:
8, installation Zeromq
Latest Version Package address: http://download.zeromq.org/
Unzip the zeromq-4.1.2.tar.gz and console into the directory
Perform
./configuremakesudo Make Installsudo Ldconfig
9, installation Protobuf
GitHub Download Latest Package: Https://github.com/google/protobuf/releases
Unzip the protobuf-cpp-3.0.0-alpha-3.tar.gz and console into the directory
Perform
Because environment variables need to be configured, parameters are specified in the specified directory under Local./configure--prefix=/usr/local/protobufmakesudo make Install
To modify an environment variable configuration file:
sudo gedit ~/.BASHRC
Configure environment variables and save exits:
Export path= $PATH:/usr/local/protobuf/bin/export pkg_config_path=/usr/local/protobuf/lib/pkgconfig/
Execute the command in the console to make it effective:
SOURCE ~/.BASHRC
Verify:
10, installation Pkg-config
sudo apt-get install Pkg-config
Verify:
11. Install STF (may require FQ or VPN)
Console execution Command:
sudo npm install-g STF
Installation process:
STF run one, start RETHINKDB
After the installation is complete, open a separate console and run the command to wait for the service to start to complete:
Rethinkdb
Second, start the STF server
Open a separate console and run the command to wait for the service to start to complete:
STF Local
Note: I've added a parameter--allow-remote to allow remote debugging devices to connect
Third, run the client
Enter the address in the browser: http://localhost:7100/access client.
Enter your username and email login to start using.
Then you can directly control the connected devices on the page, according to the official statement, you can control more than devices. Of course, there should be a good hub or wireless environment.
Let's explore the rest later.
WEB-side Bulk mobile device management control tools STF environment construction and operation