Last Updated: 2021/10/19
Server Specs | |
---|---|
CPU Cores | 6 |
Memory | 4GB-8GB |
Storage | 16GB |
OS | Debian 11 |
IP Address | 172.16.128.4 |
I will run Plex as the user media
. This lines up with my Media Network project.
1. Download the latest Plex .deb
package from https://www.plex.tv/media-server-downloads
wget https://downloads.plex.tv/plex-media-server-new/1.22.3.4392-d7c624def/debian/plexmediaserver_1.22.3.4392-d7c624def_amd64.deb
2. Install the package
dpkg -i plexmediaserver_1.22.3.4392-d7c624def_amd64.deb
3. Create the media
user
systemctl stop plexmediaserver.service
adduser --disabled-password --uid 1234 media
4. Edit the PMS systemd service to run Plex as the media
user
vim /etc/systemd/system/multi-user.target.wants/plexmediaserver.service
Change the user and group
User=media
Group=media
5. Change the file permissions on Plex's data files and well as your library files
chown media:media -R /var/lib/plexmediaserver/ /mnt/plex/music/music-lib /mnt/plex/video/*
3. Enabled and start Plex
systemctl enable plexmediaserver.service
systemctl start plexmediaserver.service
1. The package comes with a source list file. Uncomment the repo to enable it.
vim /etc/apt/sources.list.d/plexmediaserver.list
# When enabling this repo please remember to add the PlexPublic.Key into the apt setup.
# wget -q https://downloads.plex.tv/plex-keys/PlexSign.key -O - | sudo apt-key add -
deb https://downloads.plex.tv/repo/deb/ public main
2. As the source file instructs to do, add the repo key with the indicated command.
wget -q https://downloads.plex.tv/plex-keys/PlexSign.key -O - | apt-key add -
1. At first Plex only allows local connections. We'll create a SSH tunnel to the Plex server.
ssh ross@172.16.128.4 -L 32400:localhost:32400
2. On your local computer, use a web browser and navigate to http://localhost:32400
***Incomplete