Setting up the multimedia (BT, DLNA/uPnP, iTunes) bits in 8.0.3-RELEASE_MULTIMEDIA

Status
Not open for further replies.
G

gcooper

Guest
So I just updated my FreeNAS 8 box to a multicore system and have a bunch of CPU cycles free. I would like the ability to run the Handbrake CLI from a FreeNAS plugin. I am a Web/Java developer and could help with the front end if there was support for getting the binaries to build. I would probably start with the ability to manually start the process from the plugin but later add the ability to configure a folder (or multiple for different profiles) toscan for new files and then execute a predetermined profile against the files, one at a time.

Is this something anyone else would be interested in. And would it make sense to put in this type of a release?

For 8.2, yes. The problem is that there isn't a reproducible way of creating a plugins jail, etc yet (something that I've brought up just recently on an iX list along with another laundry list of items that need to be resolved before plugins is really consumable by non-iX developers).

P.S. I read a thread about Java being a poor choice for FreeNAS because it required X11. That is not true, I've run many java applications on headless systems. The Open-JDK provides a "headless" install package for linux. And the SUN jvm can be run in headless mode with the "-Djava.awt.headless=true" command line argument. Now if the java app in question is written to use windowing toolkits than that changes it. Anyhow, my 2 cents.

You're assuming that the ports maintainer(s) have put in knobs for java to work without X11 on FreeBSD. This isn't the case. Once this support is available, then yes.. Java can build without all of X11, but until then it needs it.
 

revoman

Dabbler
Joined
Jan 11, 2012
Messages
13
For 8.2, yes. The problem is that there isn't a reproducible way of creating a plugins jail, etc yet (something that I've brought up just recently on an iX list along with another laundry list of items that need to be resolved before plugins is really consumable by non-iX developers).
Fair enough. I'll pull down the current multimedia release and get a feel for what's been done so far. Then I'll look into running Handbrake on FreeBSD 8.2 and go from there.


You're assuming that the ports maintainer(s) have put in knobs for java to work without X11 on FreeBSD. This isn't the case. Once this support is available, then yes.. Java can build without all of X11, but until then it needs it.

I have forgotten about the lack of a good jdk on FreeBSD. Thanks for the kind response and all the great work! ;)
 

awjs

Dabbler
Joined
Dec 20, 2011
Messages
16
NOTE: this document is complete, but needs polishing (I need to do a final run-through of the directions)..

The following guide is intermediate and is aimed towards individuals who want to look at the multimedia components in FreeNAS that will be present in 8.2.0 as plugins, but with a stable codebase until the official 8.2.0 release is done.

This writeup assumes the following:

1. You want to test out the BT, DLNA/uPnP, iTunes applications before the official plugins are released for 8.2.0.
2. You aren't afraid to go on to the command line/shell (use ee/vi, etc) to get things to work.
3. You can do basic troubleshooting to get things, or provide enough information in order to get things to work.

The examples in this email assume the following:

1. The username is "gcooper".
2. The path to the location where the media files is stored is housed somewhere on '/mnt/tank'.

The flow of the writeup is as follows:

* FAQs
* Bittorrent (Transmission)
- Copying over the Files
- Modifying the Sample File
- Enabling Transmission at Boot
- Controlling Transmission Remotely
* DLNA/uPnP (minidlna)
* iTunes (firefly)
* References

==========
FAQs
==========

* Q: Why isn't this stuff in the GUI yet?
* A: We're working on it and it'll be in 8.2.0+. Please be patient.

* Q: Why did you rewrite FreeNAS 8.x? FreeNAS 0.7 did this and more!
* A: Perhaps it was more featureful in this area, but it wasn't extensible. This is off-topic and not relevant.

