Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
I was wondering if "seeding until .... " option will be implemented ? Something like Dlink bittorent has ...
Offline
KyleK wrote:
Well, that is pretty self-explanatory, isn't it. I assume you haven't specified a download folder, so Transmission uses the default, which might not exist on your NAS.
Log in via ssh or telnet, and type "transmission-remote -f /mnt/HD_a2/Downloads" (or whereever you want to place downloads).
Thanks for helping, the attitude is pretty uncalled for tho...
Found the problem, the torrent I was testing with contains illegal characters in the filename (').
So the errormessage was missleading me. Other torrents works fine.
Offline
Sorry, I didn't mean to give any attitude. You didn't say though that other torrents worked fine, so I assumed it was a general problem.
Glad you found the cause of the problem.
Offline
Now that I have Transmission/Clutch up and running, how do I disable/uninstall the built-in client?
Offline
Erase the program directory.
Offline
Has anyone experienced that downloading chokes the uploads? I have a big torrent (80GB) downloading and even though it's running at only 50-100 KB/s (meaning connection is not saturated) my uploading stops in the meantime.
Edit: Additionally, I also discovered:
# transmission-remote -i transmission-remote: failed to connect to socket file: //.config/transmission/daemon/socket: No such file or directory
My socket file is at /mnt/HD_a2/.transmission/daemon/socket so I'm not sure what about the "//.config" part.
Last edited by vedeja (2008-07-28 09:01:33)
Offline
transmission-remote has to know where the socket file (or, more specifically, the deamons config folder) is located. The default is ~/.config/transmission.
Since you log in via telnet, there's no home folder, which explains the doubly slashes.
Add this line to /ffp/etc/rc:
export TRANSMISSION_HOME=/mnt/HD_a2/.transmission
If you use ssh instead of telnet, add the above line to /ffp/etc/profile.
Regarding your problems with upload, I can't say I've noticed that problem, but then again I rarely check on the status of Transmission.
Offline
Hi,
I have written a little script based on the original mantioned here that was set for BASH. I have amended it as there seemed to be a few issues for me and it works fine for FFP 0.5 and editing the script to change the BASE_DIR should allow it to run on the older versions.
I added the script to /mnt/HD_a2/.transmission/scripts and called it tran_watch.sh
I then created a /mnt/HD_a2/torrent_watch folder (mkdir /mnt/HD_a2/torrent_watch)
I then changed the permissions on the folder to be open to all (chmod 777 /mnt/HD_a2/torrent_watch)
Add it to the crontab to run every 5 minutes.
Copy any .torrent files to the volume_1/torrent_watch folder and they will get added every 5 minutes and will appear in clutch.
CODE
----------------------------------------------------
#!/bin/sh
# Set Variables.
WATCH_DIR='/mnt/HD_a2/torrent_watch' #Where it will look for .torrent files
BASE_DIR='/ffp' #For older funplug change to the funplug root (i.e. fun_plug.d)
TRANS_HOME='/mnt/HD_a2/.transmission' #Location transmission has been installed to.
LOG_FILE='$FFP/var/tran_autowatch.log' #Log file
NUM_FILES=`ls -l $WATCH_DIR |grep ".torrent" | wc -l`
if [ $NUM_FILES -gt 0 ];then
for file in $WATCH_DIR/*.torrent
do
$BASE_DIR/bin/transmission-remote -g $TRANS_HOME -a "$file"
echo "[`date`] "$file" added to queue." > $LOG_FILE
rm "$file"
sleep 1
done
fi
exit 0
--------------------------------------------------------------------------------------------------
The original code for BASH was posted by johanfa here -> http://mybookworld.wikidot.com/forum/t- … -watch-dir
RB
Offline
Ok,
I am now amending the torrent_helper.sh script which allows bandwidth throttling based on time, managing of completed torrents after a specified seeding ratio has been passed, automatic pickup of new .torrent files in a watch directory and shutdown of Transmission if there is nothing to so / startup is new .torrent files found.
This is a major rewrite of the script produced by kyyhkynen for the world book using BASH and found at http://kyyhkynen.net/stuff/mybook/torrent_helper.php
I am also adding scheduling of bandwidth based on day of week.
Will post more when complete and tested.
RB
Offline
Right,
Syntax checking complete for bash to sh conversion
Watch directory checking works
moving completed files after seeding a defined ratio works
Bandwidth scheduling by day (Mon -> Sunday) works
Shutdown of Transmission when nothing to do works
Starting of Transmission when new .torrent files found works
Max threads limit still untested (currently disabled).
Wrapper script still to be written
README file to be written
Items to be packaged
script is currently 403 lines (around 100 is only for variables and instructions).
RB
Offline
Today Transmission 1.30 was released and clutch is now intergraded, I'd love to see a version compiled for funplug. I'm a bit to green behind my linux-ears to compile it myself.....
Offline
Patience, young padawan :)
I built Transmission 1.3 (dev version) a couple of days ago, works fine.
I'll do a build of the final 1.3 later tonight and post it here.
Offline
Update: Transmission 1.3 has been released and you can download the funplug-0.5 versioen here.
I haven't had time to test it yet, I just compiled it. I'm not sure if it can work with existing configuration files/directories from Transmission 1.2x, I therefore suggest you provide a new settings folder (see start/transmission.sh) and start fresh.
Clutch is built-in now, and so is a small HTTP server, which means you won't need lighttpd anymore. You can access Clutch through http://<your NAS IP>:9091/transmission/web.
I won't put this in the first post yet, I'd like to test it first.
Offline
KyleK wrote:
Update: Transmission 1.3 has been released and you can download the funplug-0.5 versioen here.
I haven't had time to test it yet, I just compiled it. I'm not sure if it can work with existing configuration files/directories from Transmission 1.2x, I therefore suggest you provide a new settings folder (see start/transmission.sh) and start fresh.
Clutch is built-in now, and so is a small HTTP server, which means you won't need lighttpd anymore. You can access Clutch through http://<your NAS IP>:9091/transmission/web.
I won't put this in the first post yet, I'd like to test it first.
How about v1.31 :-).
I am more concerned with the following bug in 1.3 which has been fixed in 1.31
crash in 1.30 when adding torrents: div by zero
Link to forum post here -> http://forum.transmissionbt.com/viewtop … 779#p26779
Thanks for your work compiling the code though. i just need to make sure my util script will also work with 1.31.
RB
Offline
I compiled from the SVN repository. That bug is already fixed in the version I posted (it just hadn't been renamed to 1.31 yet).
Offline
KyleK wrote:
I compiled from the SVN repository. That bug is already fixed in the version I posted (it just hadn't been renamed to 1.31 yet).
Great, thanks
RB
Offline
Man I have the worst timing. Just as I get 1.22 working 1.31 comes out, lol. Is the best procedure at this point to uninstall Transmission/Clutch/Lighttpd or can you install over top?
EDIT: I removed Transmission, Clutch, and turned off Lighttpd. I left curl installed though. I did a funpkg -i Transmission-1.3-ffp0.5.tgz and that went fine. Tried to start transmission and get a "Could not find Transmission socket" error. When I take a peek at /mnt/HD_a2/.transmission in the transmission-daemon.log file, I see "/ffp/bin/transmission-daemon: can't load library 'libintl.so.8'". I figure the file belongs to a package that I missed installing. Which package does this it belong to?
Last edited by geegeez (2008-08-07 07:01:44)
Offline
Cannot launch Transmission 1.3.
Error:
/ffp/bin/transmission-daemon: can't load library 'libintl.so.8'
Did I miss something?
Offline
Darn it. That happens when you put this stuff up in a hurry, without testing.
Apparently Transmission now requires the gettext library.
Fetch it here.
Last edited by KyleK (2008-08-07 15:04:30)
Offline
KyleK wrote:
Apparently Transmission now requires the gettext library.
OK, that solved it. But what was wrong with the gettext package from fonz's site?
Secondly, Clutch is not available at http://<my NAS IP>:9091/transmission/web. Any suggestions?
Offline
Oh, I didn't realize fonz had already done gettext. Of course, you can use his version as well (it's even a bit smaller).
Transmission looks in various places for the web interface, but since funplug uses the /ffp prefix for its path structure, it won't find it.
You have to set the environment variable CLUTCH_HOME to "/ffp/share/transmission/web" and then restart Transmission.
I'll do a fully featured post for the new release with guides on how to set up authentication and stuff, but first I have to rebuild my computer.
I'll probably get to it on the weekend.
Offline
KyleK wrote:
Oh, I didn't realize fonz had already done gettext. Of course, you can use his version as well (it's even a bit smaller).
No, that's exactly what was NOT working, because I had his version installed already before trying 1.3 and it didn't work until I replaced it with the gettext that you pointed to.
Here's another (perhaps) strange thing: The Clutch 0.4 installation that I was using together with Transmission 1.22 is still working OK even with 1.3. I thought the protocol was completely rewritten and incompatible.
Last edited by vedeja (2008-08-07 15:01:51)
Offline
It is incompatible, the underlying protocol is totally different. Are you sure you shut down the old Transmission 1.22?
fonz' version of gettext 0.17 doesn't contain libintl at all, so no wonder it didn't work.
Last edited by KyleK (2008-08-07 15:05:55)
Offline
KyleK wrote:
It is incompatible, the underlying protocol is totally different. Are you sure you shut down the old Transmission 1.22?
I didn't stop the 1.22 daemon before uninstalling it, perhaps that's why. Anyway I stil couldn't get Clutch up. I'll just wait for your instructions. Thanks a lot for your work and help.
Offline