Setup HomeCenter server on a host, the end user is only required to downalod mobile app and login with account.
- enable parameter isNonUIServer
- intall Xvfb
do following on your PC, not on host : download, unzip HomeCenter server, run it and setup account and configure, shutdown server.
upload all files to host. Note : please add permission of write and execute for folder.
add "isNonUIServer=true" to the end of hc_config.properties.
run "yum install -y Xvfb" on CentOS to install Xvfb.
create script file "hcNoUI.sh", add following content to it and add executable permission for it.
#!/bin/bash
BASE_PATH=`dirname $0`
cd $BASE_PATH
xvfb-run --auto-servernum --server-args="-screen 0 1280x760x24" java -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -cp hc.jar:hc_thirds.jar hc.App &
open "/etc/rc.d/rc.local", add path of "hcNoUI.sh" to execute it when power on.
open "starter.properties" to see current version of server.
open "http://homecenter.mobi/starter/go.php" to see the new version or not.
if there is a new version, kill hcNoUI.sh(Note : please use "kill -15", not "kill -9"), upload new version jar and execute hcNoUI.sh.
Attribution-NonCommercial 4.0 for more, http://creativecommons.org/licenses/by-nc/4.0/