Installing Transmission on FreeBSD 7.1
Posted: Wed Sep 09, 2009 8:38 pm
Transmission and FreeBSD appear to have a different kind of logic. Files ended up in places I didn't want them too be. It took me a while to get it working. This post is for anyone strugling with it.
OS: FreeBSD 7.1-RELEASE
Transmission: 1.74 (8994)
After make + make install
Once I had done a make + make install in /usr/ports/net-p2p/transmission-daemon I found out:
This seems like a right spot for the config-files.
In /root/ I created a symlink. When starting transmission-daemon without the -g option, the daemon can still find the config files and creates them if not present. The daemon adds the 'transmission-daemon' directory by itself.
Copied web interface files. For some reason the make-install hadn't installed them. I ran transmission-daemon -f, and connected with a web-browser on port 9091 to find out where the daemon looks for the web-files.
Add 'transmission_enable="YES"' to enable the daemon
The startup-script /usr/local/etc/rc.d/transmission suggests to put a few more options in rc.conf. I prefer to set them in the startup-script itself:
To get confirmed that the daemon reads the right config-files, I changed the port to 9092, and connected to http://192.168.1.2:9092
"rpc-port": 9092,
I added the IP I connect from to the whitelist. I Will be accessing transmission through Apache eventually, so this setting is for testing purposes only. In my case:
"rpc-whitelist": "127.0.0.1,192.168.*.*",
I disabled port-forwarding. I like to do things manually. Besides that, I don't' need it, with Apache in mind.
"port-forwarding-enabled": false,
For access from the outside world I will be using Apache 2.2 as a secure reversed proxy. 'WIll be using', because Apache and I still have a difference of opinion on how this should work
OS: FreeBSD 7.1-RELEASE
Transmission: 1.74 (8994)
After make + make install
Once I had done a make + make install in /usr/ports/net-p2p/transmission-daemon I found out:
- The settings had been dropped in in /root/.config
- An unprivileged user 'transmission' was created.
- A directory /usr/local/etc/transmssion/home/ was created
Code: Select all
[/root>mkdir /usr/local/etc/transmission-daemon
Code: Select all
[/root/>ln -s /usr/local/etc/ .config
Code: Select all
[/root/>cp /usr/ports/net-p2p/transmission-daemon/work/transmission-1.74/web/ /usr/local/share/transmission
Code: Select all
[/root/>vi /etc/rc.conf
The startup-script /usr/local/etc/rc.d/transmission suggests to put a few more options in rc.conf. I prefer to set them in the startup-script itself:
- transmission_conf_dir="/usr/local/etc/transmission-daemon"
- transmission_download_dir="/whereever/you/want/them/"
- transmission_user="transmission"
Code: Select all
vi /usr/local/etc/transmission-daemon/settings.json
"rpc-port": 9092,
I added the IP I connect from to the whitelist. I Will be accessing transmission through Apache eventually, so this setting is for testing purposes only. In my case:
"rpc-whitelist": "127.0.0.1,192.168.*.*",
I disabled port-forwarding. I like to do things manually. Besides that, I don't' need it, with Apache in mind.
"port-forwarding-enabled": false,
For access from the outside world I will be using Apache 2.2 as a secure reversed proxy. 'WIll be using', because Apache and I still have a difference of opinion on how this should work
