CentOS v7.x MythExpress RPM
Notes on building a RPM for MythExpress on CentOS 7.
Installation
Install the EPEL RPM repository
# rpm -Uvh http://mirror.xnet.co.nz/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
Install the mythexpress rpm:
# yum localinstall mythexpress-0.2015.03.28-1.el7.centos.x86_64.rpm
Enable and start the service:
# systemctl enable mythexpress ln -s '/usr/lib/systemd/system/mythexpress.service' '/etc/systemd/system/multi-user.target.wants/mythexpress.service' # systemctl start mythexpress
Links
- https://github.com/MythTV-Clients/MythExpress
- http://share.lucidsolutions.co.nz/pub/centos/mythexpress/
Node
- https://www.npmjs.com/package/systemd
- https://www.digitalocean.com/community/tutorials/how-to-deploy-node-js-applications-using-systemd-and-nginx
Appendices
yum localinstall
# yum localinstall mythexpress-0.2015.03.28-1.el7.centos.x86_64.rpm Loaded plugins: fastestmirror Examining mythexpress-0.2015.03.28-1.el7.centos.x86_64.rpm: mythexpress-0.2015.03.28-1.el7.centos.x86_64 Marking mythexpress-0.2015.03.28-1.el7.centos.x86_64.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package mythexpress.x86_64 0:0.2015.03.28-1.el7.centos will be installed --> Processing Dependency: nodejs for package: mythexpress-0.2015.03.28-1.el7.centos.x86_64 Loading mirror speeds from cached hostfile * base: mirror.xnet.co.nz * epel: ucmirror.canterbury.ac.nz * extras: mirror.xnet.co.nz * updates: mirror.xnet.co.nz --> Processing Dependency: libdns_sd.so.1()(64bit) for package: mythexpress-0.2015.03.28-1.el7.centos.x86_64 --> Running transaction check ---> Package avahi-compat-libdns_sd.x86_64 0:0.6.31-14.el7 will be installed ---> Package nodejs.x86_64 0:0.10.33-1.el7 will be installed --> Processing Dependency: v8(x86-64) < 1:3.15 for package: nodejs-0.10.33-1.el7.x86_64 --> Processing Dependency: v8(x86-64) >= 1:3.14.5.7 for package: nodejs-0.10.33-1.el7.x86_64 --> Processing Dependency: libv8.so.3()(64bit) for package: nodejs-0.10.33-1.el7.x86_64 --> Processing Dependency: libuv.so.0.10()(64bit) for package: nodejs-0.10.33-1.el7.x86_64 --> Processing Dependency: libhttp_parser.so.2()(64bit) for package: nodejs-0.10.33-1.el7.x86_64 --> Processing Dependency: libcares.so.2()(64bit) for package: nodejs-0.10.33-1.el7.x86_64 --> Running transaction check ---> Package c-ares.x86_64 0:1.10.0-3.el7 will be installed ---> Package http-parser.x86_64 0:2.0-4.20121128gitcd01361.el7 will be installed ---> Package libuv.x86_64 1:0.10.29-1.el7 will be installed ---> Package v8.x86_64 1:3.14.5.10-14.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ========================================================================================================= Package Arch Version Repository Size ========================================================================================================= Installing: mythexpress x86_64 0.2015.03.28-1.el7.centos /mythexpress-0.2015.03.28-1.el7.centos.x86_64 31 M Installing for dependencies: avahi-compat-libdns_sd x86_64 0.6.31-14.el7 base 33 k c-ares x86_64 1.10.0-3.el7 base 78 k http-parser x86_64 2.0-4.20121128gitcd01361.el7 epel 23 k libuv x86_64 1:0.10.29-1.el7 epel 60 k nodejs x86_64 0.10.33-1.el7 epel 388 k v8 x86_64 1:3.14.5.10-14.el7 epel 3.0 M Transaction Summary ========================================================================================================= Install 1 Package (+6 Dependent packages) Total size: 35 M Total download size: 3.6 M Installed size: 43 M
Status
# systemctl status -l mythexpress
mythexpress.service - MythExpress is a browser-based interface to MythTV’s HTTP streaming capability
Loaded: loaded (/usr/lib/systemd/system/mythexpress.service; enabled)
Active: active (running) since Sat 2015-04-04 14:12:05 NZDT; 1min 17s ago
Main PID: 10620 (node)
CGroup: /system.slice/mythexpress.service
└─10620 /bin/node /var/www/mythexpress/mythexpress.js --logfile /var/log/mythexpress/mythexpress.log
Apr 04 14:12:06 licorice.lucidsolutions.co.nz node[10620]: *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
Apr 04 14:12:06 licorice.lucidsolutions.co.nz node[10620]: *** WARNING *** Please fix your application to use the native API of Avahi!
Apr 04 14:12:06 licorice.lucidsolutions.co.nz node[10620]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
Apr 04 14:12:06 licorice.lucidsolutions.co.nz node[10620]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Apr 04 14:12:06 licorice.lucidsolutions.co.nz node[10620]: *** WARNING *** Please fix your application to use the native API of Avahi!
Apr 04 14:12:06 licorice.lucidsolutions.co.nz node[10620]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Apr 04 14:12:06 licorice.lucidsolutions.co.nz mythexpress[10620]: Sat, 04 Apr 2015 01:12:06 GMT express deprecated app.configure: Check app.get('env') in an if statement at var/www/mythexpress/mythexpress.js:38:5
Apr 04 14:12:07 licorice.lucidsolutions.co.nz mythexpress[10620]: Sat, 04 Apr 2015 01:12:06 GMT connect deprecated methodOverride: use method-override npm module instead at var/www/mythexpress/mythexpress.js:43:21
Apr 04 14:12:07 licorice.lucidsolutions.co.nz mythexpress[10620]: Sat, 04 Apr 2015 01:12:07 GMT express deprecated app.configure: Check app.get('env') in an if statement at var/www/mythexpress/mythexpress.js:47:5
Apr 04 14:12:07 licorice.lucidsolutions.co.nz mythexpress[10620]: Sat, 04 Apr 2015 01:12:07 GMT express deprecated app.configure: Check app.get('env') in an if statement at var/www/mythexpress/mythexpress.js:53:5