Create the directories that will store the Plex media files:
sudo mkdir -p /mnt/{tv,movies} sudo chown -R plex: /mnt
NOTE: The Plex Media Server runs as the user plex, which must have read and execute permissions to the media files and directories.
To allow connecting to an Samba Share, install CIFS.
sudo apt install cifs-utils
NOTE: set the username and password as required.
NOTE: The problem with this manual mount option includes:
Create a credentials file, .smbcredentials:
username=peter password=some_strong_password #domain=optional_domain_or_workgroupname
NOTE: The credentials file starts with a dot, which makes it a hidden file.
chmod 0600 ~/.smbcredentials
NOTE: The 0600 makes this file only read accessible to the user.
Add the following lines to /etc/fstab:
#Plex //192.168.1.35/Movies /mnt/movies cifs credentials=/home/peter/.smbcredentials,uid=peter,gid=peter 0 0 //192.168.1.35/TV /mnt/tv cifs credentials=/home/peter/.smbcredentials,uid=peter,gid=peter 0 0
NOTE: This references the credentials file.
sudo mount -a
NOTE: This should automatically mount the shares shown in the /etc/fstab file.
Confirm this by looking at the share directories, in this case:
Open a Web Browser, and type http://YOUR_SERVER_IP:32400/web, and you will be redirected to the plex website: