jerrybme
Dabbler
- Joined
- Sep 28, 2011
- Messages
- 40
This How-to is a compendium from other posts per Joeschmuck's suggestion it would be nice to have the info in one place.
Transmission, firefly and minidlna are all included in the latest svn source. This How-to assumes you already know how to build your own freenas image or upgrade files. If not see these threads:
http://forums.freenas.org/showthrea...AS-(Part-1-Building-a-FreeBSD-Virtual-Machine)
http://forums.freenas.org/showthrea...ild-FreeNAS-(Part-2-Install-and-Build-FreeNAS)
In the steps below I use nano as my preferred editor, but you can use any of the installed editors, vi, ee, etc.
Step 1. Enable "MULTIMEDIA" your build
Once you've updated your source code:
Edit the line SW_FEATURES="DEBUG REPORTING" to SW_FEATURES="DEBUG REPORTING MULTIMEDIA"
save the file and build the files
Step 2. Upgrade or install the newly built version. I prefer the upgrade route as it is simpler and you don't have to build the image file. See: http://doc.freenas.org/index.php/Upgrading_FreeNAS#From_the_GUI
Step 3. Edit the Freenas files to configure Transmission
ssh into your Freenas box as root
Make it writeable
Edit rc.conf
Add the following lines:
transmission_enable="YES"
transmission_conf_dir="/mnt/location/where/you/keep-settings.json/file"
transmission_watch_dir="/mnt/watch/dir/location"
transmission_download_dir="/mnt/download/location"
transmission_user="www"
transmission_flags="-a 127.0.0.1,192.168.*.*"
The transmission_flags="-a 127.0.0.1,192.168.*.*" line allows connections to the Transmission webgui from your local network so you need to modify the 192.168 if your network is using a different IP range.
Save and exit the editor
Return Freenas to read only
Step 4. Test to check it is working:
Now open a browser and point it the Transmission webgui:
http://Your.Feenas-IP:9091
Try adding a torrent through the gui to make sure the file locations from your settings.json are correct. You should also make sure the paths in the rc.conf match the ones in settings.json.
If Transmission fails to start on reboot, you may need to delay Transmission from loading until your storage drives are loaded. Masterpc details how to edit /conf/base/etc/local/rc.d/transmission so that it runs after the storage drives are mounted.
Thanks to all that have posted the above info in the various threads.
Transmission, firefly and minidlna are all included in the latest svn source. This How-to assumes you already know how to build your own freenas image or upgrade files. If not see these threads:
http://forums.freenas.org/showthrea...AS-(Part-1-Building-a-FreeBSD-Virtual-Machine)
http://forums.freenas.org/showthrea...ild-FreeNAS-(Part-2-Install-and-Build-FreeNAS)
In the steps below I use nano as my preferred editor, but you can use any of the installed editors, vi, ee, etc.
Step 1. Enable "MULTIMEDIA" your build
Once you've updated your source code:
Code:
cd trunk/ nano build/nano_env
Edit the line SW_FEATURES="DEBUG REPORTING" to SW_FEATURES="DEBUG REPORTING MULTIMEDIA"
save the file and build the files
Code:
sh build/do_build.sh
Step 2. Upgrade or install the newly built version. I prefer the upgrade route as it is simpler and you don't have to build the image file. See: http://doc.freenas.org/index.php/Upgrading_FreeNAS#From_the_GUI
Step 3. Edit the Freenas files to configure Transmission
ssh into your Freenas box as root
Make it writeable
Code:
mount -wu /
Edit rc.conf
Code:
nano /conf/base/etc/rc.conf
Add the following lines:
transmission_enable="YES"
transmission_conf_dir="/mnt/location/where/you/keep-settings.json/file"
transmission_watch_dir="/mnt/watch/dir/location"
transmission_download_dir="/mnt/download/location"
transmission_user="www"
transmission_flags="-a 127.0.0.1,192.168.*.*"
The transmission_flags="-a 127.0.0.1,192.168.*.*" line allows connections to the Transmission webgui from your local network so you need to modify the 192.168 if your network is using a different IP range.
Save and exit the editor
Return Freenas to read only
Code:
mount -ro /
Step 4. Test to check it is working:
Code:
transmission-daemon -g /mnt/location/where/you/keep-settings.json/file
Now open a browser and point it the Transmission webgui:
http://Your.Feenas-IP:9091
Try adding a torrent through the gui to make sure the file locations from your settings.json are correct. You should also make sure the paths in the rc.conf match the ones in settings.json.
If Transmission fails to start on reboot, you may need to delay Transmission from loading until your storage drives are loaded. Masterpc details how to edit /conf/base/etc/local/rc.d/transmission so that it runs after the storage drives are mounted.
Thanks to all that have posted the above info in the various threads.