* Q: Why are you using software A.B.C (ex. minidlna) instead of X.Y.Z (e.g. mediatomb, serviio)?
* A: This has been hashed over in several threads prior to this; as such I suggest that you search in the forums before asking this question. If you want to discuss importing a different piece of software and standardizing "the" defacto plugin on that software, please PM me with your request and a working procedure and/or end-to-end documentation on how to integrate it into FreeNAS using command line arguments and/or a set of configuration files. I'd like to avoid Serviio if at all possible though because it's Java based and Java requires X11 stuff in order to function (my goal is to remove all of the X11 components from FreeNAS eventually).

* Q: But mediatomb/transmission/etc already has a GUI? Why aren't you using that?
* A: That works for general purpose machines/users, but we want the software to cleanly tie into FreeNAS.

* Q: Why aren't you using Fuppes? It's in FreeNAS 0.7?
* A: The website's been dead for quite a while and it appears to be an inactive project. FreeNAS and some of the developers involved aren't interested in taking on any more projects at this time :).

==========
Bittorrent
==========

---------------------------------
Preconditions
---------------------------------

1. You need to create a user with a home directory on persistent storage (e.g. '/mnt/tank/home/gcooper').

---------------------------------
Copying Over the Files
---------------------------------

1. Login as the user that will be running transmission, e.g. "gcooper".
2. Issue the following commands to copy the file over the sample settings.json file, modifying according to your user's settings, and create some directories for Transmission:

Code:
mkdir -p "$HOME/.config/transmission-daemon"
mkdir -p "$HOME/transmission/incomplete"
mkdir -p "$HOME/transmission/complete"
cp /usr/local/etc/transmission/home/settings.json $HOME/.config/transmission-daemon/.
sed -e '' -i '' "s,/mnt/tank/home,`dirname $HOME`,g" \
       -e 's,myuser,'`whoami`',g' $HOME/.config/transmission-daemon/settings.json


---------------------------------
The Sample File
---------------------------------

A sample settings.json file is present in $HOME/.config/transmission-daemon/settings.json ; some settings
that you might want to change are as follows:

peer-port : the port used for incoming BitTorrent requests. You probably want to change this and make sure to open up the firewall / NAT on your router/switch if needed to to your NAS box.
speed-limit-down : download speed limit
speed-limit-down-enabled : download speed limit toggle
speed-limit-up : upload speed limit
speed-limit-up-enabled : upload speed limit toggle

---------------------------------
Enabling Transmission at Boot
---------------------------------

Run the following commands as root:

Code:
mount -wu /
sed -i '' \
    -e 's/\(transmission_enable="\)NO"/\1YES"/' \
    -e 's/\(transmission_user="\)myuser/\1'`whoami`'\"/g' /etc/rc.conf
sed -i '' \
    -e 's/\(transmission_enable="\)NO"/\1YES"/' \
    -e 's/\(transmission_user="\)myuser/\1'`whoami`'\"/g' /conf/base/etc/rc.conf
mount -ru /


---------------------------------
Controlling Transmission Remotely
---------------------------------

Remote control is a really cool feature in transmission. You can login from authorized boxes while the daemon runs in the background grinding away on torrents

You can control (add torrents, monitor download stats, change settings, etc) the transmission daemon on your FreeNAS box by connecting via one of the clients noted here (look for Transmission-remote-*): http://www.transmissionbt.com/resources/ . The author recommends "transmission-remote-dotnet" for Windows users.

The key to enabling the remote control feature is to change
Code:
rpc-enabled
to
Code:
true
in settings.json. The author suggests setting a value for
Code:
rpc-username
and changing
Code:
rpc-password
to something more meaningful.

---------------------------------
Testing Your Changes
---------------------------------

The best way to test your changes is to execute the following as root:

Code:
transmission-daemon -f


This will run transmission in the foreground so you can monitor progress when adding files to daemon.

Once you're satisfied with your results, enter in "Control-C" to exit from the daemon (this will potentially interrupt any torrent service being done at the time), and then enter in the following command as root:
Code:
service transmission start
and
Code:
service transmission status
to verify that the daemon is running. Congratulations -- you now have a working torrent client on FreeNAS!

