Код: Выделить всё
winruss|Russian Windows Users Accounts:\
:charset=CP1251:\
:lang=ru_RU.CP1251:\
:tc=default:
Код: Выделить всё
winruss|Russian Windows Users Accounts:\
:charset=CP1251:\
:lang=ru_RU.CP1251:\
:tc=default:
Код: Выделить всё
server# cd /usr/local/etc/rc.d
server# touch transmission
server# chmod + x /usr/local/etc/rc.d/transmission
chmod: x: No such file or directory
Код: Выделить всё
server# cd /usr/local/etc/rc.d
server# touch transmission
server# chmod +x /usr/local/etc/rc.d/transmission
chmod: x: No such file or directory
Код: Выделить всё
server# cd /usr/local/etc/rc.d
server# ./transmission start
.: Command not found.
name=transmission: Command not found.
set_rcvar: Command not found.
rcvar=: Command not found.
command=/usr/local/bin/transmission-daemon: Command not found.
name: Undefined variable.
в /transmission/config/settings.json401: Unauthorized
Unauthorized IP Address.
Either disable the IP address whitelist or add your address to it.
If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries.
If you're still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details.
Код: Выделить всё
{
"blocklist-enabled": 0,
"download-dir": "\/transmission\/downloads",
"download-limit": 100,
"download-limit-enabled": 0,
"encryption": 1,
"lazy-bitfield-enabled": 1,
"message-level": 2,
"open-file-limit": 32,
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"peer-port": 51413,
"peer-port-random-enabled": 0,
"peer-port-random-high": 65535,
"peer-port-random-low": 1024,
"peer-socket-tos": 0,
"pex-enabled": 1,
"port-forwarding-enabled": 1,
"preallocation": 1,
"proxy": "",
"proxy-auth-enabled": 0,
"proxy-auth-password": "",
"proxy-auth-username": "",
"proxy-enabled": 0,
"proxy-port": 80,
"proxy-type": 0,
"rpc-authentication-required": 1,
"rpc-enabled": 1,
"rpc-password": "12345",
"rpc-port": 9091,
"rpc-username": "admin",
"rpc-whitelist": "192.168.0.100",
"rpc-whitelist-enabled": 1,
"upload-limit": 100,
"upload-limit-enabled": 0,
"upload-slots-per-torrent": 14
}
Код: Выделить всё
"rpc-whitelist": "192.168.0.*",
"rpc-whitelist-enabled": true,
Код: Выделить всё
cat /usr/local/etc/rc.d/transmission
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: transmission
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to enable this service:
#
# transmission_enable: Set to NO by default.
# Set it to YES to enable the tracker.
# transmission_watch_dir: A folder for torrent files to download
# automatically.
# transmission_conf_dir: The directory where transmission configuration
# data is stored
# transmission_user: The user account transmission should run as.
# This will be root if unset -- you probably don't
# want that!
#
. "/etc/rc.subr"
name=transmission
rcvar=`set_rcvar`
command=/usr/local/bin/transmission-daemon
load_rc_config ${name}
: ${transmission_enable:="NO"}
: ${transmission_pidfile:=/var/run/${name}.pid}
transmission_flags="${transmission_watch_dir:+-c ${transmission_watch_dir}} ${transmission_conf_dir:+-g ${transmission_conf_dir}} ${transmission_flags}"
run_rc_command "$1"
Код: Выделить всё
#!/bin/sh
#
# $FreeBSD: ports/net-p2p/transmission-cli/files/transmission.in,v 1.2 2009/06/19 21:29:15 mezz Exp $
#
# PROVIDE: transmission
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to enable this service:
#
# transmission_enable: Set to NO by default. Set it to YES to enable it.
# transmission_watch_dir: Directory for torrent files to download
# automatically. Off by default unless you add
# a path.
# transmission_conf_dir: Directory where transmission configuration
# data is stored.
# Default: /usr/local/etc/transmission/home
# transmission_download_dir: Directory to store downloaded data.
# Default: /usr/local/etc/transmission/home/Downloads
# transmission_user: The user account transmission daemon runs as what
# you want it to be. It uses 'transmission' user by
# default. Do not sets it as empty or it will run
# as root.
#
. /etc/rc.subr
name="transmission"
rcvar=${name}_enable
command=/usr/local/bin/transmission-daemon
load_rc_config ${name}
: ${transmission_enable:="NO"}
: ${transmission_user:="transmission"}
: ${transmission_conf_dir:="/usr/local/etc/transmission/home"}
: ${transmission_download_dir:="/usr/local/etc/transmission/home/Downloads"}
transmission_flags=" \
${transmission_watch_dir:+-c ${transmission_watch_dir}} \
${transmission_conf_dir:+-g ${transmission_conf_dir}} \
${transmission_download_dir:+-w ${transmission_download_dir}} \
${transmission_flags}"
run_rc_command "$1"
Код: Выделить всё
server# cd /usr/local/etc/rc.d
server# ./transmission start
[color=#40BF00]Starting transmission.[/color]
[color=#00BFFF][23:08:49.516] JSON parser failed at line 32, column 35: "",
"rpc-whi"[/color]
Transmission 1.51 (7970) 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 Clutch.
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
-d --dump-settings Dump the settings and exit
-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
-w --download-dir <path> Where to save downloaded data
-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
Код: Выделить всё
server# ./transmission start
Starting transmission.
Transmission 1.51 (7970) 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 Clutch.
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
-d --dump-settings Dump the settings and exit
-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
-w --download-dir <path> Where to save downloaded data
-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
Код: Выделить всё
server# ./transmission status
transmission is not running
Код: Выделить всё
{
"blocklist-enabled": 0,
"download-dir": "\/transmission\/downloads",
"download-limit": 100,
"download-limit-enabled": 0,
"encryption": 1,
"lazy-bitfield-enabled": 1,
"message-level": 2,
"open-file-limit": 32,
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"peer-port": 51413,
"peer-port-random-enabled": 0,
"peer-port-random-high": 65535,
"peer-port-random-low": 1024,
"peer-socket-tos": 0,
"pex-enabled": 1,
"port-forwarding-enabled": 1,
"preallocation": 1,
"proxy": "",
"proxy-auth-enabled": 0,
"proxy-auth-password": "",
"proxy-auth-username": "",
"proxy-enabled": 0,
"proxy-port": 80,
"proxy-type": 0,
"rpc-authentication-required": true,
"rpc-enabled": 1,
"rpc-password": "12345",
"rpc-port": 9091,
"rpc-username": "admin",
"rpc-whitelist": "192.168.0.*",
"rpc-whitelist-enabled": 1,
"upload-limit": 100,
"upload-limit-enabled": 0,
"upload-slots-per-torrent": 14
}
Код: Выделить всё
"rpc-bind-address": "192.168.0.1",
Код: Выделить всё
{
"blocklist-enabled": 0,
"download-dir": "\/transmission\/downloads",
"download-limit": 100,
"download-limit-enabled": 0,
"encryption": 1,
"lazy-bitfield-enabled": 1,
"message-level": 2,
"open-file-limit": 32,
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"peer-port": 51413,
"peer-port-random-enabled": 0,
"peer-port-random-high": 65535,
"peer-port-random-low": 1024,
"peer-socket-tos": 0,
"pex-enabled": 1,
"port-forwarding-enabled": 1,
"preallocation": 1,
"proxy": "",
"proxy-auth-enabled": 0,
"proxy-auth-password": "",
"proxy-auth-username": "",
"proxy-enabled": 0,
"proxy-port": 80,
"proxy-type": 0,
"rpc-authentication-required": true,
"rpc-bind-address": "192.168.0.1",
"rpc-enabled": 1,
"rpc-password": "12345",
"rpc-port": 9091,
"rpc-username": "admin",
"rpc-whitelist": "192.168.0.*",
"rpc-whitelist-enabled": 1,
"upload-limit": 100,
"upload-limit-enabled": 0,
"upload-slots-per-torrent": 14
}
Код: Выделить всё
#!/bin/sh
#
# $FreeBSD: ports/net-p2p/transmission-cli/files/transmission.in,v 1.2 2009/06/19 21:29:15 mezz Exp $
#
# PROVIDE: transmission
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to enable this service:
#
# transmission_enable: Set to NO by default. Set it to YES to enable it.
# transmission_watch_dir: Directory for torrent files to download
# automatically. Off by default unless you add
# a path.
# transmission_conf_dir: Directory where transmission configuration
# data is stored.
# Default: /usr/local/etc/transmission/home
# transmission_download_dir: Directory to store downloaded data.
# Default: /usr/local/etc/transmission/home/Downloads
# transmission_user: The user account transmission daemon runs as what
# you want it to be. It uses 'transmission' user by
# default. Do not sets it as empty or it will run
# as root.
#
. /etc/rc.subr
name="transmission"
rcvar=${name}_enable
command=/usr/local/bin/transmission-daemon
load_rc_config ${name}
: ${transmission_enable:="NO"}
: ${transmission_user:="transmission"}
: ${transmission_conf_dir:="/usr/local/etc/transmission/home"}
: ${transmission_download_dir:="/usr/local/etc/transmission/home/Downloads"}
transmission_flags=" \
${transmission_watch_dir:+-c ${transmission_watch_dir}} \
${transmission_conf_dir:+-g ${transmission_conf_dir}} \
${transmission_download_dir:+-w ${transmission_download_dir}} \
${transmission_flags}"
run_rc_command "$1"
server# cd /usr/local/etc/rc.d
server# ./transmission start
Starting transmission.
Transmission 1.51 (7970) 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 Clutch.
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
-d --dump-settings Dump the settings and exit
-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
-w --download-dir <path> Where to save downloaded data
-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
Код: Выделить всё
#!/bin/sh
#
# PROVIDE: transmission
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to run transmission:
#
#transmission_enable="YES"
. /etc/rc.subr
name="transmission"
rcvar=${name}_enable
load_rc_config ${name}
: ${transmission_enable="NO"}
: ${transmission_user="transmission"}
: ${transmission_args=""}
command=/usr/local/bin/transmission-daemon
command_args="-g /usr/local/etc/transmission "$transmission_args
run_rc_command "$1"
Код: Выделить всё
transmission_enable="YES"
transmission_flags="-g /transmission/config"
Код: Выделить всё
Apr 16 10:36:23 srv transmission-daemon: Couldn't create socket: Protocol not supported (fdlimit.c:657)
Apr 16 10:36:54 srv last message repeated 2 times
Apr 16 10:37:32 srv last message repeated 2 times
Apr 16 10:48:26 srv last message repeated 23 times
Apr 16 10:58:57 srv last message repeated 141 times
Код: Выделить всё
{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"dht-enabled": true,
"download-dir": "\/hdd\/wd\/temp\/torrent\/",
"encryption": 1,
"incomplete-dir": "\/hdd\/wd\/temp",
"incomplete-dir-enabled": true,
"lazy-bitfield-enabled": true,
"message-level": 2,
"open-file-limit": 32,
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": 0,
"pex-enabled": true,
"port-forwarding-enabled": false,
"preallocation": 1,
"proxy": "",
"proxy-auth-enabled": false,
"proxy-auth-password": "",
"proxy-auth-username": "",
"proxy-enabled": false,
"proxy-port": 80,
"proxy-type": 0,
"ratio-limit": 12.0000,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "{a25a80e2e34be26546bf321cf4984fa95135b888Wys7gRYW",
"rpc-port": 9091,
"rpc-username": "balkon",
"rpc-whitelist": "127.0.0.1",
"rpc-whitelist-enabled": false,
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 100,
"speed-limit-up-enabled": false,
"umask": 18,
"upload-slots-per-torrent": 14
}
Код: Выделить всё
transmission-daemon -V
Transmission 1.92 (10363)
Код: Выделить всё
uname -a
FreeBSD srv.blkn.ru 8.0-RELEASE FreeBSD 8.0-RELEASE #1: Thu Apr 15 14:04:24 MSD 2010 root@srv.blkn.ru:/usr/obj/usr/src/sys/BLKN amd64
Код: Выделить всё
# uname
FreeBSD pc.ru 8.0-STABLE FreeBSD 8.0-STABLE #0: Thu Apr 1 10:41:15 VOLST 2010 i386
Код: Выделить всё
# cat cat /usr/local/etc/transmission/settings.json
{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"dht-enabled": true,
"download-dir": "\/usr\/home\/hd\/torrents\/downloads",
"encryption": 1,
"incomplete-dir": "\/usr\/home\/hd\/torrents\/downloads",
"incomplete-dir-enabled": true,
"lazy-bitfield-enabled": true,
"message-level": 2,
"open-file-limit": 32,
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": 0,
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"proxy": "",
"proxy-auth-enabled": false,
"proxy-auth-password": "",
"proxy-auth-username": "",
"proxy-enabled": false,
"proxy-port": 80,
"proxy-type": 0,
"ratio-limit": 2.0000,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "10.97.32.33",
"rpc-enabled": true,
"rpc-password": "{3d9e155f9d1909995b4a97e737d9d9d28344dd52lAektk6f",
"rpc-port": 9091,
"rpc-username": "hd",
"rpc-whitelist": "127.0.0.1,10.97.32.*",
"rpc-whitelist-enabled": true,
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 100,
"speed-limit-up-enabled": false,
"umask": 18,
"upload-slots-per-torrent": 14
}
Код: Выделить всё
# cat /etc/rc.conf
# === transmission ===
transmission_enable="YES"
transmission_conf_dir="/usr/local/etc/transmission/"
transmission_download_dir="/usr/home/hd/torrents/downloads"
transmission_user="hd"
transmission_flags=""
Нехватает прав. Просто сделайте:hodok писал(а):Никто не сталкивался с тем, что transmission-daemon скачивает файлы, раздает их, но в папке, где лежит скачанное, их нет. Что это может быть?
Код: Выделить всё
chown transmission:transmission /usr/local/etc/transmission/torrents
Код: Выделить всё
# netstat -m
44697/13803/58500 mbufs in use (current/cache/total)
44695/13313/58008/65536 mbuf clusters in use (current/cache/total/max)
44695/12905 mbuf+clusters out of packet secondary zone in use (current/cache)
0/151/151/12800 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/6400 9k jumbo clusters in use (current/cache/total/max)
0/0/0/3200 16k jumbo clusters in use (current/cache/total/max)
100564K/30680K/131245K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/0/0 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
0 calls to protocol drain routines