Editing
Plex Media Server - Debian
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Plex is a streaming media server that lets you organize your video, music, and photo collections and stream them to all of your devices at any time and from anywhere. This tutorial explains how to install Plex Media Server on Debian 9. == Prerequisites == * The user you are logged in as must have sudo privileges to be able to install packages. * Install Plex Media Server == Installation == Plex Media Server is not available in the official Debian package repository. We’ll be using the Plex official repository. Start by importing the repository’s GPG key using the following curl command: sudo apt install curl curl <nowiki>https://downloads.plex.tv/plex-keys/PlexSign.key</nowiki> | sudo apt-key add - Add the Plex APT repository to your system’s software repository list by issuing: echo deb <nowiki>https://downloads.plex.tv/repo/deb</nowiki> ./public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list Once the Plex repository is enabled, update the apt package list and install the latest version of the Plex Media Server with: sudo apt install apt-transport-https sudo apt update sudo apt install plexmediaserver The Plex service will start automatically. To verify that the installation was successful and SSH service is running type the following command which will print the Plex server status: sudo systemctl status plexmediaserver The output should look something like this: <pre>● plexmediaserver.service - Plex Media Server for Linux Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2019-03-07 06:35:51 CST; 17min ago Process: 2993 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" (code=exited, status=0 Main PID: 2998 (sh) Tasks: 127 (limit: 4915) CGroup: /system.slice/plexmediaserver.service</pre> == Configure Plex Media Server == Before starting the Plex setup wizard let’s create the directories that will store the Plex media files: sudo mkdir -p /opt/plexmedia/{movies,series} The Plex Media Server runs as the user '''plex''' which must have read and execute permissions to the media files and directories. To set the correct ownership run the following command. sudo chown -R plex: /opt/plexmedia You can choose any location to store the media files, just make sure you set the correct permissions. Now we can proceed with the server configuration. Open your browser, type http://YOUR_SERVER_IP:32400/web
Summary:
Please note that all contributions to WilliamsNet Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
WilliamsNet Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Navigation
Commons
Architecture
How-To
Systems
Hardware
SysAdmin
Kubernetes
OpenSearch
Special
Pages to create
All pages
Recent changes
Random page
Help about MediaWiki
Formatting Help
Tools
What links here
Related changes
Special pages
Page information