==========
DLNA/uPnP
==========

---------------------------------
Preconditions
---------------------------------

1. You need to create a user with a home directory on persistent storage (e.g. '/mnt/tank/home/gcooper').

---------------------------------
Copying Over the Files
---------------------------------

1. Login as the user that will be housing the config files, e.g. "gcooper".
2. Issue the following commands to copy the file over the sample minidlna.conf file, modifying according to your user's settings, and create some directories for Minidlna:

Code:
mkdir -p "$HOME/var/db/minidlna"
mount -wu /
cp /conf/base/usr/local/etc/minidlna.conf $HOME/.
sed -i '' -e "s,/mnt/tank/home,`dirname $HOME`,g" \
            -e "s/myuser/`whoami`/g" \
            $HOME/minidlna.conf


---------------------------------
The Sample File
---------------------------------

A sample minidlna.conf file is present in $HOME/minidlna.conf ; some settings that you might want to change are as follows:

db_dir : directory where the minidlna media database will live.
media_dir : directory where media files can be grabbed from.

---------------------------------
Enabling minidlna at Boot
---------------------------------

Run the following commands as root:

Code:
mount -wu /
sed -i '' \
    -e 's/\(minidlna_enable="\)NO"/\1YES"/' \
    -e "s,\(minidlna_flags=.*\)/mnt/tank/home/myuser/\(.*\),\1$HOME\2,g" /etc/rc.conf
sed -i '' \
    -e 's/\(minidlna_enable="\)NO"/\1YES"/' \
    -e "s,\(minidlna_flags=.*\)/mnt/tank/home/myuser/\(.*\),\1$HOME\2,g" /conf/base/etc/rc.conf
mount -ru /


---------------------------------
Testing Your Changes
---------------------------------

The best way to test your changes is to execute the following as root:

Code:
mt-daapd -d -f $HOME/minidlna.conf


This will run firefly in the foreground so you can monitor progress when adding files to daemon.

Once you're satisfied with your results, enter in "Control-C" to exit from the daemon, and then enter in the following command as root:
Code:
service minidlna start
and
Code:
service minidlna status
to verify that the daemon is running. Congratulations -- you now have a working DLNA server running on FreeNAS!

==========
iTunes
==========

---------------------------------
Preconditions
---------------------------------

1. You need to create a user with a home directory on persistent storage (e.g. '/mnt/tank/home/gcooper').

---------------------------------
Copying Over the Files
---------------------------------

1. Login as the user that will be housing the config files, e.g. "gcooper".
2. Issue the following commands to copy the file over the sample mt-daapd.conf file, modifying according to your user's settings, and create some directories for Firefly:

Code:
mkdir -p "$HOME/var/db/mt-daapd"
chown daapd "$HOME/var/db/mt-daapd"
mount -wu /
cp /conf/base/usr/local/etc/mt-daapd.conf $HOME/.
sed -i '' -e "s,/mnt/tank/home,`dirname $HOME`,g" \
            -e "s/myuser/`whoami`/g" \
            $HOME/mt-daapd.conf


---------------------------------
The Sample File
---------------------------------

A sample mt-daapd.conf file is present in $HOME/mt-daapd.conf ; some settings that you might want to change are as follows:

admin_pw : administrator password.
db_parms : path for the where the iTunes/Firefly database should be.
mp3_dir : directory for where the mp3s, etc can be found.
servername : name of the iTunes share.

---------------------------------
Enabling mt-daapd at Boot
---------------------------------

Run the following commands as root:

Code:
mount -wu /
sed -i '' \
    -e 's/\(mt_daapd_enable="\)NO"/\1YES"/' \
    -e "s,\(mtdaapd_flags=.*\)/mnt/tank/home/myuser/\(.*\),\1$HOME\2,g" /etc/rc.conf
