Skip navigation

SSH access

Port 22
Login root
Password 930920

Scripts

1. Set portals address, example beesmart server.

/ekioh/setBeesmartServerAddr.sh <portal address>

2. Application stop.

/ekioh/stopEkioh.sh

3. Run an update using usb device.

 /ekioh/updateViaUsb.sh <path to image file on usb drive>

4. enable autoupdate.

/ekioh/permitAutoUpdate.sh true

Disable autoupdate.

/ekioh/permitAutoUpdate.sh false

5. Set URL to file in library description.

/ekioh/setUpdatePortalUrl.sh <link to file update_list.txt>

After launch, if autoupdate if enabled, then file with update description will be downloaded. Example with content of this file.

[{"name":"0.2.16","url":"http://192.168.1.78:8080/imageupdate","type":"release","date":"Mon Dec 10 2013 11:19 GMT+0200","descr":"Release"}]

where:

  name - name;
  url - url of firmware version;
  type - type of release;
  date - time and date of image, timezone in GMT;
  descr - description;

Then from this list the newest image will be chosen (alfa versions won't be used) and if image date from list is younger that the existing one(on STB) the procedure of auto-update will start. If autoupdate will be turned off or there is no suitable image on the list, then STB will go to the portal loading page.

Application configuration

Application ekioh is using two config files:

/ekioh/ekioh.cfg - configuration file ekioh-engine.

/ekioh/infomir.cfg - application configuration file.

Log file on box

Logs can be turned on next way: Example:

# cat /ekioh/infomir.cfg
# enable general log. Default: false
global.log : true
 
# setup the log type. Default: cout
# cout   - use standart output
# syslog - use syslog
global.logtype : cout
 
# enable player log. To see player log you need to run 'syslogd -n -O /dev/stdout'
# Default: false
player.log : true

Way of extended logging using utility nc.

In script /web.sh you change start of ekioh

String

. ./run.sh > /dev/null 2>&1

replace to

./run.sh 2>&1 | nc [ip] [port]

Where ip and port is an address and port of Host-machine where log will be transfered. Before initialization of ekioh you need to run on host-machine server part of nc

nc -l [port]

Add netcat to send message to your main server with rsyslogd. To have the messages with prefix from each STB, there is a need to change default template in /etc/rsyslogd.conf

$template myFormat,"%timestamp:::date-rfc3339% %fromhost-ip% [%programname%]\9 %syslogseverity-text%\9: %msg%\n"
$ActionFileDefaultTemplate myFormat

This way all local messages will be prefixed with STBs IP.

Need Help

Dave is an expert on the MAG STB and the author of this article.

Was this article helpful?

Yes No

Sorry to hear that.
How can we improve this article?

We use cookies in order to optimise our website, provide you with the best possible user experience and help us promote our products. Please read our Cookie Policy to find out how we use cookies and how you can control cookies.
By using this website or closing this message, you acknowledge our Privacy Policy and agree to our use of cookies as described in our Cookie Policy.