My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
MyTweaks  
My tweaks to FreeNAS to make my operation of it smoother and friendlier
Updated Nov 20, 2010 by tre...@gmail.com

Introduction

I love FreeNAS, but there are things that drive me nuts about it. This is my documentation of what I do to make my life with FreeNAS more pain free. Also included are things that I attempted that didn't work, just so others do not have to suffer the same fate ;)

Details

CIFS/SMB + Transmission = File Permission Hell

Under System|Advanced|rc.conf and the following value to make transmission, APF, SMB/CIFS all use the same "guest" user:

VariableValueComment
transmission_userftpSet the transmission user to FTP

Note If you used my previous tweak to have CIFS/SMB use the transmission user, you'll need to chown -R ftp . your shared directories to make sure everything is playing nice.

settings.json blocklist_enabled

By default (for whatever reason) FreeNAS disables the use of blocklists in transmission. Simply editing the settings.json won't fix it, since it's the rc.d script telling transmission not to. To solve this we need to add a new rc.conf variable in System|Advanced|rc.conf:

VariableValueComment
transmission_blocklistYESUse blocklists

Updating the Transmission Blocklist

Add the following to System|Advanced|rc.conf

VariableValueComment
transmission_blocklist_urlhttp://www.bluetack.co.uk/config/nipfilter.dat.gzUse the normal ipfilter instead of just Level 1

Add the following to System|Advanced|Cron

CommandWhoDescription
/etc/rc.d/transmission updateblocklistrootUpdate transmission blocklist

Under Schedule Time:

  • Change the Minutes radio button from "All" to "Selected". Select "0".
  • Change the Hours radio button from "All" to "Selected". Select "0".

This will update your block list every day at midnight. You can fine tune this to meet your needs. I update once a week by selecting a specific day.

watcher.sh

#! /bin/bash

if [ -z "$(pgrep transmission-daemon)" ]
then
        rm /home/transmission/*.core
        /etc/rc.d/transmission start
fi

Transmission crashes on me a lot so I use this to clean up the core file and restart transmission. I have it set to run every 5 minutes in a cron job.

Note I am running 0.70 at this time, but haven't checked to see if transmission is still crashing

Comment by project member dar.quonb, Nov 16, 2009

Blocklist should be enabled with this setting: transmission_blocklist YES

Comment by project member tre...@gmail.com, Nov 19, 2009

That's a new setting for .70, but I'll add it to the list. Not sure if the transmission_noblocklist is still used or not.

Comment by difficul...@gmail.com, Apr 17, 2010

Thanks so much for the transmission permissions information. I was really stuck. Now able to delete files.

Comment by blackshr...@gmail.com, Sep 14, 2010

cheers mate, that permission auxiliary parameter was tops!

Comment by c...@the-shades.net, Oct 21, 2010

Excellent suggestions. Thanks!

Comment by simoneau...@gmail.com, Nov 3, 2010

for cifs access you can also use transmission_user ftp to use the same user as the cifs

Comment by project member tre...@gmail.com, Nov 20, 2010

simoneau.nicolas - historically that has not worked as FTP has a shell of /bin/false and transmission would refuse to start. I'm not sure if that is still the case. I haven't tested using the ftp user with FreeNAS 0.7.2 and have stuck with using transmission everyone. I'll test and update this page if you are correct.


Sign in to add a comment
Powered by Google Project Hosting