MediaProvider.net

Installation guide

The MediaProvider platform is based on Python. Following behind is a list of required and optional requirements and a generic as well as platform specific installation description.

System requirements

  • 650 Mhz processor (1 Ghz or faster is recommended)
  • 256 MB memory
  • 100 MB disk space (exclusively for software installation)

Installation requirements

  • Python 2.7 or 3.*
  • SQLAlchemy 0.8 or newer

Optional installation components

  • CherryPy or Waitress WSGI server
  • PyInotify for Linux
  • GStreamer framework 1.0 or newer
  • Python interface for the GStreamer framework (GObject-Introspection)

Generic guide

  • Download the installation package.
  • Extract the package into a directory of your choice.
  • Customize the configuration in "data/settings" based on the following configuration guide.
  • Run the following command in the "src" directory:python pas_db_tool.py --applySchema -s
  • Run the MediaProvider server:python mp.py

Guide for Linux based systems

  • Install the dependent packages. The package names may differ based on your distribution.python
    python-cherrypy (oder python-waitress)
    python-sqlalchemy
    python-gobject
    python-pyinotify
  • For a system wide installation you may choose a directory like "/opt/pas".

Guide for Windows based systems

  • Install Python 3 using the MSI package from python.org. Activate the features "Utility Scripts" and "Add python.exe to Path".
  • In the Python installation directory under "Scripts" you will find the "pip.exe" application. Using the command line you can install SQLAlchemy and CherryPy.Scripts\pip.exe install sqlalchemy
    Scripts\pip.exe install cherrypy

Configuration guide

Three configuration files are relevant. "pas_database.json" contains information for the database to be used. "pas_http.json" configures the HTTP and "pas_upnp.json" configures the UPnP server.
  • To use PostgreSQL for the MediaProvider software you must provide the URL. With this change you can set "pas_database_threaded" to "true" or comment it out. These settings must be done before running the "DbTool".
  • If you encounter problems with the HTTP- and / or UPnP server you may set some configuration values like the listener address and port. This can be done in "pas_upnp.json".

Veröffentlicht am von NotTheEvilOne.