Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #500
    dpreviti
    Participant

    Has anyone gotten plex running? This guide:
    http://wiki.espressobin.net/tiki-index.php?page=Run+PLEX+Media+Server+on+ESPRESSObin

    doesn’t seem to be correct. First off in addition to the:
    dpkg –add-architecture armhf

    line I also had to add this so my /etc/apt/sources
    deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports quantal main universe

    Ok that go me as far as adding packages, but now it’s complaining about installing both libc6 & libc6:armhf. apt says they conflict and can’t be both in at the same time. I have libc6 installed if I try and but the armhf version it wants to remove half my system.

    This is such crap, I’ve just about had it with marvell. This unit was sold Specifically for plex, yet the write up from their own company is wrong! This is now the third issue I’ve had with this stupid machine and at this point wouldn’t recommend it to anyone!

    #502
    dpreviti
    Participant

    Sorry to reply to myself but here is the error:

    [17:46 david@espressobin ~] > apt-get install curl gcc-4.9-base gcc-4.9-base:armhf libc6 libc6:armhf libcurl3 libgcc1 libgcc1:armhf
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    libgcc1 is already the newest version (1:6.0.1-0ubuntu1).
    libc6 is already the newest version (2.23-0ubuntu7).
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    libc6 : Breaks: libc6:armhf (!= 2.23-0ubuntu7) but 2.23-0ubuntu3 is to be installed
    libc6:armhf : Breaks: libc6 (!= 2.23-0ubuntu3) but 2.23-0ubuntu7 is to be installed
    E: Unable to correct problems, you have held broken packages.

    Thanks!

    #530
    dpreviti
    Participant
    #749
    akrog
    Keymaster

    Hi dpreviti,

    PLEX Media Server instructions (with some differences compared to the instructions linked above) are now on wiki:

    http://wiki.espressobin.net/tiki-index.php?page=Run+PLEX+Media+Server+on+ESPRESSObin

    #750
    dpreviti
    Participant

    Thanks for the update, but you need to change the post to download the newer version of plex.

    I’ve edited the post above to point to the new file: http://espressobin.net/forums/topic/plex/#post-530

    #752
    dpreviti
    Participant

    Write up to setup plex to start on boot.

    To run plex automatically at start put the following in /etc/init.d/plex
    pay attention to change the “path_to_plex” & “USERNAME” to the correct values for your setup!

    
         #!/bin/sh
         ### BEGIN INIT INFO
         # Provides:          plexmediaserver
         # Required-Start:    $remote_fs $syslog $networking
         # Required-Stop:
         # Default-Start:     2 3 4 5
         # Default-Stop:      0 1 6
         # Short-Description: Plex Media Server
         # Description:       Plex Media Server for Linux,
         #                    More information at http://www.plexapp.com
         #                    Many thanks to the great PlexApp team for their wonderfull job !
         # Author:            Cedric Quillevere / origin@killy.net
         # Rewamped           Christian Svedin / christian.svedin@gmail.com
         # Version:           1.2
         ### END INIT INFO
         # Read configuration variable file if it is present
         [ -r /etc/default/plexmediaserver ] && . /etc/default/plexmediaserver
    
         test -f "/path_to_plex/start.sh" || exit 0
    
     plex_running=<code>ps ax | grep &quot;Plex Media Server&quot; | awk '{ print $1 }' | wc -l</code>
    
         case "$1" in
             start)
              if [ "$plex_running" -gt 1 ]; then
                    echo "Plex already running..."
                    exit 0
              fi
             echo -n "Starting Plex Media Server: "
             #su -l $PLEX_MEDIA_SERVER_USER -c "/usr/sbin/start_pms &" >/dev/null 2>&1
             su -l USERNAME -c 'path_to_plex/start.sh &' >/dev/null 2>&1
             sleep 1
             echo "done"
             ;;
             stop)
             if [ "$plex_running" -eq 1 ]; then
                    echo "Plex Media Server is not running (no process found)..."
                    exit 0
             fi
             echo -n "Killing Plex Media Server: "
             # Trying to kill the Plex Media Server itself but also the Plug-ins
             ps ax | grep "Plex Media Server" | awk '{ print $1 }' | xargs kill -9 >/dev/null 2>&1
             ps ax | grep "Plex DLNA Server" | awk '{ print $1 }' | xargs kill -9 >/dev/null 2>&1
             sleep 1
             echo "done"
             ;;
             restart)
             sh $0 stop
             sh $0 start
             ;;
             status)
             if [ "$plex_running" -gt 1 ]; then
                    echo "Plex Media Server process running."
             else
                    echo "It seems that Plex Media Server isn't running (no process found)."
             fi
             ;;
             *)
             echo "Usage: $0 {start|stop|restart|status}"
             exit 1
             ;;
         esac
    
         exit 0
    

    then run

    sudo chmod 755 /etc/init.d/plex
    sudo chown root:root /etc/init.d/plex

    put in startup shortcuts & start the service

    sudo update-rc.d plex defaults
    sudo /etc/init.d/plex start

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Signup to our newsletter

Technical specification tables can not be displayed on mobile. Please view on desktop