Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
I loaded curl and tranmission for the DNS 320 and changed the transmission_home line information to /mnt/HD/HD_a2/.tranmission-daemon.
When I envoke the long input startingwith su nobody, the following is the output.
Specifically the last three lines. Assuming something is amiss before I proceed further??
¨(output)
Transmission 2.32 (12523) http://www.transmissionbt.com/
A fast and easy BitTorrent client
transmission-daemon is a headless Transmission session
that can be controlled via transmission-remote
or the web interface.
Usage: transmission-daemon [options]
Options:
-h --help Display this help page and exit
-a --allowed <list> Allowed IP addresses. (Default:
127.0.0.1)
-b --blocklist Enable peer blocklists
-B --no-blocklist Disable peer blocklists
-c --watch-dir <directory> Where to watch for new .torrent files
-C --no-watch-dir Disable the watch-dir
--incomplete-dir <directory> Where to store new torrents until
they're complete
--no-incomplete-dir Don't store incomplete torrents in a
different location
-d --dump-settings Dump the settings and exit
-e --logfile <filename> Dump the log messages to this filename
-f --foreground Run in the foreground instead of
daemonizing
-g --config-dir <path> Where to look for configuration files
-p --port <port> RPC port (Default: 9091)
-t --auth Require authentication
-T --no-auth Don't require authentication
-u --username <username> Set username for authentication
-v --password <password> Set password for authentication
-V --version Show version number and exit
--log-error Show error messages
--log-info Show error and info messages
--log-debug Show error, info, and debug messages
-w --download-dir <path> Where to save downloaded data
--paused Pause all torrents on startup
-o --dht Enable distributed hash tables (DHT)
-O --no-dht Disable distributed hash tables (DHT)
-y --lpd Enable local peer discovery (LPD)
-Y --no-lpd Disable local peer discovery (LPD)
--utp Enable uTP for peer connections
--no-utp Disable uTP for peer connections
-P --peerport <port> Port for incoming peers (Default:
51413)
-m --portmap Enable portmapping via NAT-PMP or UPnP
-M --no-portmap Disable portmapping
-L --peerlimit-global <limit> Maximum overall number of peers
(Default: 240)
-l --peerlimit-torrent <limit> Maximum number of peers per torrent
(Default: 60)
-er --encryption-required Encrypt all peer connections
-ep --encryption-preferred Prefer encrypted peer connections
-et --encryption-tolerated Prefer unencrypted peer connections
-i --bind-address-ipv4 <ipv4 addr> Where to listen for peer connections
-I --bind-address-ipv6 <ipv6 addr> Where to listen for peer connections
-r --rpc-bind-address <ipv4 addr> Where to listen for RPC connections
-gsr --global-seedratio ratio All torrents, unless overridden by a
per-torrent setting, should seed until
a specific ratio
-GSR --no-global-seedratio All torrents, unless overridden by a
per-torrent setting, should seed
regardless of ratio
-x --pid-file <pid-file> Enable PID file
sh: /mnt/HD/HD_a2/.transmission-daemon: not found
sh: /mnt/HD/HD_a2/Downloads: not found
sh: 127.0.0.1,192.168.0.*: not found
Offline
Okay my problem was using the carriage return to separate lines on the instruction page. I entred the instruction set as one long rambling input LOL.
Seems to be working somewhat please find below the output........ It stuck on something it cant find.........???
As well it appears to be attempting port forwarding not through the router .0.1 but through a pc, .0.35
[16:58:12.093] Transmission 2.32 (12523) started (session.c:704)
[16:58:12.093] RPC Server Adding address to whitelist: 127.0.0.1 (rpc-server.c:805)
[16:58:12.093] RPC Server Adding address to whitelist: 192.168.0.* (rpc-server.c:805)
[16:58:12.093] RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:982)
[16:58:12.093] RPC Server Whitelist enabled (rpc-server.c:986)
[16:58:12.094] RPC Server Password required (rpc-server.c:989)
[16:58:12.094] UDP Failed to set receive buffer: requested 4194304, got 217088 (tr-udp.c:75)
[16:58:12.094] UDP Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf (tr-udp.c:80)
[16:58:12.094] UDP Failed to set send buffer: requested 1048576, got 217088 (tr-udp.c:86)
[16:58:12.094] UDP Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf (tr-udp.c:91)
[16:58:12.094] DHT Generating new id (tr-dht.c:309)
[16:58:12.094] Using settings from "/mnt/HD/HD_a2/.transmission-daemon" (daemon.c:488)
[16:58:12.095] Saved "/mnt/HD/HD_a2/.transmission-daemon/settings.json" (bencode.c:1721)
[16:58:12.095] transmission-daemon requiring authentication (daemon.c:508)
[16:58:12.095] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (natpmp.c:72)
[16:58:12.095] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2) (natpmp.c:72)
[16:58:15.111] Port Forwarding (UPnP) Found Internet Gateway Device "http://192.168.0.35:80/UD/?3" (upnp.c:113)
[16:58:15.111] Port Forwarding (UPnP) Local Address is "192.168.0.55" (upnp.c:115)
[16:58:15.111] Port Forwarding (UPnP) Port forwarding through "http://192.168.0.35:80/UD/?3", service "urn:schemas-upnp-org:service:WANIPConnection:1". (local address: 192.168.0.55:51413) (upnp.c:221)
[16:58:15.111] Port Forwarding (UPnP) Port forwarding successful! (upnp.c:224)
[16:58:15.111] Port Forwarding Forwarded (port-forwarding.c:93)
[16:59:01.385] DHT Attempting bootstrap from dht.transmissionbt.com (tr-dht.c:247)
[17:00:01.742] DHT dht.transmissionbt.com:6881: Name or service not known (tr-dht.c:125)
[17:01:35.297] DHT dht.transmissionbt.com:6881: Name or service not known (tr-dht.c:125)
This seems to be an issue.
[17:00:01.742] DHT dht.transmissionbt.com:6881: Name or service not known (tr-dht.c:125)
[17:01:35.297] DHT dht.transmissionbt.com:6881: Name or service not known (tr-dht.c:125)
[17:03:16.899] DHT dht.transmissionbt.com:6881: Name or service not known (tr-dht.c:125)
and are these signficant 'Failed' comments below or did the daemon fix them?????
[16:58:12.094] UDP Failed to set receive buffer: requested 4194304, got 217088 (tr-udp.c:75)
[16:58:12.094] UDP Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf (tr-udp.c:80)
[16:58:12.094] UDP Failed to set send buffer: requested 1048576, got 217088 (tr-udp.c:86)
[16:58:12.094] UDP Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf (tr-udp.c:91)
[16:58:12.094] DHT Generating new id (tr-dht.c:309)
[16:58:12.094] Using settings from "/mnt/HD/HD_a2/.transmission-daemon" (daemon.c:488)
[16:58:12.095] Saved "/mnt/HD/HD_a2/.transmission-daemon/settings.json" (bencode.c:1721)
Offline
I had to fiddle around a bit to get Transmission working on my 320. I ended up making a user Transmission and modifying /etc/passwd as follows:
transmission:x:1001:1001::/ffp/home/transmission:/ffp/bin/sh
I then installed the funplug from KyleK in the Transmission thread (DNS323). I then modified the startup script (basically just changed user to transmission)
root@dlink-4C13E6:/mnt/HD/HD_a2/ffp/home/root# cat /ffp/start/transmission.sh #!/ffp/bin/sh # PROVIDE: Transmission . /ffp/etc/ffp.subr TRANSMISSION_HOME=/mnt/HD/HD_a2/.transmission-daemon name="transmission-daemon" command="/ffp/bin/$name" start_cmd="transmission_start" stop_cmd="transmission_stop" status_cmd="transmission_status" user=transmission su_cmd="/ffp/bin/su"
I su'd to transmission, then made the dirs ".transmission-daemon" and "Downloads" under /mnt/HD/HD_a2, and then I modified what KyleK initially advised as the first run as follows:
su transmission -c "transmission-daemon -f -g /mnt/HD/HD_a2/.transmission-daemon -w /mnt/HD/HD_a2/Downloads -t -u admin -v password -a 127.0.0.1,192.168.*.*"
ran without issue. Ctrl + c to kill, then modified my settings.json to ensure that the download-dir was set to /mnt/HD/HD_a2/Downloads then chmod +x the transmission.sh daemon, and started the daemon. Works perfectly.
Offline
I installed transmission because I need to control it remotely via ssh; creating the user 'transmission' appears to work fine.
But when trying to use transmission-remote for any command I get
Unexpected response: <h1>401: Unauthorized</h1>Unauthorized User
not sure if this is related to the "-u admin -v password " part in the original command, as that appears to be related to the http login and transmission-remote is a command line command...
---
Update - setting 'rpc-authentication-enabled' to false allows transmission-remote to work via ssh.
Last edited by aoi (2011-09-29 20:59:30)
Offline