sed -i '' \
    -e 's/\(mt_daapd_enable="\)NO"/\1YES"/' \
    -e "s,\(mtdaapd_flags=.*\)/mnt/tank/home/myuser/\(.*\),\1$HOME\2,g" /conf/base/etc/rc.conf
mount -ru /


---------------------------------
Testing Your Changes
---------------------------------

The best way to test your changes is to execute the following as root:

Code:
mt-daapd -c $HOME/mt-daapd.conf -f


This will run firefly in the foreground so you can monitor progress when adding files to daemon.

Once you're satisfied with your results, enter in "Control-C" to exit from the daemon, and then enter in the following command as root:
Code:
service mt-daapd start
and
Code:
service mt-daapd status
to verify that the daemon is running. Congratulations -- you now have a working iTunes server running on FreeNAS!

==========
References
==========

---------------------------------
BitTorrent (Transmission)
---------------------------------

1. Editing config files in Transmission - https://trac.transmissionbt.com/wiki/EditConfigFiles

---------------------------------
DLNA/uPNP (Minidlna)
---------------------------------

1. http://forums.freenas.org/showthrea...dlna-on-the-freenas-nightlies-post-09-25-2011

---------------------------------
Daapd/iTunes (firefly)
---------------------------------

1. http://forums.freenas.org/showthrea...efly-on-the-freenas-nightlies-post-09-25-2011

sorry but can someone please help I keep getting errors

operation not allowed and permission denied in the very beginning of this guide please I need to help

Thanks
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
sorry but can someone please help I keep getting errors

operation not allowed and permission denied in the very beginning of this guide please I need to help

Thanks
Please be specific, which section are you having problems with? Have you read the entire thread?
 

awjs

Dabbler
Joined
Dec 20, 2011
Messages
16
Please be specific, which section are you having problems with? Have you read the entire thread?

DLNA/uPnP
==========

---------------------------------
Preconditions
---------------------------------

1. You need to create a user with a home directory on persistent storage (e.g. '/mnt/tank/home/gcooper').

---------------------------------
Copying Over the Files
---------------------------------

1. Login as the user that will be housing the config files, e.g. "gcooper".
2. Issue the following commands to copy the file over the sample minidlna.conf file, modifying according to your user's settings, and create some directories for Minidlna:

Code:

mkdir -p "$HOME/var/db/minidlna"
mount -wu /
cp /conf/base/usr/local/etc/minidlna.conf $HOME/.
sed -i '' -e "s,/mnt/tank/home,`dirname $HOME`,g" \
-e "s/myuser/`whoami`/g" \
$HOME/minidlna.conf

I login in as dlna the use name I used

try to start from the first step and get no where

All I get is operation not allowed when I mkdir, then I get permission denied when I mount -wu /

It would be nice if someone would give steps on how to step up the

Preconditions
---------------------------------

1. You need to create a user with a home directory on persistent storage (e.g. '/mnt/tank/home/gcooper').

I think this might be where the problem is maybe.

Also I gave this the dlna user wheel permission to see if it worked and no dice
 

sonisame72

Dabbler
Joined
Aug 14, 2011
Messages
25
Hi
I am also seeing following error for transmission.
Starting transmission.
TERM: Undefined variable.
/usr/local/etc/rc.d/transmission: WARNING: failed to start transmission

I looked in my settings.json and cannot find a typo. Is there a way to root cause in what's causing this?

sonisame72
 
G

gcooper

Guest
Hi
I am also seeing following error for transmission.
Starting transmission.
TERM: Undefined variable.
/usr/local/etc/rc.d/transmission: WARNING: failed to start transmission

I looked in my settings.json and cannot find a typo. Is there a way to root cause in what's causing this?

sonisame72

The "TERM" output is noise. Can you please attach your .json file to a pastebin so I can look at it? Thanks!
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
DLNA/uPnP
==========

