You mean the instructions for setting up the permissions? I looked at a bunch of different posts in this forum and used a lot of the instructions I found here, to no avail. Here are some of the posts I looked at:
Hi, I'm really hoping someone can help me get to the bottom of this. I have read through the Linux Permissions Guide and it did not help solve the problem. I am very new to linux so that is likely partially to blame, but after spending 12...
Reading time: 15 mins 🕑
Likes: 5 ❤
At this point I don’t even remember all the different steps I took. But I don’t remember creating a service file anywhere.
For Linux, I have taken the time to write out how to do them which works on all Linux systems. Those are in Linux Tips
https://forums.plex.tv/categories/linux-tips
I specifically was referring to installation.
I would like you to do the following. I’m going to make certain everything got created correctly during your installation .
sudo sh
rm -f /etc/systemd/system/plexmediaserver.service`
sudo systemctl daemon-reload
mkdir -p /var/lib/plexmediaserver
rm -rf /var/lib/plexmediaserver/Library
chown -R plex:plex /var/lib/plexmediaserver
systemctl start plexmediaserver
The commands above, which you can copy/paste directly, do the following:
Remove the unknown configuration file. It’s most likely the reason PMS won’t start
Tell systemd that you’ve removed it
Make certain the Plex home directory exists
Make certain the ownership of that directory belongs to Plex
If there’s anything in in , start fresh
Start PMS
rm -f /etc/systemd/system/plexmediaserver.service`
Is that apostrophe supposed to be there at the end?
If not… here’s what I got:
robert@Tesla ~ $ sudo sh
[sudo] password for robert:
# rm -f /etc/systemd/system/plexmediaserver.service
sh: 1: rm: Permission denied
sorry about the grave at end… that was typo.
As for permission denied, that’s not supposed to happen. sudo elevates the command to root permission level (bypasses all permission checks). Permission denied means something else is holding on to the file.
sudo systemctl stop plexmediaserver
sudo rm -f /etc/systemd/system/plexmediaserver.service
robert@Tesla ~ $ sudo systemctl stop plexmediaserver
[sudo] password for robert:
sudo: systemctl: command not found
robert@Tesla ~ $ sudo rm -f /etc/systemd/system/plexmediaserver.service
sudo: rm: command not found
Maybe I should just reinstall Mint and start from scratch, haha.
This is the ONLY guide that worked. Thank you so much!