Gargoyle 安装 Aria2 、Transmission、Hd-idle
Aria2 安装
使用 ssh 的方式登入路由器
在 Gargoyle 固件下安装 aria2 下载工具
1 2
| opkg update opkg install aria2
|
启动 aria2 并进行验证(两种启动方式)
1 2 3 4 5
| aria2c --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all -c
aria2c --conf-path=/etc/aria2/aria2.conf
|
手动创建 aria2 的配置文件
1 2 3 4 5
| mkdir /etc/aria2
touch /etc/aria2/aria2.conf
touch /etc/aria2/aria2.session
|
编辑 aria2.conf 文件
1
| vi /etc/aria2/aria2.conf
|
aria2.conf 内容如下(这种配置文件网络上一搜一大把,具体还得看自己怎么配置)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
| enable-rpc=true
rpc-allow-origin-all=true
rpc-listen-all=true
rpc-listen-port=6800
log=/mnt/upan/aria2.log
disable-ipv6=true
max-concurrent-downloads=3
continue=true
max-connection-per-server=10
min-split-size=10M
split=10
max-overall-download-limit=0
max-download-limit=0
max-overall-upload-limit=0
max-upload-limit=0
input-file=/etc/aria2/aria2.session save-session=/etc/aria2/aria2.session
save-session-interval=60
dir=/mnt/sda1/download
file-allocation=none
bt-enable-lpd=true
follow-torrent=true
enable-dht=true bt-enable-lpd=true enable-peer-exchange=true
user-agent=uTorrent/2210(25130) peer-id-prefix=-UT2210-
seed-ratio=0
force-save=true bt-hash-check-seed=true bt-seed-unverified=true bt-save-metadata=true
|
把 aria2 加入开机启动
在 rc.local 文件的 exit 0 前面加入以下内容
1
| aria2c --conf-path=/etc/aria2/aria2/conf -D
|
到此就完成了 Gargoyle for aria2 的安装
Transmission 安装
1 2
| opkg update opkg install transmission-daemon transmission-web
|
加入开机启动
1
| /etc/init.d/transmission enable
|
开始运行 transmission
1
| /etc/init.d/transmission start
|
修改配置文件
1
| /etc/config/transmission
|
一般只需要修改几个地方就行,比如 config_dir(这个是你的放配置目录), download_dir(下载目录), and incomplete_dir(未下载完成目录)
官方例子
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
| config transmission option enable 1 option config_dir '/etc/transmission' 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 dht_enabled true option download_dir '/mnt/sda4/' option encryption 1 option incomplete_dir '/mnt/sda4/incomplete' option incomplete_dir_enabled false option lazy_bitfield_enabled true option lpd_enabled false option message_level 2 option open_file_limit 32 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 0 option pex_enabled true option port_forwarding_enabled false option preallocation 1 option proxy "" option proxy_auth_enabled false option proxy_auth_password '' option proxy_auth_username '' option proxy_enabled false option proxy_port 80 option proxy_type 0 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_username '' option rpc_whitelist '*.*.*.*' option rpc_whitelist_enabled true option script_torrent_done_enabled false option script_torrent_done_filename '' option speed_limit_down 100 option speed_limit_down_enabled false option speed_limit_up 40 option speed_limit_up_enabled true option start_added_torrents false option trash_original_torrent_files false option umask 18 option upload_slots_per_torrent 14 option watch_dir_enabled false option watch_dir ''
|
安装 Hd-idle (硬盘休眠服务)
1 2
| opkg update opkg install hd-idle
|
修改配置文件
1 2 3 4 5 6
| config 'hd-idle' option 'disk' 'sda' option 'enable_debug' '0' option 'enabled' '0' option 'idle_time_unit' 'minutes' option 'idle_time_interval' '10'
|