Installation Hardkernel ODROID - trakt/Plex-Trakt-Scrobbler GitHub Wiki

Table of Contents:

This guide has been derived from third-party sources (forum threads, other guides, etc..), so might have errors or missing information. If you find any problems with this guide please open an issue here.

Installation

This installation guide is written for Ubuntu, if you are using a different operating system the guides listed on the Installation page specific to your operating system may be more helpful.

Install: Unsupported AppStore (v2)

  1. Download the latest release of the WebTools plugin from here

  2. Extract the downloaded ZIP archive

    unzip WebTools.bundle.zip
  3. Copy the WebTools.bundle folder to the Plug-ins folder on your system:

    sudo cp -r WebTools.bundle "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/"
  4. Restart Plex Media Server

    • SysVinit

      sudo /etc/init.d/plexmediaserver restart
    • Systemd

      sudo systemctl restart plexmediaserver
    • Upstart

      sudo initctl restart plexmediaserver
  5. Open the WebTools interface at http://<System IP>:33400 or http://<System IP>:33443 and login with your Plex.tv account

  6. Open the "Unsupported AppStore" module:

  7. Find the "Trakt.tv" plugin listed under "Application", and click "Install":

  8. The "Trakt.tv" plugin should appear at Plex/Web -> Channels in about one minute. (but can vary depending on the speed of your system)

    If the plugin doesn't appear after waiting a few minutes: the plugin may not be installed correctly, or has crashed on startup. Please post an issue here with the latest plugin log file for support.

  9. Configure the plugin by clicking on the plugin settings button at Plex/Web -> Channels:

Install: Manual

  1. Download the latest release of the Trakt.tv plugin

    • Stable (recommended)

      wget https://github.com/trakt/Plex-Trakt-Scrobbler/archive/master.zip -O Plex-Trakt-Scrobbler.zip
    • Beta

      wget https://github.com/trakt/Plex-Trakt-Scrobbler/archive/beta.zip -O Plex-Trakt-Scrobbler.zip
    • Development

      wget https://github.com/trakt/Plex-Trakt-Scrobbler/archive/develop.zip -O Plex-Trakt-Scrobbler.zip
  2. Extract the downloaded ZIP archive

    unzip Plex-Trakt-Scrobbler.zip
  3. Copy the Trakttv.bundle folder to the Plug-ins folder on your system:

    sudo cp -r Plex-Trakt-Scrobbler-*/Trakttv.bundle "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/"
  4. Restart Plex Media Server

    • SysVinit

      sudo /etc/init.d/plexmediaserver restart
    • Systemd

      sudo systemctl restart plexmediaserver
    • Upstart

      sudo initctl restart plexmediaserver
  5. The "Trakt.tv" plugin should appear at Plex/Web -> Channels in about one minute. (but can vary depending on the speed of your system)

    If the plugin doesn't appear after waiting a few minutes: the plugin may not be installed correctly, or has crashed on startup. Please post an issue here with the latest plugin log file for support.

  6. Configure the plugin by clicking on the plugin settings button at Plex/Web -> Channels:

Fixes

Fix: Permissions

Copying the plugin into the Plug-ins folder may result in incorrect permissions on the Trakttv.bundle folder, permissions can be fixed with the following steps:

  1. Determine the user + group which has ownership of Plex Media Server:

    stat --format '%U:%G' "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server"
  2. Update ownership of the Trakttv.bundle folder

    sudo chown -R plex:plex "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Trakttv.bundle"

    (Replace plex:plex with the output from step 1)

  3. Update permissions on the Trakttv.bundle folder

    sudo chmod -R 770 "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Trakttv.bundle"

Fix: Synology DSM CPU Type

The plugin may require the cpu_type to be manually set to marvell-pj4 if you are running Synology DSM on an ODROID device:

  1. Navigate to the following directory (either via SSH, or other means):

    /volume1/Plex/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.trakttv
    
  2. Create the advanced.ini file inside this directory with the following contents:

    [libraries]
    cpu_type = marvell-pj4
    

Fix Error: failed to map segment from shared object: Operation not permitted

This error occurs when the plugin is installed on a mount point with the noexec flag set, one of the workarounds below should resolve this issue.

Workaround One

  1. Create a new libraries cache directory on your system drive (can be located anywhere on the drive)

    sudo mkdir -p "/var/lib/tfp/libraries"
  2. Update ownership (to the user running Plex Media Server)

    sudo chown plex:plex "/var/lib/tfp/libraries"
  3. Update permissions

    sudo chmod -R 770 "/var/lib/tfp/libraries"
  4. Navigate to the following directory (either via SSH, or other means):

    /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.trakttv
    
  5. Create the advanced.ini file inside this directory with the following contents:

    [libraries]
    cache_path = /var/lib/tfp/libraries
    
  6. Restart Plex Media Server

    sudo /etc/init.d/plexmediaserver restart

Workaround Two

  1. Create a new native libraries directory on your system drive (can be located anywhere on the drive)

    sudo mkdir -p "/var/lib/tfp/libraries"
  2. Copy native libraries into the directory for your system:

    sudo cp -r "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Trakttv.bundle/Contents/Libraries/Linux" "/var/lib/tfp/libraries/"
  3. Ensure native libraries have the "execute" permission set:

    sudo find "/var/lib/tfp/libraries" -name "*.so" -exec chmod +x {} \;
  4. Navigate to the following directory (either via SSH, or other means):

    /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.trakttv
    
  5. Create the advanced.ini file inside this directory with the following contents:

    [libraries]
    libraries_path = /var/lib/tfp/libraries
    
  6. Restart Plex Media Server

    sudo /etc/init.d/plexmediaserver restart
⚠️ **GitHub.com Fallback** ⚠️