Configuration
There are several steps required to make a Bucket Server work.
- Copy the buckets.cfg file from the bin directory to /etc/ and fill out the variables between the curly brackets.
cp /bin/buckets.cfg /etc
- Edit your crontab.
crontab -e
- Paste the following at the end of your crontab.
*/5 * * * * /{directory}/bin/tomp3.sh >> /{directory}/logs/tomp3.log
*/5 * * * * /{directory}/bin/tonormalize.sh >> /{directory}/logs/tonormalize.log
*/5 * * * * /{directory}/bin/to720p.sh >> /{directory}/logs/to720p.log
*/5 * * * * /{directory}/bin/to1080p.sh >> /{directory}/logs/to1080p.log
*/5 * * * * /{directory}/bin/toh264.sh >> /{directory}/logs/toh264.log
*/5 * * * * /{directory}/bin/toh265.sh >> /{directory}/logs/toh265.log
*/5 * * * * /{directory}/bin/towebm.sh >> /{directory}/logs/towebm.log
*/5 * * * * /{directory}/bin/toencrypt.sh >> /{directory}/logs/toencrypt.log
*/5 * * * * /{directory}/bin/todecrypt.sh >> /{directory}/logs/todecrypt.log - edit your samba config and add shares for the input and output directories.
sudo nano /etc/samba/smb.conf
- Add the shares at the end of the config file.
[input]
path ={path}
valid users ={users}
write list ={users}
[output]
path = {path}
valid users ={users}
write list = {users}
You can change the cron timings to whatever suits your need, five minutes is acceptable to me.