Plex Media Server on Linux Mint Cinnamon 64-bit also Plex Home Theater or Plex Media Player

@Xen0sys

Tried uninstalling plex as per the instructions on plex website. It doesn’t let me delete the directory var/lib/plexmediaserver to complete the uninstall.

Also, for some reason I can’t add a new user, when I press add all it does is just stay on that screen nothing happens.

@frederick.grayson said:

@ChuckPa said:
Plex Pass can’t be managed through a ‘batch’ software updater.

mrworf’s script does.

I know the script can and I know what rpm and dpkg can do. i didn’t say I was stopping there :smiley:

@Essoke

You need to be root to do those actions (sudo sh will give you a command line shell)

@ChuckPa

To delete that directory or to add a new user?

Also it seems that plex as a username already exists so how can I remove plex completely. So then I can reinstall it right.

To delete the directory. I would advise leaving /var/lib/plexmediaserver in place and deleting only Library in it.
I suggest (to minimizing waiting time for you).

sudo mv /var/lib/plexmediaserver/Library /var/lib/plexmediaserver/Library.old
followed by
sudo rm -rf /var/lib/plexmediaserver/Library &

To remove user plex : sudo userdel plex
To remove group plex: sudo groupdel plex

I ended up opening /lib/ directory as root and deleting the folder plexmediaserver before you posted that. Is that bad if I plan on reinstalling plex anyway?

nah, no harm done. It’ll test for it and make it if needed

@Essoke said:

@Psytropic said:

@Essoke said:

@Psytropic said:
There is still no official PMS repository so it doesn’t matter whether you turn on a repo or not. If there was a working one, it would likely get enabled by default.

You don’t want to add a plex user or group - PMS does this automatically. I was mentioning installing Linux with the default user plex to avoid having to deal with permissions issues with regards to library storage.

Remote access is set up through the server settings in the web interface. Once PMS is installed, you should be able to search for Plex Media Manager or just hit start > type plex and it should pop up. If not go, to localhost:32400/web in a browser.

I see.

I know it automatically makes the group. What I meant was under User and group settings do you add it to your user. Like scrolling down the list and putting a check mark where it says plex? Does that do anything or no? I apologize I do not know what you mean by installing with “default user plex”. :-?? So what do I have to do to be able to add media? Sorry again if these are dumb question.

Oh the interface works just fine when I click on the Plex Media Manager. It takes to me the control page where I have to log in. That isn’t the problem. Once I log in and go to the setting option where I set up remote access it doesn’t allow it to happen. I remember back in windows 7. I had to do a port forward and reserve an IP so it would remain static. Those settings are still the same because I checked my router when trying to set it up. I think it might be my firewall? I use the default one that came with Linux Mint Cinnamon. I was trying to confirm if it was the firewall. So I disabled it, and the remote access got enabled just fine, and when I enabled it again it stopped working. So what do I do in this situation?

When you install a Linux system, you choose a username for the default user. That is what I am referring to as making plex. Then you don’t have to do any of the group/user adding stuff.

In that case, you need to allow the Plex port you forwarded through your firewall.

So then, in this case I should uninstall Plex through the .deb file I downloaded. Go into users and groups and create a new user and call it plex? Then install plex again through the .deb file?

Do I make it a standard or administrator account type? Does it matter what I put in for “Full Name” as long as the Username is “plex” ?

Alternatively, couldn’t I just right click on my hard drives, click properties, then go permissions tab, and change the permissions to “Read and Write”? Then apply the permissions to enclosed files?

By the way, will plex automatically update itself in linux or do I have to manually download the .deb file each time and install it over the old version?

@ChuckPa said:
If all is good, I apologize to the OP for the temporary hijacking.

Please carry on.

No problem, although I’m completely lost as to what you were talking about lol.

Not exactly, no.

Unless you are just installing Linux with that main account as plex (also the account that logs in) you aren’t really gaining the benefit of my suggestion.

If you want to create a plex account in addition to your standard user account, you’ll be falling under the category of the standard install which does this anyways. (which ya I think can be done at least partially via the GUI menus)

So in a nutshell, either reinstall Linux and set the installer-generated user as plex or just follow the guides on how to configure access’s in ChuckPa’s forum signature.

Plex will now, if you are not a PlexPass user, update automatically with system updates (sudo apt-get update).

But for plexpass users it udpates within the application itself?

When you you say the guides in his signature are you referring to this one?
https://support.plex.tv/hc/en-us/articles/200288596-Linux-Permissions-Guide ?
Will this allow me to add my media, because this is pretty confusing to me lol.

All Linux users can use their normal system software update tool to get Plex updates.
Using your normal system update tool (apt-get) it will update your Plex version to the latest Public version just as @Xen0sys stated.

