标签:led cts wiki git time sys ext4 username 日志信息
参考文章
https://wiki.openwrt.org/doc/uci/transmission
1. 安装包必装的 transmission-daemon-openssl (后台服务)
选装的 transmission-cli-openssl (命令行管理) transmission-remote-openssl (远程UI管理) transmission-web-openssl (web管理)
我选择的是 daemon 和 remote, 在编译OpenWrt的时候已经加入
另外需要安装一个客户端, 我在windows下使用的是 Transmission Remote GUI https://sourceforge.net/projects/transgui/
2. 挂载外置U盘
fdisk /dev/sda, 分一个128M~512M大小的primary区做swap, 剩下的格式化为ext4, 并挂载到/mnt/sda2 下
需要创建两个目录done, incomplete, 分别用于存放 完成/未完成的下载文件
3. 配置这是我的配置文件
config transmission option enabled 1 option config_dir ‘/tmp/transmission‘ #option user ‘nobody‘ option mem_percentage 50 option nice 10 option ionice_flags ‘-c 3‘ option alt_speed_down 50 option alt_speed_enabled false option alt_speed_time_begin 540 option alt_speed_time_day 127 option alt_speed_time_enabled false option alt_speed_time_end 1020 option alt_speed_up 50 option bind_address_ipv4 ‘0.0.0.0‘ option bind_address_ipv6 ‘::‘ option blocklist_enabled false option blocklist_url ‘‘ option cache_size_mb 2 option dht_enabled true option download_dir ‘/mnt/sda2/done‘ option download_queue_enabled true option download_queue_size 4 option encryption 1 option idle_seeding_limit 30 option idle_seeding_limit_enabled false option incomplete_dir ‘/mnt/sda2/incomplete‘ option incomplete_dir_enabled true option lazy_bitfield_enabled true option lpd_enabled false option message_level 3 option peer_congestion_algorithm ‘‘ option peer_limit_global 240 option peer_limit_per_torrent 60 option peer_port 51413 option peer_port_random_high 65535 option peer_port_random_low 49152 option peer_port_random_on_start false option peer_socket_tos ‘default‘ option pex_enabled true option port_forwarding_enabled true option preallocation 1 option prefetch_enabled true option queue_stalled_enabled true option queue_stalled_minutes 30 option ratio_limit 2.0000 option ratio_limit_enabled false option rename_partial_files true option rpc_authentication_required false option rpc_bind_address ‘0.0.0.0‘ option rpc_enabled true option rpc_password ‘‘ option rpc_port 9091 option rpc_url ‘/transmission/‘ option rpc_username ‘‘ option rpc_whitelist ‘192.168.1.*‘ option rpc_whitelist_enabled true option scrape_paused_torrents_enabled true option script_torrent_done_enabled false option script_torrent_done_filename ‘‘ option seed_queue_enabled false option seed_queue_size 10 option speed_limit_down 100 option speed_limit_down_enabled false option speed_limit_up 20 option speed_limit_up_enabled false option start_added_torrents true option trash_original_torrent_files false option umask 18 option upload_slots_per_torrent 14 option utp_enabled true option scrape_paused_torrents true option watch_dir_enabled false option watch_dir ‘‘
对各项参数的说明, 可以查看上面的参考页, 也可以查看Transmission项目的文档
https://github.com/transmission/transmission/wiki/Editing-Configuration-Files
4. 启动
注意: 上面配置中的option enabled 必须为1, 否则不会启动
# 随路由器启动 /etc/init.d/transmission enable # 启动服务 /etc/init.d/transmission start # 对应的停止和不随服务器启动 /etc/init.d/transmission stop /etc/init.d/transmission disable
5. 查看日志
日志信息在 system log. 如果需要更多信息, 修改配置中的 message-level -- (0 = None, 1 = Error, 2 = Info, 3 = Debug, default = 2)
6. 使用Transmission Remote GUI连接添加新服务地址192.168.1.1 9091后, 就可以连接, 并往上面添加bt任务了
标签:led cts wiki git time sys ext4 username 日志信息
原文地址:http://www.cnblogs.com/milton/p/6337622.html