Setting Up Plex Media Server on Linux Mint

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
houston

Setting Up Plex Media Server on Linux Mint

Post by houston »

Hello!

I'm on Linux Mint 18.3, and am trying to get Plex Media Server up and running, but am hitting roadblocks.

After installing Plex and going through the sign in process, when I try to add a library I only see some files, and any deeper into most file structures appear empty (i.e. /home/houston/).

My folder structure looks as such:
/home/houston/Media
home/houston/Media/Movies
home/houston/Media/TV Shows

I've also tried adding the file paths manually,
/home/houston/Media/Movies
for instance, but it is still not seeing anything in those directories.

I've tried solutions from:

viewtopic.php?t=218929&start=20#p1174386 Here, which suggested changing the PLEX_MEDIA_SERVER_USER from 'plex' to the current user ('houston'), but to no avail.

and

viewtopic.php?f=90&t=215658#p1126159 Here, which suggested the following:
1. Try setting the group for videos to plex

Code: Select all

sudo chown -R :plex Media
2. Set the setgid so files copied there will inherit the group

Code: Select all

chmod 2755 Media
After trying both of these, I am also restarting the plexmediaserver service.

After running the second option, my

Code: Select all

ls -lh
output for the /Media folder is:
drwr -xr -x 5 houston plex 4.0K Jan 14 10:43
.

Could anyone help me out further? Thanks!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
HaveaMint
Level 6
Level 6
Posts: 1085
Joined: Fri Feb 02, 2018 9:56 pm

Re: Setting Up Plex Media Server on Linux Mint

Post by HaveaMint »

Is Houston a member of the plex group?
"Tune for maximum Smoke and then read the Instructions".
houston

Re: Setting Up Plex Media Server on Linux Mint

Post by houston »

HaveaMint wrote: Mon Jan 14, 2019 3:38 pm Is Houston a member of the plex group?
I'm sorry, I'm not sure I follow.
HaveaMint
Level 6
Level 6
Posts: 1085
Joined: Fri Feb 02, 2018 9:56 pm

Re: Setting Up Plex Media Server on Linux Mint

Post by HaveaMint »

That was my best shot at guessing, you have the folders setup under plex as the group and I wonder if the user you are using "houston" is a member of the plex group.
Oh wait you saying plex can't see the sub folders or houston can't see them? Apparently i'm confusing myself.
"Tune for maximum Smoke and then read the Instructions".
houston

Re: Setting Up Plex Media Server on Linux Mint

Post by houston »

HaveaMint wrote: Mon Jan 14, 2019 3:44 pm That was my best shot at guessing, you have the folders setup under plex as the group and I wonder if the user you are using "houston" is a member of the plex group.
Oh wait you saying plex can't see the sub folders or houston can't see them? Apparently i'm confusing myself.
I'm saying Plex can't see the folders. As my normal user either using the GUI or command line I can access/view/edit files in /home/houston/Media, but when I go to add the Movies and TV Shows sub-directories as a Library within Plex, Plex is unable to view those files. When browsing via Plex to add those libraries, the /home/houston/ folder appears empty (though it is not, as confirmed by my having lots of stuff in that directory, and not just /Media)
HaveaMint
Level 6
Level 6
Posts: 1085
Joined: Fri Feb 02, 2018 9:56 pm

Re: Setting Up Plex Media Server on Linux Mint

Post by HaveaMint »

Sounds like a permission issue to me. What happens if you set it to chmod -R plex:plex /folderstructure
"Tune for maximum Smoke and then read the Instructions".
houston

Re: Setting Up Plex Media Server on Linux Mint

Post by houston »

HaveaMint wrote: Mon Jan 14, 2019 3:55 pm Sounds like a permission issue to me. What happens if you set it to chmod -R plex:plex /folderstructure
What would the exact command be? I'm running

Code: Select all

chmod -R plex:plex /home/houston/Media
and getting the response "invalid mode: 'plex:plex'
HaveaMint
Level 6
Level 6
Posts: 1085
Joined: Fri Feb 02, 2018 9:56 pm

Re: Setting Up Plex Media Server on Linux Mint

Post by HaveaMint »

looks correct to me however my suggestion of adding the user to that group is probably the error since there may not be a user called plex. Please understand I am guessing at this.
"Tune for maximum Smoke and then read the Instructions".
HaveaMint
Level 6
Level 6
Posts: 1085
Joined: Fri Feb 02, 2018 9:56 pm

Re: Setting Up Plex Media Server on Linux Mint

Post by HaveaMint »

Who owns /home/houston/Media
"Tune for maximum Smoke and then read the Instructions".
houston

Re: Setting Up Plex Media Server on Linux Mint

Post by houston »

HaveaMint wrote: Mon Jan 14, 2019 4:05 pm Who owns /home/houston/Media
When I run

Code: Select all

ls -lh
the output for Media is:

drwr -xr -x 5 houston plex 4.0K Jan 14 10:43 Media
HaveaMint
Level 6
Level 6
Posts: 1085
Joined: Fri Feb 02, 2018 9:56 pm

Re: Setting Up Plex Media Server on Linux Mint

Post by HaveaMint »

Someone else will need to jump in and help you, I am out of my league here.
"Tune for maximum Smoke and then read the Instructions".
altair4
Level 20
Level 20
Posts: 11446
Joined: Tue Feb 03, 2009 10:27 am

Re: Setting Up Plex Media Server on Linux Mint

Post by altair4 »

Not a plex user but does this make sense: https://forums.plex.tv/t/proper-way-to- ... s/158853/3
Instead of making changes to accommodate the plex user make the plex user you. Whatever you have access to so will plex. Anyhoo that's how I read it.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Setting Up Plex Media Server on Linux Mint

Post by smurphos »

Basically what you need to achieve it the user plex having a minimum of read access to your media files. I don't condone giving plex ownership of chunks of your home folder. That way lies misery.

Assuming your user has ownership of the folders/files in question.......

Method 1 - made your media folders and files readable by all other users including plex.

Change permissions for folders

Code: Select all

find /path/to/media -type d -exec chmod -c 755 {} ";"
Change permissions for files

Code: Select all

find /path/to/media -type f -exec chmod -c 644 {} ";"
Method 2 - add plex to your group and make sure that folders and files are readable to your group.

Code: Select all

sudo adduser plex $USER

Code: Select all

find /path/to/media -type d -exec chmod -c 750 {} ";"

Code: Select all

find /path/to/media -type f -exec chmod -c 640{} ";"
Plex does give the option to remove media via it's GUI - as written the permissions given above will not allow that access. If you do want it to be able to do that I'd recommend method 2 but permissions of

Code: Select all

find /path/to/media -type d -exec chmod -c 770 {} ";"

Code: Select all

find /path/to/media -type f -exec chmod -c 660{} ";"
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
tgwizkid

Re: Setting Up Plex Media Server on Linux Mint

Post by tgwizkid »

Honestly you probably just named the files wrong. If you use the files on a Windows Plex server does it detect then?
Plex is very particular about the folder/file name structure.
Locked

Return to “Beginner Questions”