As I said, did you read the thread? Apparently not. Read post #15. Mid way through I gave a procedure which worked for me and I suspect it will work for anyone else. I know gcooper was trying to make it a simple procedure but I couldn't wrap my head around it nor make it work as written (if I was following it correctly). He's a programmer, I'm and engineer, we have different views and it's a sure recipe for disaster. We get along just fine, it's just two different approaches to a similar ending.
 

LepineY

Cadet
Joined
Jan 13, 2012
Messages
1
Joe's Post#15 worked for me

THanks Joe, I couldn't follow the original instructions to get DLNA working.
Your rewritten ones worked for me.

A couple of points I will add.
I fell in the trap of not taking the #'s out of the minidlna.conf file

Mine looked like :
# GC: Look for everything (audio, pictures, video) in this directory.
# media_dir=/mnt/ZPool/Media
# GC: Just audio
# media_dir=A,/mnt/ZPool/Media
# GC: Just pictures
# media_dir=P,/mnt/ZPool/Media
# GC: Just video
# media_dir=V,/mnt/ZPool/Media

So my clients could never see any files until I took those out.

Also Joe, in your instructions you have
"mkdir -p /mnt/pool/dlna/var/db/minidlna"
to create the minidlna directory -
I modified the db_dir line in my minidlna.conf file to:
db_dir=/mnt/ZPool/dlna/var/db/minidlna

I didn't see that in your instructions - If I missed it I stand corrected.

THanks again.

Y
 

Skaven

Dabbler
Joined
Oct 25, 2011
Messages
31
Hello My transmission works grate :). I haw 1 question how do i upgrade My transmission to latest version?
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
THanks Joe, I couldn't follow the original instructions to get DLNA working.
Your rewritten ones worked for me.

A couple of points I will add.
I fell in the trap of not taking the #'s out of the minidlna.conf file

Mine looked like :
# GC: Look for everything (audio, pictures, video) in this directory.
# media_dir=/mnt/ZPool/Media
# GC: Just audio
# media_dir=A,/mnt/ZPool/Media
# GC: Just pictures
# media_dir=P,/mnt/ZPool/Media
# GC: Just video
# media_dir=V,/mnt/ZPool/Media

So my clients could never see any files until I took those out.

Also Joe, in your instructions you have
"mkdir -p /mnt/pool/dlna/var/db/minidlna"
to create the minidlna directory -
I modified the db_dir line in my minidlna.conf file to:
db_dir=/mnt/ZPool/dlna/var/db/minidlna

I didn't see that in your instructions - If I missed it I stand corrected.

THanks again.

Y
Thanks for the feedback, I'll change that right now. As for the "mkdir -p /mnt/pool/dlna/var/db/minidlna", the instructions directly above step 1 hopefully give the impression to rename the "pool" to your pools name. If it wasn't clear, I would appreciate a suggestion on how to word it properly. I might be too close to the project to see it from your point of view.

Just a few comments...
Due to how it looks like you are using a single directory for all your media, you only need to specify:
media_dir=/mnt/ZPool/Media

You can delete all the other references to media_dir.
 

Stenull

Dabbler
Joined
Aug 22, 2011
Messages
45
Hi!
I have some trouble with Transmission.

My user to run Transmission is torrent.
I can start deamon with "service transmission start" when logged in as torrent. All my settings done in torrents home works flawlessly and i can connect with transmission-remote-dotnet. Lovely.

when i see this section about surviving boot,
---------------------------------
Enabling Transmission at Boot
---------------------------------

Run the following commands as root:
Code:
mount -wu /
sed -i '' \
    -e 's/\(transmission_enable="\)NO"/\1YES"/' \
    -e 's/\(transmission_user="\)myuser/\1'`whoami`'\"/g' /etc/rc.conf
sed -i '' \
    -e 's/\(transmission_enable="\)NO"/\1YES"/' \
    -e 's/\(transmission_user="\)myuser/\1'`whoami`'\"/g' /conf/base/etc/rc.conf
