APP: Plex Media Server

Home Forums Operating Systems Linux APP: Plex Media Server

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #845
    Voodoo
    Keymaster

    Download Latest Plex Media Server:
    Plex Media Server for Linux Ubuntu AMD64

    Install via Terminal:
    sudo apt install ./home/%USER%/Downloads/plexmediaserver_1.21.1.3830-6c22540d5_amd64.deb

    Add Plex Media Server Repositories for Updates:
    echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
    sudo apt install curl
    curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -

    Configure from WebBrowser by going to:
    IP:32400

    NOTE: If you configure for LAN access without authentication, then you will have to go to the /web/ directory such as:
    IP:32400/web/

    Default Metadata and Index Data are in the following directory:
    /var/lib/plexmediaserver/Library/Application Support

    Stop Plex Media Server:
    sudo systemctl stop plexmediaserver

    Start Plex Media Server:
    sudo systemctl start plexmediaserver

    Restart Plex Media Server:
    sudo systemctl restart plexmediaserver

    ———————————
    To save space on OS drive, you can move the Metadata and Index to a new location:

    sudo service plexmediaserver stop
    sudo service plexmediaserver start
    sudo service plexmediaserver restart

    Copy Metadata and Index Data to new location:
    cp -rf ‘/var/lib/plexmediaserver/Library/Application Support’ /new/dir/to/plex/

    Move old directory to .OLD in case of issues:
    mv ‘/var/lib/plexmediaserver/Library/Application Support’ ‘/var/lib/plexmediaserver/Library/Application Support.OLD’

    Create symbolic link to new directory:
    ln -s ‘/new/dir/to/plex/Application Support’ ‘/var/lib/plexmediaserver/Library/Application Support’

    Change owner of new location to plex:
    chown -R plex.plex ‘/var/lib/plexmediaserver/Library/Application Support’

    Remove old Meta and Index Data files:
    rm -rf ‘/var/lib/plexmediaserver/Library/Application Support.OLD’

    cp -rf ‘/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache’ ‘/mnt/10TB/PMS/Cache’

    cp -rf ‘/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media’ ‘/mnt/10TB/PMS/Media’

    rm -rf ‘/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache’

    rm -rf ‘/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media’

    ln -s “/mnt/10TB/PMS/Cache” “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache”

    ln -s “/mnt/10TB/PMS/Media” “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media”

    • This topic was modified 1 month ago by Voodoo.
    • This topic was modified 1 month ago by Voodoo.
    • This topic was modified 1 month ago by Voodoo.
    • This topic was modified 1 month ago by Voodoo.
    • This topic was modified 1 month ago by Voodoo.
    • This topic was modified 1 month ago by Voodoo.
    #856
    Voodoo
    Keymaster

    sudo service plexmediaserver stop
    cp -rf ‘/var/lib/plexmediaserver/Library/Application Support’ /home/plex/PMS
    rm -rf ‘/var/lib/plexmediaserver/Library/Application Support’
    chown -R plex.plex ‘/home/plex’
    ln -s ‘/home/plex/PMS’ ‘/var/lib/plexmediaserver/Library/Application Support’
    chown -R plex.plex ‘/var/lib/plexmediaserver/Library/Application Support’

    ln -s ‘/media/plex/Home/PMS’ ‘/var/lib/plexmediaserver/Library/Application Support’

    sudo service plexmediaserver start

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