Hello,
I installed PMS for Linux on the Raspberry Pi 4 computer and it is working.
However, I am not able to change the metadata directory.
From “/ var / lib / plexmediaserver / Library / Application Support” to “/ media / data / plexmediaserver / Library / Application Support”.
I made changes to the /usr/lib/plexmediaserver/lib/plexmediaserver.service and /usr/lib/plexmediaserver/lib/plexmediaserver.default files.
See below:
plexmediaserver.service file
"
[Service]
Environment = “PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR = / media / data / plexmediaserver / Library / Application Support”
Environment = PLEX_MEDIA_SERVER_HOME = / usr / lib / plexmediaserver
Environment = PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS = 6
Environment = PLEX_MEDIA_SERVER_TMPDIR = / tmp
ExecStartPre = / bin / sh -c '/ usr / bin / test -d “$ {PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” || / bin / mkdir -p “$ {PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” ’
ExecStart = / bin / sh -c ’
export PLEX_MEDIA_SERVER_INFO_VENDOR = “$ (grep ^ NAME = / etc / os-release | awk -F =” {print \ $ 2} “| tr -d \”) ";
export PLEX_MEDIA_SERVER_INFO_DEVICE = “PC”;
export PLEX_MEDIA_SERVER_INFO_MODEL = “$ (uname -m)”;
export PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION = “$ (grep ^ VERSION = / etc / os-release | awk -F =” {print \ $ 2} “| tr -d \”) ";
export LD_LIBRARY_PATH = / usr / lib / plexmediaserver / lib;
exec “/ usr / lib / plexmediaserver / Plex Media Server” ’
Type = simple
User = plex
Group = plex
Restart = on-failure
RestartSec = 5
StartLimitInterval = 60s
StartLimitBurst = 3
SyslogIdentifier = Plex Media Server
StandardOutput = journal
StandardError = journal
[Install]
WantedBy = multi-user.target
"
plexmediaserver.default file
"
default Environment for Plex Media Server
The number of plugins that can run at the same time
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS = 6
Limit the stack size
export PLEX_MEDIA_SERVER_MAX_STACK_SIZE = 3000
Where Plex should store the transcodes
export PLEX_MEDIA_SERVER_TMPDIR = / tmp
Where Plex keeps its metadata
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR = “/ media / data / plexmediaserver / Library / Application Support”
the user that PMS should run as, defaults to ‘plex’
note that if you change this you might need to move
the Application Support directory to not lose your
media library (match what is in / etc / passwd)
(plex_media_server_user has been retired in favor of plex_user on Debian)
export PLEX_MEDIA_SERVER_USER = plex
Uncomment this to use syslog for logging instead of
sending logs to Plex Media Server.log
#export PLEX_MEDIA_SERVER_USE_SYSLOG = true
"
Thank you in advance for your help.