mount -ru /
should it look like this in both rc.conf?
Code:
transmission_enable="YES"
transmission_watch_dir=""
transmission_download_dir=""
transmission_user="root"

I couldn't get sed command to work so i alter manually.

Now deamon start up after reboot but now my settings isn't loaded.

Have done some testing, if i start transmission manually from root with "transmission-daemon -f" it complains alot
Code:
Couldn't create "/root/.config": Read-only file system (utils.c:557)
[10:25:07.384] Couldn't create "/root/.config": Read-only file system (utils.c:557)
[10:25:07.384] Couldn't create "/root/.config": Read-only file system (utils.c:557)
[10:25:07.384] Transmission 2.32 (12526) started (session.c:704)
[10:25:07.384] RPC Server Adding address to whitelist: 127.0.0.1 (rpc-server.c:805)
[10:25:07.384] RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:982)
[10:25:07.384] RPC Server Whitelist enabled (rpc-server.c:986)
[10:25:07.384] UDP Failed to set receive buffer: No buffer space available (tr-udp.c:56)
[10:25:07.384] UDP Failed to set send buffer: No buffer space available (tr-udp.c:62)
[10:25:07.384] UDP Failed to set receive buffer: requested 4194304, got 42080 (tr-udp.c:75)
[10:25:07.384] UDP Failed to set send buffer: requested 1048576, got 9216 (tr-udp.c:86)
[10:25:07.384] DHT Generating new id (tr-dht.c:309)
[10:25:07.384] Using settings from "/root/.config/transmission-daemon" (daemon.c:488)
[10:25:07.384] Couldn't save temporary file "/root/.config/transmission-daemon/settings.json.tmp.GH2Ovo": No such file or directory (bencode.c:1734)
[10:25:07.384] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (natpmp.c:72)
[10:25:07.384] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2) (natpmp.c:72) getaddrinfo() error : hostname nor servname provided, or not known
[10:25:09.387] Port Forwarding (UPnP) Found Internet Gateway Device "http://192.168.1.1:43177/ctl/IPConn" (upnp.c:113)
[10:25:09.387] Port Forwarding (UPnP) Local Address is "192.168.1.38" (upnp.c:115)
[10:25:09.387] Port Forwarding (UPnP) Port forwarding through "http://192.168.1.1:43177/ctl/IPConn", service "urn:schemas upnp-org:service:WANIPConnection:1". (local address: 192.168.1.38:51413) (upnp.c:221)
[10:25:09.387] Port Forwarding (UPnP) Port forwarding successful! (upnp.c:224)
[10:25:09.387] Port Forwarding Port Forwarding (port-forwarding.c:93)
[10:25:47.438] DHT Attempting bootstrap from dht.transmissionbt.com (tr-dht.c:247)
[10:25:47.439] DHT dht.transmissionbt.com:6881: hostname nor servname provided, or not known (tr-dht.c:125)
[10:26:31.499] DHT dht.transmissionbt.com:6881: hostname nor servname provided, or not known (tr-dht.c:125)


In my noobish eyes i see it as transmission try to look for settings.json in roots home.
I tried to alter rc.conf from transmission_user="root" to transmission_user="torrent" and now it doesn't start at all after reboot.

Have i missed something important? i have gone through the how-to several times now.
i use shell csh for user torrent could that be why sed command aint working?
torrent is member of group wheel.

to sum up:
service works perfectly when started from user torrent.
transmission cant load my config when started under root.

Hope my post is more informative than confusing :)
 

Skaven

Dabbler
Joined
Oct 25, 2011
Messages
31
Hi!
I have some trouble with Transmission.

My user to run Transmission is torrent.
I can start deamon with "service transmission start" when logged in as torrent. All my settings done in torrents home works flawlessly and i can connect with transmission-remote-dotnet. Lovely.

