On the road again

FreeBSD 9.2 - Transmission daemon installation

Transmission - torrent-клиент.
Установка:

cd /usr/ports/transmission-daemon

make -> make install -> make ckean -> rehash

 

Пример конфигурационного файла:

 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": "192.168.130.52",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "blocklist-url": "http://www.example.com/blocklist",
    "cache-size-mb": 4,
    "dht-enabled": true,
    "download-dir": "/home/grudev/downloads",
    "download-queue-enabled": true,
    "download-queue-size": 5,
    "encryption": 1,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "/home/grudev/downloads/incomplete",
    "incomplete-dir-enabled": true,
    "lazy-bitfield-enabled": true,
    "lpd-enabled": false,
    "message-level": 3,
    "open-file-limit": 32,
    "peer-congestion-algorithm": "",
    "peer-id-ttl-hours": 6,
    "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": "default",
    "pex-enabled": true,
    "pidfile": "/var/run/transmission/daemon.pid",
    "port-forwarding-enabled": false,
    "preallocation": 1,
    "prefetch-enabled": 1,
    "proxy": "",
    "proxy-auth-enabled": false,
    "proxy-auth-password": "",
    "proxy-auth-username": "",
    "proxy-enabled": false,
    "proxy-port": 80,
    "proxy-type": 0,
    "queue-stalled-enabled": true,
    "queue-stalled-minutes": 30,
    "ratio-limit": 2,
    "ratio-limit-enabled": false,
    "rename-partial-files": true,
    "rpc-authentication-required": true,
    "rpc-bind-address": "192.168.130.52",
    "rpc-enabled": true,
    "rpc-password": "{62779d9f5e05f22d747739474b398dc5708813berf25sj2G",
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "grudev",
    "rpc-whitelist": "127.0.0.1,192.168.0.37",
    "rpc-whitelist-enabled": false,
    "scrape-paused-torrents-enabled": true,
    "script-torrent-done-enabled": false,
    "script-torrent-done-filename": "",
    "seed-queue-enabled": false,
    "seed-queue-size": 10,
    "speed-limit-down": 100,
    "speed-limit-down-enabled": false,
    "speed-limit-up": 100,
    "speed-limit-up-enabled": false,
    "start-added-torrents": true,
    "trash-original-torrent-files": false,
    "umask": 18,
    "upload-slots-per-torrent": 14,
    "utp-enabled": true
}

 

При старте появлялась такая ошибка:

Jan 25 16:54:56 SRV transmission-daemon[37799]: UDP Failed to set receive buffer: No buffer space available (tr-udp.c:56)
Jan 25 16:54:56 SRV transmission-daemon[37799]: UDP Failed to set send buffer: No buffer space available (tr-udp.c:62)
Jan 25 16:54:56 SRV transmission-daemon[37799]: UDP Failed to set receive buffer: requested 4194304, got 41600 (tr-udp.c:75)
Jan 25 16:54:56 SRV transmission-daemon[37799]: UDP Failed to set send buffer: requested 1048576, got 9216 (tr-udp.c:86)

Лечится следующим образом:

sysctl  kern.ipc.maxsockbuf=10485760
Постоянное решение - добавить в  /etc/sysctl.conf строку:
kern.ipc.maxsockbuf=10485760

 

Add comment