Linux permissions can be a little daunting at first. The important thing to remember is You own your files. You have permission to read & write them. Plex only needs permission to read them. Linux, by default, won’t let a user (plex) read another user’s (you) files. This is why you must relax the permissions for your media. Once done, it’s done. You’ll be able to create a library by ‘browsing’ to it in Plex and all will be good if they are named well enough (the Naming link)

Do you know if this would apply to my situation:
https://support.plex.tv/hc/en-us/articles/235974187 for the whole updating thing?

Before I do anything with permissions I would still install the PMS first through the .deb file right?

Also does it matter that my HDD are in ext4 format, because the link to the forum post the other user had his in ntfs format?

Nope… On Linux, you want ext4. There are numerous references / examples I’ve made showing others how to add NTFS drives to Linux so they can add them to plex. Linux is sufficiently flexible to have native support for NTFS, unlike windows supporting ext4.

@ChuckPa said:
All Linux users can use their normal system software update tool to get Plex updates.

What about for debian wheezy or wheezy based systems? Did a proper SystemV init script ever get into the plex deb?

I see.

By the way, I believe all my media should be named correctly because its the same thing I had from back in windows.

External hard drives shouldn’t make a difference in the permissions process right?

What file system is used on the external hard drives?

The best thing to do so we can help you is

open a terminal window.

type df and copy/paste a list of the drives you want us to help with

It should look something like this:

Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/sda5      128884388  31144624  91169780  26% /
/dev/sda3         487652    168477    289479  37% /boot
/dev/sda7      970737276 124797336 797271524  14% /home
/dev/sda1      831543292 109969772 721573520  14% /win
/dev/sdb1       60623936     19072  60604864   1% /run/media/chuck/2EC4-D17B
[chuck@lizum ~/socket.145]$

@frederick.grayson said:

@ChuckPa said:
All Linux users can use their normal system software update tool to get Plex updates.

What about for debian wheezy or wheezy based systems? Did a proper SystemV init script ever get into the plex deb?

I’ll check with the team lead. It should be in 1.3.1 now but i’ve not had time to look at the build.

@frederick.grayson said:
What file system is used on the external hard drives?

All my drives including the external ones are ext4.

@ChuckPa
/dev/sdd1 3845577736 1640907096 2009303424 45% /media/corkasi/Croftio /dev/sdb1 1922728752 163431684 1661605012 9% /media/corkasi/Aseipso /dev/sdc1 4845159136 3442669912 1158284376 75% /media/corkasi/Blucsi

Those three drives.

Cool. First thing we need to do because of how Ubuntu is about anything in /media is move them out from there.

How about we create `/corkasi’ as the new parent directory and go from there?

If you agree, here’s what to do. If not, just change what you want… The procedure is the same

  1. Unmount (eject) each drive in the graphical file browser / manager
  2. Open up a new Terminal window (we’re going to need to do a few things). In that window

sudo sh #enter the password and get the prompt

First we make a place to put the drives when the system starts

mkdir /corkasi /corkasi/Corftio /corkasi/Aseipso /corkasi/Blucsi
chmod -R /755 /corkasi
chown -R _type_your_Linux_username_here_   /corkasi

Now we’re ready to actually place them there

gedit /etc/fstab &

scroll to the bottom of the file and add these three lines (Copy / paste)

/dev/sdb1        /corkasi/Aseipso                ext4    defaults,auto  1 3
/dev/sdc1        /corkasi/Blucsi                 ext4    defaults,auto  1 3
/dev/sdd1        /corkasi/Croftio                ext4    defaults,auto  1 3

Save the file (Save button in the upper right)

go back to the Terminal window (keep the editor window open… just move it out of the way)

mount /corkasi/Aseipso
mount /corkasi/Blucsi
mount /corkasi/Croftio 

If you have any say “Wrong FS-type” then they aren’t ext4 this is where you look at which disk is complaining and see what format it is with tune2fs -l /dev/sd?? (change the ?? to be b1, c1 or `d1 as needed) and It will tell you what it is.

If everything is ok… You may close the editor

Let’s set the Linux file permissions and verify ownership so you can enjoy Plex

cd /corkasi
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chown -R _your_Linux_username_here .

Time to open Plex, add browse to those disks and add them to a library

@ChuckPa said:

@frederick.grayson said:

@ChuckPa said:
All Linux users can use their normal system software update tool to get Plex updates.

What about for debian wheezy or wheezy based systems? Did a proper SystemV init script ever get into the plex deb?

I’ll check with the team lead. It should be in 1.3.1 now but i’ve not had time to look at the build.

Doesn’t look like it got into 1.3.2 unless it is well hidden somewhere.