when i see this section about surviving boot,

should it look like this in both rc.conf?
Code:
transmission_enable="YES"
transmission_watch_dir=""
transmission_download_dir=""
transmission_user="root"

I couldn't get sed command to work so i alter manually.

Now deamon start up after reboot but now my settings isn't loaded.

Have done some testing, if i start transmission manually from root with "transmission-daemon -f" it complains alot
Code:
Couldn't create "/root/.config": Read-only file system (utils.c:557)
[10:25:07.384] Couldn't create "/root/.config": Read-only file system (utils.c:557)
[10:25:07.384] Couldn't create "/root/.config": Read-only file system (utils.c:557)
[10:25:07.384] Transmission 2.32 (12526) started (session.c:704)
[10:25:07.384] RPC Server Adding address to whitelist: 127.0.0.1 (rpc-server.c:805)
[10:25:07.384] RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:982)
[10:25:07.384] RPC Server Whitelist enabled (rpc-server.c:986)
[10:25:07.384] UDP Failed to set receive buffer: No buffer space available (tr-udp.c:56)
[10:25:07.384] UDP Failed to set send buffer: No buffer space available (tr-udp.c:62)
[10:25:07.384] UDP Failed to set receive buffer: requested 4194304, got 42080 (tr-udp.c:75)
[10:25:07.384] UDP Failed to set send buffer: requested 1048576, got 9216 (tr-udp.c:86)
[10:25:07.384] DHT Generating new id (tr-dht.c:309)
[10:25:07.384] Using settings from "/root/.config/transmission-daemon" (daemon.c:488)
[10:25:07.384] Couldn't save temporary file "/root/.config/transmission-daemon/settings.json.tmp.GH2Ovo": No such file or directory (bencode.c:1734)
[10:25:07.384] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (natpmp.c:72)
[10:25:07.384] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2) (natpmp.c:72) getaddrinfo() error : hostname nor servname provided, or not known
[10:25:09.387] Port Forwarding (UPnP) Found Internet Gateway Device "http://192.168.1.1:43177/ctl/IPConn" (upnp.c:113)
[10:25:09.387] Port Forwarding (UPnP) Local Address is "192.168.1.38" (upnp.c:115)
[10:25:09.387] Port Forwarding (UPnP) Port forwarding through "http://192.168.1.1:43177/ctl/IPConn", service "urn:schemas upnp-org:service:WANIPConnection:1". (local address: 192.168.1.38:51413) (upnp.c:221)
[10:25:09.387] Port Forwarding (UPnP) Port forwarding successful! (upnp.c:224)
[10:25:09.387] Port Forwarding Port Forwarding (port-forwarding.c:93)
[10:25:47.438] DHT Attempting bootstrap from dht.transmissionbt.com (tr-dht.c:247)
[10:25:47.439] DHT dht.transmissionbt.com:6881: hostname nor servname provided, or not known (tr-dht.c:125)
[10:26:31.499] DHT dht.transmissionbt.com:6881: hostname nor servname provided, or not known (tr-dht.c:125)


In my noobish eyes i see it as transmission try to look for settings.json in roots home.
I tried to alter rc.conf from transmission_user="root" to transmission_user="torrent" and now it doesn't start at all after reboot.

Have i missed something important? i have gone through the how-to several times now.
i use shell csh for user torrent could that be why sed command aint working?
torrent is member of group wheel.

to sum up:
service works perfectly when started from user torrent.
transmission cant load my config when started under root.

Hope my post is more informative than confusing :)


no it is wrong this is my

transmission_enable="YES"
transmission_conf_dir="/mnt/Internet_Disk/user/home/golab/.config/transmission-daemon" <----- where the config file is stored settings.json
transmission_watch_dir="/mnt/Filmer/Torr/watch"
transmission_download_dir="/mnt/Filmer/Torr/complete" <-- the folder i store the complete downloaded files in
transmission_user="golab" <--- the name of the account u using to run Transmission whit. golab is my account i made to run my torrent app whit
 

