Setting Up Plex Media Server on Linux Mint

All Gurus once were Newbies
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. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
houston
Level 1
Level 1
Posts: 8
Joined: Mon Jan 14, 2019 1:09 pm

Setting Up Plex Media Server on Linux Mint

Post by houston » Mon Jan 14, 2019 1:21 pm

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!

HaveaMint
Level 5
Level 5
Posts: 570
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: Setting Up Plex Media Server on Linux Mint

Post by HaveaMint » Mon Jan 14, 2019 3:38 pm

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

houston
Level 1
Level 1
Posts: 8
Joined: Mon Jan 14, 2019 1:09 pm

Re: Setting Up Plex Media Server on Linux Mint

Post by houston » Mon Jan 14, 2019 3:40 pm

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 5
Level 5
Posts: 570
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: Setting Up Plex Media Server on Linux Mint

Post by HaveaMint » 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.
"Tune for maximum Smoke and then read the Instructions".

houston
Level 1
Level 1
Posts: 8
Joined: Mon Jan 14, 2019 1:09 pm

Re: Setting Up Plex Media Server on Linux Mint

Post by houston » Mon Jan 14, 2019 3:50 pm

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 5
Level 5
Posts: 570
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: Setting Up Plex Media Server on Linux Mint

Post by HaveaMint » 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
"Tune for maximum Smoke and then read the Instructions".

houston
Level 1
Level 1
Posts: 8
Joined: Mon Jan 14, 2019 1:09 pm

Re: Setting Up Plex Media Server on Linux Mint

Post by houston » Mon Jan 14, 2019 4:00 pm

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 5
Level 5
Posts: 570
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: Setting Up Plex Media Server on Linux Mint

Post by HaveaMint » Mon Jan 14, 2019 4:03 pm

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 5
Level 5
Posts: 570
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: Setting Up Plex Media Server on Linux Mint

Post by HaveaMint » Mon Jan 14, 2019 4:05 pm

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

houston
Level 1
Level 1
Posts: 8
Joined: Mon Jan 14, 2019 1:09 pm

Re: Setting Up Plex Media Server on Linux Mint

Post by houston » Mon Jan 14, 2019 4:27 pm

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 5
Level 5
Posts: 570
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: Setting Up Plex Media Server on Linux Mint

Post by HaveaMint » Mon Jan 14, 2019 6:43 pm

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 19
Level 19
Posts: 9500
Joined: Tue Feb 03, 2009 10:27 am

Re: Setting Up Plex Media Server on Linux Mint

Post by altair4 » Mon Jan 14, 2019 6:49 pm

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 10
Level 10
Posts: 3020
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: Setting Up Plex Media Server on Linux Mint

Post by smurphos » Tue Jan 15, 2019 3:11 am

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{} ";"

Post Reply

Return to “Newbie Questions”