This is an old revision of the document!
TVIP Middleware require Ubuntu 14.04.x (LTS) OS
The requirements for hardware depend on the total number of client’s applications (STB and SmartOS apps) and the interval of set-top boxes polling. For example, 2x Intel XEON E5440, 8Gb process about 8000 units with a 20-minute polling interval.
PostgreSql uses the system locale when creating cluster, the locale should support UTF-8 for database correct operation.
Checking the OS local
cat /etc/default/locale
The example of correct output in Russian Locale
# File generated by update-locale LANG=ru_RU.UTF-8
If UTF-8 suffix is not contained in the LANG value – the correct locale should be installed. Example of Russian locale with UTF-8 support To be run from the account root:
Run as root:
locale-gen ru_RU locale-gen ru_RU.UTF-8 update-locale update-locale LANG=ru_RU.UTF-8
To be run from the fresh installed UBUNTU 16.04:
Run as root:
wget -O - http://deb.packages.tvip.ru/deploy/install-tvip-middleware.sh | sh
To be run from root:
#make file where we save paths to repositories touch /etc/apt/sources.list.d/tvip-middleware.list #add main repo echo "deb http://deb.packages.tvip.ru/ trusty main" > /etc/apt/sources.list.d/tvip-middleware.list #add key to OS wget --quiet -O - http://deb.packages.tvip.ru/deploy/key.asc | apt-key add - #update package information apt-get update #install TMS apt-get install -y tvip-middleware
cat /usr/local/etc/tvipmw.yml
parameters: database_host: 127.0.0.1 database_port: 5432 memcached_servers: [ {host: 127.0.0.1, port: 11211} ] database_name: tvip_middleware database_user: tvip_middleware database_password: <password> locale: en
For English and Russian language locale may be set as en or ru in admin interface, by default - en. After a configuration file is changed - cache of application should be flushed.
Run as root:
/opt/tvipmw/app/console cache:clear
Admin interface located at:
http://<host>/admin
Default login is admin and password is admin; at first entry, it is recommended to add personal accounts and disable user access to admin.
apt-get update apt-get install tvip-middleware