Stenull

Dabbler
Joined
Aug 22, 2011
Messages
45
'Thanks Skaven, im trying it out right now!
how did you find out those extra lines like transmission_conf_dir="?
those wasn't there from beginning...

watch_dir & download_dir, are those important? i declare it in my settings.json...

Now it seems to wake up as it should after reboot :)
i can connect with transmission-remote-dotnet so my settings seems to been loaded.
Big thanx Skaven!
 

Skaven

Dabbler
Joined
Oct 25, 2011
Messages
31
'Thanks Skaven, im trying it out right now!
how did you find out those extra lines like transmission_conf_dir="?
those wasn't there from beginning...

watch_dir & download_dir, are those important? i declare it in my settings.json...

i count remember where i found transmission_conf_dir probably i google freeness 8 transmission-demond i believe it is important so the system clowns where the config file fore the account running transmission, it exists 2 ways on the freeness forum how to setup transmission 1 is to us root account to be the account running transmission and the second is making new account running transmission the second way is the more secure way, and i believe transmission_conf_dir is fore the second setup, and the watch_dir & download_dir i setup because the already exists in the config rc.config file
 

awjs

Dabbler
Joined
Dec 20, 2011
Messages
16
As I said, did you read the thread? Apparently not. Read post #15. Mid way through I gave a procedure which worked for me and I suspect it will work for anyone else. I know gcooper was trying to make it a simple procedure but I couldn't wrap my head around it nor make it work as written (if I was following it correctly). He's a programmer, I'm and engineer, we have different views and it's a sure recipe for disaster. We get along just fine, it's just two different approaches to a similar ending.

Yes I did read though and tried your post and then I restarted the server and nothing worked, on streaming to my windows media, but I am going to do a fresh install of 8.0.3 multimedia and do your instruction again thx. Can you also make a guide on how to get the iTunes section working as you said you both have different ways so I would like to see how you would get the itunes part working... Also when I had ver 7 I had streaming,itunes and time machine so that is what I would like to have on the new ver 8 but I need it now, so if I cant get it working I guess I will have to go back to ver 7 but as you all will say ver 8 is better, please inform me what do Thanks again
 

sonisame72

Dabbler
Joined
Aug 14, 2011
Messages
25
i count remember where i found transmission_conf_dir probably i google freeness 8 transmission-demond i believe it is important so the system clowns where the config file fore the account running transmission, it exists 2 ways on the freeness forum how to setup transmission 1 is to us root account to be the account running transmission and the second is making new account running transmission the second way is the more secure way, and i believe transmission_conf_dir is fore the second setup, and the watch_dir & download_dir i setup because the already exists in the config rc.config file

Once I added config directory location and watch/completed directories in rc.conf in two locations mentioned in original locations mentioned by gcooper, all works like a charm.

I no more get errors with variable TERM.

gcooper, If this makes sense, please add these above mentioned addons to rc.conf in your original post.

Thanks
Sonisame
 

awjs

Dabbler
Joined
Dec 20, 2011
Messages
16
As I said, did you read the thread? Apparently not. Read post #15. Mid way through I gave a procedure which worked for me and I suspect it will work for anyone else. I know gcooper was trying to make it a simple procedure but I couldn't wrap my head around it nor make it work as written (if I was following it correctly). He's a programmer, I'm and engineer, we have different views and it's a sure recipe for disaster. We get along just fine, it's just two different approaches to a similar ending.

Joe THANK YOU THANK YOU i reinstalled the latest build 8.0.3 multimedia and followed your steps and it works (only one issue maybe you can help: all my files show double files for each item).... also please if you can please make a step by step for iTunes and firefly PLEASE PLEASE... Thanks again for your help :smile:
 
Status
Not open for further replies.
Top