02-20-2018, 09:18 AM
Hi there,
I just installed Gekko on my Asustor AS3204T manually over SSH according to the instructions and obviously it worked.
However third party apps are not really natively supported and i must admit i have no idea what im doing. The web interface worked until i closed Putty (where i logged in with the admin credentials).
There is some point where i have to tell my server to run Gekko and keep it running and open the port. There are several official apps with web interface that work like a charm (also with https support). Those apps come packed in an installer.
I figure it is fairly easy if you know what you're doing.
Could you please have a quick look at the developer guide if you can make sense of it and point me in the right direction:
http://developer.asustor.com/document/App_Central_Developer_Guide_2.6.0_0224.pdf
There is one folder named "CONTROL" see 3.1.1, i believe the necessary files are config.json and start-stop.sh
Here is an example config.json from KODI:
And the start/stop.sh:
You can find the package here:
https://www.asustor.com/en/app_central/a...=284&type=
Please help!
I just installed Gekko on my Asustor AS3204T manually over SSH according to the instructions and obviously it worked.
However third party apps are not really natively supported and i must admit i have no idea what im doing. The web interface worked until i closed Putty (where i logged in with the admin credentials).
There is some point where i have to tell my server to run Gekko and keep it running and open the port. There are several official apps with web interface that work like a charm (also with https support). Those apps come packed in an installer.
I figure it is fairly easy if you know what you're doing.
Could you please have a quick look at the developer guide if you can make sense of it and point me in the right direction:
http://developer.asustor.com/document/App_Central_Developer_Guide_2.6.0_0224.pdf
There is one folder named "CONTROL" see 3.1.1, i believe the necessary files are config.json and start-stop.sh
Here is an example config.json from KODI:
Code:
{
"general":{
"package":"kodi",
"name":"KODI",
"version":"17.6.0.R1",
"depends":[
"xorg(>=10.14.7.R30)",
"remote-center(>=1.0.0.r142)",
"asportal(>=2.0.3.r1227)"
],
"conflicts":[],
"developer":"Team KODI",
"maintainer":"ASUSTOR",
"email":"support@asustor.com",
"website":"http://kodi.tv/",
"architecture":"x86-64",
"firmware":"2.7.0",
"model":[
"50xx",
"51xx",
"70xx",
"61xx",
"62xx",
"63xx",
"64xx",
"31xx",
"32xx"
]
},
"adm-desktop":{
"app":{
"type":"internal",
"js":[
"kodi.js"
],
"module":"AS.ARC.apps.kodi.main",
"langTag":"KODI"
},
"privilege":{
"accessible":"administrators",
"customizable":true
}
},
"register":{
"boot-priority":{
"start-order":85,
"stop-order":15
},
"port":[88, 36667],
"prerequisites":{
"enable-service":[],
"restart-service":[]
}
}
}
And the start/stop.sh:
Code:
PKG_PATH=/usr/local/AppCentral/kodi
ASPORTAL_PATH=/usr/local/AppCentral/asportal
ASPORTAL_STAT=`apkg --info-installed asportal | grep 'Enabled:' | awk '{print $2}'`
rcP=/usr/local/etc/init.d/P80kodi
NAME=kodi
RUN_KODI=$PKG_PATH/run_kodi.sh
[ -x $RUN_KODI ] || exit 0
. /lib/lsb/init-functions
start_daemon () {
[ -e "$rcP" ] || ln -s $PKG_PATH/CONTROL/start-stop.sh $rcP
sed -i 's/\"show\":\".*\"/\"show\":\"true\"/g' $PKG_PATH/asportal/kodi.json
if [ -e "$ASPORTAL_PATH" ] && [ "Yes" == "$ASPORTAL_STAT" ]; then
$ASPORTAL_PATH/CONTROL/start-stop.sh reload &
fi
}
stop_daemon () {
[ "`pidof kodi.bin`" ] && killall kodi.bin
[ -e "$rcP" ] && rm -rf $rcP
sed -i 's/\"show\":\".*\"/\"show\":\"false\"/g' $PKG_PATH/asportal/kodi.json
if [ -e "$ASPORTAL_PATH" ] && [ "Yes" == "$ASPORTAL_STAT" ]; then
$ASPORTAL_PATH/CONTROL/start-stop.sh reload &
fi
}
suspend_daemon() {
echo "suspend KODI"
}
resume_daemon() {
echo "resume KODI"
}
case "$1" in
start)
log_daemon_msg "Starting daemon" "$NAME"
start_daemon
log_end_msg 0
;;
stop)
log_daemon_msg "Stopping daemon" "$NAME"
stop_daemon
log_end_msg 0
;;
reload)
log_daemon_msg "Reloading daemon" "$NAME"
if [ "`pidof kodi.bin`" ];then
stop_daemon
fi
start_daemon
log_end_msg 0
;;
suspend)
suspend_daemon
;;
resume)
resume_daemon
;;
restart|force-reload)
log_daemon_msg "Restarting daemon" "$NAME"
if [ "`pidof kodi.bin`" ]; then
stop_daemon
fi
start_daemon
log_end_msg 0
;;
debug)
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|reload|force-reload|restart}"
exit 2
;;
esac
if [ "$1" != "debug" ] ; then
exit 0
fi
You can find the package here:
https://www.asustor.com/en/app_central/a...=284&type=
Please help!