How to share your Thinkbox Deadline Repository with Samba
If you want to use direct connect to connect your Deadline Workers to the Repository, or if you want to make it easy to add scripts and plug-ins to Deadline, you need a file share. But how to set one up? The simple free solution is Samba. Here is how to get it set up on your Deadline server.
What is Samba?
Put simply, Samba is a file server for Linux.
Sharing the Deadline Repository with Samba will allow Windows and Linux clients to connect directly to the repository. It will also make it easier to add and update custom scripts and plug-ins to Deadline.
Install Samba⌗
Ubuntu and Debian
Rocky and RedHat
Check if the service is running
If the above command says active (running)
congratulations Samba is installed and working
Firewall rules
If your firewall is enabled you will need to allow Samba traffic through.
Ubuntu and Debian
Rocky and RedHat
Share the Repository⌗
With Samba now installed we need to tell it to share the Deadline Repository folder. To do that we need to modify Samba’s config file smb.conf
.
To start, backup the original config file
With your favourite text editor, edit the config file.
For example.
sudo nano /etc/samba/smb.conf
Copy the following into the smb.conf file.
This first section contains the basic configuration needed to make Samba work and does not need any changes, so you can copy it into the smb.conf file without changing anything.
This second section has the configuration needed to share the Deadline Repository directory.
If you have installed the Deadline Repository to the default location you can simply copy and paste this into your smb.conf file
However if you have put the Repository in a different location you need to change the path =
variable to the location where you have installed the Repository
Test the config file for errors
Restart the Samba service
Create user account⌗
Our current set-up does not have any security and lets anyone connect to the shared folder with full read/write access.
To add some basic user authentication we need to create a Samba user account and set a password
sudo smbpasswd -a username
For example
Remove the line guest ok = yes
from the smb.conf file so it looks like this
Restart the Samba service so it loads the new configuration file
Now when you try to access the Deadline Repository shared folder it will require a username and password.
Note: It’s also possible to have Samba authenticate users against Active Directory, however that is beyond the scope of this simple guide.
Sharing with Deadline clients⌗
Now that the repository file share is up and running it’s time to mount it on the clients.
You will need the IP address or DNS name of the Deadline Repository server. The below assumes your server is called deadline
.
For Linux
Note: You need to make sure the directory you are mounting to exists. For example if you want to mount the share to
/mnt/deadline
To autmoatically mount the drive on start
If you have set a username and password you’ll need to specify it when mounting the shared folder.
Note: If you get this error
mount: /mnt/deadline: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.
You might not have the cifs-utils installed. Heres how to install it on Debian/Ubuntu.
For Windows using cmd
If you have specifed a username/password
All that’s left to do is connect the Deadline client to the repository, the instructions for which you can find here.