Featured Post

HOW TO: Install VPN server on Ubuntu when server is behind firewall

The whole point in this post is to run your own VPN service, and allow you to connect remote devices to your home network. To start off yo...

Aug 10, 2015

Setting Up Samba Shares On Plex Media Server

So I decided to setup a samba share on my Plex Media Server so I could pull off the mobile photos that are uploaded.

First off you need to know the location of your mobile uploads, on Ubuntu Server 12.04 that would be:

cd /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Media\ Upload/Mobile\ Photos/

Once you are aware of the location you can now define the samba share. Open the following file, with write privileges:

sudo nano /etc/samba/smb.conf

At the very end of this file, put in your share details:

[Pictures]
path = /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media Upload/Mobile Photos/
available = yes
valid users = macleod
read only = yes
browseable = yes
public = yes
writable = no

Share name is [Pictures], path is obviously path and the rest of the settings are self-explanatory.

Restart samba using the following command

sudo service smbd restart

And to test the syntax use the following:

No comments: