Installation on FreeBSD (FreeNAS)
-
- Posts: 2
- Joined: 16 Dec 2015, 13:25
Installation on FreeBSD (FreeNAS)
Hi there,
can anyone walk me through installing Filebot on FreeBSD?
I didn't find any tutorial for this, just people stating that it works.
Basically I only need the command line tools, as it will be running on a headless server.
Thanks in advance!
jesetize
can anyone walk me through installing Filebot on FreeBSD?
I didn't find any tutorial for this, just people stating that it works.
Basically I only need the command line tools, as it will be running on a headless server.
Thanks in advance!
jesetize
Re: Installation on FreeBSD (FreeNAS)
1.
Download the portable package
2.
Execute filebot.sh
Download the portable package
2.
Execute filebot.sh
-
- Posts: 2
- Joined: 16 Dec 2015, 13:25
Re: Installation on FreeBSD (FreeNAS)
Oh, that's a tough one 
Thanks!

Thanks!
Re: Installation on FreeBSD (FreeNAS)
I am also trying to get this to work, on FreeNAS. I had been on a Windows machine without issue, but now, nothing seems to happen. I did download the portable version and unzipped it to /FileBot.
My setup is I have Transmission running on FreeNAS, and I have my script set to be called on torrent finish in the Transmission plugin config. The contents of my script are:
However, nothing ever seems to be called and amc.log has nothing in it (other than 10 lines from when I tested calling the above script manually). I am not sure what else to check since nothing seems to be getting logged and I would appreciate any assistance. Thanks!
My setup is I have Transmission running on FreeNAS, and I have my script set to be called on torrent finish in the Transmission plugin config. The contents of my script are:
Code: Select all
sh /FileBot/filebot.sh -script fn:amc --output "/media/unsorted" --log-file amc.log --action copy --conflict auto -non-strict --def music=y subtitles=en artwork=y extras=y unsorted=y deleteAfterExtract=y clean=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D" "seriesFormat=/media/tv/{n} ({y})/{'Season'+s}/{n} - {sxe} - {t}" "movieFormat=/media/movies/{n} {y}/{fn}" "musicFormat=/media/music/{n}/{fn}"
Re: Installation on FreeBSD (FreeNAS)
Once your script is called, the next step would be to look at the Transmission setup instructions:
viewtopic.php?f=4&t=215#p3380
viewtopic.php?f=4&t=215#p3380
Re: Installation on FreeBSD (FreeNAS)
Thank you for your reply! I did look at that link already, however I wasn't totally sure how relevant it was since above you said to just call the filebot.sh, not install it. I looked at that script, however /usr/local/bin/filebot does not exist. I did make sure it has the proper permissions though, and did already set up Transmission to call the script on completion (I also just double checked it, but it is does look correct in my settings.json file). I am not sure if it is even calling it though since I never get any logging. Unless I am missing something else from that link?
Re: Installation on FreeBSD (FreeNAS)
The point is how you pass arguments along to filebot, not how you call the filebot executable.
Transmission doesn't do any variable replacement, it'll just call your script, with certain environment variables preset:
Also, you might wanna read Shell Script Debugging for Beginners for some pointers.
Transmission doesn't do any variable replacement, it'll just call your script, with certain environment variables preset:
Code: Select all
--def "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME"
Re: Installation on FreeBSD (FreeNAS)
I see. Please excuse my ignorance, I managed to get FileBot running on my windows HTPC but am relatively clueless when it comes to FreeNAS so I am just stumbling along. I assumed the issue was with how it was being called from Transmission since in the past, even if I did something wrong, I could see it in the logs to troubleshoot/fix. Since I see nada in the logs, I assumed it was not being called. So this is not the case?
I didn't realize that Transmission was different than uTorrent in that regard, so does that mean I cannot use my script, only the one in the tutorial you provided the link for? Hmm, I wonder if that means it will not work for me then since I need downloads processed into my existing library, which it sounds like FileBot on FreeNAS will not do. Or am I missing something?
I didn't realize that Transmission was different than uTorrent in that regard, so does that mean I cannot use my script, only the one in the tutorial you provided the link for? Hmm, I wonder if that means it will not work for me then since I need downloads processed into my existing library, which it sounds like FileBot on FreeNAS will not do. Or am I missing something?
Re: Installation on FreeBSD (FreeNAS)
Sorry, after doing much googling, I think I see what you were trying to tell me but I was too thick to understand. My script is potentially fine, I just cannot use the % variables since Transmission (unlike uTorrent) does not pass the info along. So, I have removed all of those variables and replaced them with the ones you pasted (from the docs). I assume the other variables (like {n}) are OK because those are used by FileBot, not Transmission. Is that accurate?
I still have no idea how to debug this, even after looking through your link as the log at /var/log/message does not ever print any info on calling this, nor does amc.log. I do have it in settings.json and have this enabled, yet it does not seem to ever call it. Is there some other place I can look, or something else to check? I can call this script manually with sh ProcessDL.sh, however since I don't pass anything to it, it just lists what I am giving it and then says it failed. So, this is where I am now stuck. Any assistance would be appreciated!
I still have no idea how to debug this, even after looking through your link as the log at /var/log/message does not ever print any info on calling this, nor does amc.log. I do have it in settings.json and have this enabled, yet it does not seem to ever call it. Is there some other place I can look, or something else to check? I can call this script manually with sh ProcessDL.sh, however since I don't pass anything to it, it just lists what I am giving it and then says it failed. So, this is where I am now stuck. Any assistance would be appreciated!
Re: Installation on FreeBSD (FreeNAS)
You're not sure. There's no point in talking about filebot at this point, because it's not being called.Shell Script Debugging for Beginners wrote:Make sure your script is actually called

Right now you need to make a very simple bash script, that does a very simple thing (i.e. write date to file) and then you need to figure out how to make Transmission call that script. Transmission forums and Google will help, but please share the solution here in the forums once you got it.
