{"id":232,"date":"2022-11-01T16:36:22","date_gmt":"2022-11-01T08:36:22","guid":{"rendered":"https:\/\/www.shadowfly.top\/?p=232"},"modified":"2022-11-01T19:51:48","modified_gmt":"2022-11-01T11:51:48","slug":"how-install-aria2-on-wdmycloud-gen1-aria2","status":"publish","type":"post","link":"https:\/\/www.shadowfly.top\/?p=232","title":{"rendered":"\u5982\u4f55\u5b89\u88c5Aria2\u5230WD MyCloud Gen1 FW4.0"},"content":{"rendered":"<h1>\u5982\u4f55\u5b89\u88c5Aria2\u5230WD MyCloud Gen1 FW4.0<\/h1>\n<blockquote>\n<p>WD MyCloud FW4.0 &#8211; WDMyCloud v04.06.00-111 : Core F\/W<\/p>\n<\/blockquote>\n<p>Aria2\u662f\u4e2a\u79bb\u7ebf\u4e0b\u8f7d\u8f6f\u4ef6\uff0c\u53ef\u4ee5\u5b89\u88c5\u5728\u8def\u7531\u5668\u6216\u8005\u6811\u6885\u6d3e\uff0cNAS\u4e0a\u4e5f\u53ef\u4ee5\u7684\uff0c\u7531\u4e8e\u662f\u8f7b\u91cf\u7ea7\u7684\u8f6f\u4ef6\uff0c\u6ca1\u6709UI\u754c\u9762\uff0c\u53ef\u4ee5\u901a\u8fc7shell\u53d1\u547d\u4ee4\u4e0b\u8f7d\uff0c\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u901a\u8fc7\u4e0b\u8f7d\u7f51\u9875\u7248\u754c\u9762\u53bb\u63a7\u5236\u548c\u7ba1\u7406\u3002<br \/>\nAria2\u63a7\u5236\u754c\u9762\u4f60\u53ef\u4ee5\u5b89\u88c5\u5728\u8def\u7531\u5668\u6216WDMyCloud\u91cc\u9762\uff0c\u6216\u8005\u672c\u5730\u673a\u5668\uff0c\u914d\u7f6e\u754c\u9762\u4e3b\u8981\u662f\u505a\u4e0b\u8f7d\u6587\u4ef6\u7684\u5165\u53e3\uff0c\u5e76\u4e0d\u4f1a\u9700\u8981\u4e00\u76f4\u5f00\u542f\uff0c\u8fd9\u91cc\u4f1a\u4ecb\u7ecd\u63a7\u5236\u754c\u9762\u5b89\u88c5\u5728WD MyCloud\u5185\u548cMerlin Router\u5185\u3002<\/p>\n<h2>\u5173\u4e8eFW4.0\u6e90\u7684\u95ee\u9898<\/h2>\n<p>\u7531\u4e8eFW4\u66f4\u65b0\u540e\uff0c\u91cc\u9762\u81ea\u5e26\u7684\u6e90\u65e0\u6cd5\u4f7f\u7528\uff0c\u770b\u4e86\u4e9b\u8d44\u6599\u8bf4\u662f\u5b89\u88c5\u5305\u9700\u898164K\u5bf9\u9f50\u624d\u53ef\u4ee5\u5b89\u88c5\uff0c\u8fd9\u6837\u7684\u8bdd\u4f60\u5c31\u9700\u8981\u91cd\u65b0\u7f16\u8bd1\u6210\u7279\u5b9a\u7684\u683c\u5f0f\u624d\u53ef\u4ee5\uff0c\u8fd9\u662f\u6bd4\u8f83\u9ebb\u70e6\u7684\uff0c\u4e0d\u8fc7\u597d\u5728\u7f51\u4e0a\u5df2\u7ecf\u6709\u670b\u53cb\u7f16\u8bd1\u597d\u4e86\u4e00\u4e9b\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5\u5728WD MyCloud\u4e0a\u7684\u8f6f\u4ef6\u5305\uff0c\u6211\u4eec\u66f4\u6362\u6e90\u5730\u5740\u5c31\u53ef\u4ee5\u901a\u8fc7apt-get install\u53bb\u5b89\u88c5\u4e86\u3002<\/p>\n<h2>\u5f00\u542fWD MyCloud SSH<\/h2>\n<p>\u901a\u8fc7\u6d4f\u89c8\u5668\u8fdb\u5165WD MyCloud\u754c\u9762\u540e\uff0c\u8fdb\u5165-&gt;\u8bbe\u7f6e-&gt;\u7f51\u7edc-&gt;\u7f51\u7edc\u670d\u52a1-&gt;SSH=\u5f00\uff0c\u9ed8\u8ba4\u7528\u6237\u540d:root\u3001\u5bc6\u7801welc0me\uff0c\u7b2c\u4e00\u6b21SSH\u767b\u9646\u540e\u4f1a\u9700\u8981\u4fee\u6539\u5bc6\u7801\u3002<\/p>\n<pre><code>WDMyCloud:~#nano \/etc\/apt\/sources.list\n  #deb http:\/\/ftp.us.debian.org\/debian\/ jessie main\n  ## Note, wheezy is not 64K page aligned.  \n  ##deb http:\/\/ftp.us.debian.org\/debian\/ wheezy main\n  #deb http:\/\/ftp.us.debian.org\/debian\/ sid main\n  #deb http:\/\/ftp.us.debian.org\/debian\/ experimental main\n  #deb-src http:\/\/ftp.us.debian.org\/debian\/ jessie main\n\n  ## Note, It is from mobibrw.com\n  deb http:\/\/www.mobibrw.com\/deb\/wdmycloud\/4.0\/wheezy wheezy main\n  deb http:\/\/www.mobibrw.com\/deb\/wdmycloud\/4.0\/jessie jessie main\n# \u4fdd\u5b58\u9000\u51fa\nWDMyCloud:~#apt-get update # \u66f4\u65b0\u5b89\u88c5\u5305\u6e05\u5355<\/code><\/pre>\n<h2>Aria2<\/h2>\n<ol>\n<li>\u5b89\u88c5<br \/>\n<code>WDMyCloud:~#apt-get install aria2<\/code><\/li>\n<li>\u914d\u7f6e\n<pre><code>WDMyCloud:~#mkdir \/etc\/aria2\nWDMyCloud:~#nano \/etc\/aria2\/aria2.conf\n# aria2.conf \u53ef\u4ee5\u901a\u8fc7\u7f51\u4e0a\u81ea\u884c\u83b7\u53d6\uff0c\u5404\u5927\u8bba\u575b\u90fd\u6709\n# \u9700\u8981\u81ea\u5df1\u914d\u7f6e\u597d\u4e0b\u8f7d\u4fdd\u5b58\u7684\u8def\u5f84\uff0c\u4f8b\u5982\u5982\u4e0b\u914d\u7f6e\ndir=\/DataVolume\/shares\/Public\/Downloads\ninput-file=\/etc\/aria2\/aria2.session\nlog=\/etc\/aria2\/aria2.log\nrpc-listen-port=6800 # RPC\u76d1\u542c\u7aef\u53e3, \u7aef\u53e3\u88ab\u5360\u7528\u65f6\u53ef\u4ee5\u4fee\u6539, \u9ed8\u8ba4:6800\nrpc-secret=password # \u8bbe\u7f6e\u7684RPC\u6388\u6743\u4ee4\u724c, v1.18.4\u65b0\u589e\u529f\u80fd\n# \u4fdd\u5b58\u9000\u51fa<\/code><\/pre>\n<\/li>\n<li>\u521b\u5efa\u81ea\u542f\u52a8\u811a\u672c\n<pre><code>#\u5c06aria2\u7684deamon\u6587\u4ef6\u62f7\u8d1d\u5230\/etc\/aria2\/\u76ee\u5f55\u4e0b\nWDMyCloud:~#cp aria2 \/etc\/aria2\/\nWDMyCloud:~#nano \/etc\/init.d\/aria2 #\u53ef\u53c2\u7167\/etc\/init.d\/vsftpd\u548cKireinaHoro aria2 deamon\u6587\u4ef6\u8fdb\u884c\u4fee\u6539\n......\nDAEMON=\/usr\/bin\/aria2c\nCONF=\/etc\/aria2.conf\n......\n# \u4fdd\u5b58\u9000\u51fa\nWDMyCloud:~#chmod 755 \/etc\/init.d\/aria2\nWDMyCloud:~#chown root:root \/etc\/init.d\/aria2\nWDMyCloud:~#nano aria2.session #\u6572\u4e2a\u7a7a\u683c\uff0c\u4fdd\u5b58\u9000\u51fa\nWDMyCloud:~#nano aria2.log #\u6572\u4e2a\u7a7a\u683c\uff0c\u4fdd\u5b58\u9000\u51fa\nWDMyCloud:~#cd \/etc\/init.d\/\nWDMyCloud:~#update-rc.d aria2 defaults #\u5c06aria2\u8bbe\u7f6e\u4e3a\u5f00\u673a\u81ea\u542f\u52a8\nWDMyCloud:~#reboot<\/code><\/pre>\n<\/li>\n<\/ol>\n<h2>Aria2 \u63a7\u5236\u754c\u9762UI<\/h2>\n<ol>\n<li>\n<p>\u5e38\u89c1\u7684\u754c\u9762<br \/>\nYAAW &#8211; <a href=\"https:\/\/github.com\/binux\/yaaw\">https:\/\/github.com\/binux\/yaaw<\/a><br \/>\nAriaNG &#8211; <a href=\"https:\/\/github.com\/mayswind\/AriaNg\">https:\/\/github.com\/mayswind\/AriaNg<\/a><br \/>\nwebui-aria2 &#8211; <a href=\"https:\/\/github.com\/ziahamza\/webui-aria2\">https:\/\/github.com\/ziahamza\/webui-aria2<\/a><\/p>\n<blockquote>\n<p>\u4ee5\u4e0a\u4e09\u79cd\u754c\u9762\u53ef\u81ea\u9009\u4e00\u79cd\uff0c\u8fd9\u91cc\u4ee5webui-aria2\u4e3a\u4f8b\u5b50\uff0c\u56e0\u4e3a\u90e8\u7f72\u7b80\u5355\uff0c\u4e0d\u9700\u8981\u989d\u5916\u5b89\u88c5\u5176\u4ed6\u7684\u8f6f\u4ef6\u5305<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>UI\u5b89\u88c5\u5728WD MyCloud\u5185<\/p>\n<pre><code>WDMyCloud:~#git clone https:\/\/github.com\/binux\/yaaw.git\n# \u5c06\u83b7\u53d6\u7684yaaw\u6587\u4ef6\u5939\u62f7\u8d1d\u5230\/var\u4e0b\u9762\nWDMyCloud:~#cp -r yaaw \/var\/\nWDMyCloud:~#nano \/etc\/apache2\/ports.conf\n......\n#new for yaaw-aria2-ui\nListen 8888 #\u76d1\u542c8888\u7aef\u53e3\n......\n# \u4fdd\u5b58\u9000\u51fa\nWDMyCloud:~#nano \/etc\/apache2\/conf.d\/ara2-ui-yaaw.conf\n# new for Aria UI\n# \u65b0\u589e8888\u7aef\u53e3\u865a\u62df\u4e3b\u673a\u914d\u7f6e\u6587\u4ef6\uff0c\u4e00\u5b9a\u8981\u5728conf.d\u76ee\u5f55\u4e0b\u5b58\u653e\n&lt;VirtualHost *:8888&gt;\n    ServerAdmin webmaster@localhost\n    ServerName localhost\n    DocumentRoot \/var\/yaaw\n\n    LogLevel warn\n\n    &lt;Directory \/var\/yaaw&gt;\n        DirectoryIndex index.php index.html index.htm\n        Options -Indexes +FollowSymLinks +MultiViews  \n        AllowOverride All\n    &lt;\/Directory&gt;\n    ErrorLog ${APACHE_LOG_DIR}\/yaaw_error.log\n    CustomLog ${APACHE_LOG_DIR}\/yaaw_access.log combined\n\n&lt;\/VirtualHost&gt;\n# \u4fdd\u5b58\u9000\u51fa\nWDMyCloud:~#nano apache2ctl configtest\n# \u5982\u8fd4\u56de\u914d\u7f6e\u6587\u4ef6OK\uff0c\u5219\u91cd\u542fapache2\u670d\u52a1\nWDMyCloud:~#nano \/etc\/init.d\/apache2 restart\n# \u5982\u8fd4\u56de\u542f\u52a8OK\uff0c\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95eehttp:\/\/wdmycloud_ip:8888\/\n#\n# JSON-RPC Path = http:\/\/token:password@wdmycloud_ip:6800\/jsonrpc password\u4e3a\/etc\/aria2\/aria2.conf\u4e2d\u5b9a\u4e49\u7684rpc-secret\u7684\u5185\u5bb9\uff0c\u70b9\u51fb\u4fdd\u5b58\uff0c\u9875\u9762\u4f1a\u5237\u65b0\uff0crpc\u8fde\u63a5\u6b63\u5e38\u540e\u5c31\u53ef\u4ee5\u5f00\u59cb\u4e0b\u8f7d\u4e86<\/code><\/pre>\n<\/li>\n<li>\n<p>UI\u5b89\u88c5\u5728Merlin Router\u5185<\/p>\n<pre><code>root@MerlinRouter:\/#amtm #\u5b89\u88c5entware\u73af\u5883\nroot@MerlinRouter:\/#opkg update\nroot@MerlinRouter:\/#opkg install ca-bundle ca-certificates lighttpd lighttpd-mod-fastcgi php7-fastcgi\nroot@MerlinRouter:\/#cd \/opt\/share\/\nroot@MerlinRouter:\/#mkdir www\nroot@MerlinRouter:\/#cd www\nroot@MerlinRouter:\/#wget -c -O ariang.zip https:\/\/github.com\/mayswind\/AriaNg\/releases\/download\/1.2.5\/AriaNg-1.2.5-AllInOne.zip --no-check-certificate\nroot@MerlinRouter:\/#mkdir ariang\nroot@MerlinRouter:\/#unzip ariang.zip -d ariang\/\nroot@MerlinRouter:\/#rm ariang.zip<\/code><\/pre>\n<\/li>\n<li>\n<p>\u914d\u7f6elighthttpd\u548cphp<\/p>\n<pre><code>root@MerlinRouter:\/#nano \/opt\/etc\/lighttpd\/lighttpd.conf\nserver.port                 = 81\nserver.upload-dirs          = ( &quot;\/opt\/tmp&quot; )\n# \u4fdd\u5b58\u9000\u51fa\nroot@MerlinRouter:\/#nano \/\n......\nserver.modules += ( &quot;mod_fastcgi&quot; )\n......\n# \u4fdd\u5b58\u9000\u51fa\nroot@MerlinRouter:\/#reboot<\/code><\/pre>\n<\/li>\n<li>\n<p>\u8fde\u63a5Aria2<\/p>\n<ul>\n<li>Merlin Router AriaNG<br \/>\na.\u6253\u5f00 <a href=\"http:\/\/wdmycloud_ip:81\/\">http:\/\/wdmycloud_ip:81\/<\/a><br \/>\nb.AriaNG\u8bbe\u7f6e-&gt;RPC,\u5730\u5740\u914d\u7f6e\u4e2d\u8f93\u5165Aria2\u670d\u52a1\u5668\u5730\u5740\uff0c\u534f\u8bae\u9009\u62e9http\uff0c\u7aef\u53e3\u8bbe\u7f6e\u8ddf\u4f60\u7684aria.conf\u4e2d\u5b9a\u4e49\u7684\u4e00\u6837\uff0c\u5bc6\u94a5\u8bbe\u7f6e\u6210\u8ddf\u4f60\u7684aria.conf\u4e2d\u5b9a\u4e49\u7684\u4e00\u6837<br \/>\nc.\u9875\u9762\u51fa\u73b0\u91cd\u65b0\u52a0\u8f7d\u7684\u63d0\u793a\uff0c\u70b9\u51fb\u4e00\u4e0b\uff0c\u5982\u679cAria2\u72b6\u6001\u53d8\u6210\u5df2\u8fde\u63a5\uff0c\u8bf4\u660e\u90fd\u5df2\u7ecf\u901a\u4e86\u3002<\/li>\n<li>WDMyCloud + Yaaw<br \/>\na.\u6253\u5f00 <a href=\"http:\/\/RouterIP:81\/\">http:\/\/RouterIP:81\/<\/a><br \/>\nb.\u70b9\u51fb\u8bbe\u7f6e\uff0c\u8f93\u5165http:\/\/token:password@wdmycloud_ip:6800\/jsonrpc password\u4e3a\/etc\/aria2\/aria2.conf\u4e2d\u5b9a\u4e49\u7684rpc-secret\u7684\u5185\u5bb9\uff0c\u70b9\u51fb\u4fdd\u5b58\uff0c\u9875\u9762\u4f1a\u5237\u65b0\uff0crpc\u8fde\u63a5\u6b63\u5e38\u540e\u5c31\u53ef\u4ee5\u5f00\u59cb\u4e0b\u8f7d\u4e86<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2>\u53c2\u8003\u8d44\u6599<\/h2>\n<ul>\n<li>Aria2 \u5b8c\u7f8e\u914d\u7f6e(\u914d\u7f6e\u9879\u4fee\u6539\u7684\u53c2\u8003) &#8211; <a href=\"https:\/\/p3terx.com\/archives\/aria2_perfect_config.html\">https:\/\/p3terx.com\/archives\/aria2_perfect_config.html<\/a><br \/>\nKyonLi aria2 deamon\u6587\u4ef6 &#8211; <a href=\"https:\/\/gist.github.com\/KyonLi\/f8937a1f486bf35437d340b9e445e997#file-aria2\">https:\/\/gist.github.com\/KyonLi\/f8937a1f486bf35437d340b9e445e997#file-aria2<\/a><\/li>\n<li>KireinaHoro aria2 deamon\u6587\u4ef6 &#8211; <a href=\"https:\/\/gist.github.com\/KireinaHoro\/96c2738fded774dd6d8a87efc10cab88\">https:\/\/gist.github.com\/KireinaHoro\/96c2738fded774dd6d8a87efc10cab88<\/a><\/li>\n<li>WD MyCloud 4.0 deb \u5b89\u88c5\u6e90 &#8211; <a href=\"https:\/\/www.mobibrw.com\/2014\/1636\">https:\/\/www.mobibrw.com\/2014\/1636<\/a><br \/>\nAria2\u914d\u7f6e\u793a\u4f8b\u4e0b\u8f7d &#8211; <a href=\"https:\/\/aria2c.com\/archiver\/aria2.conf\">https:\/\/aria2c.com\/archiver\/aria2.conf<\/a><\/li>\n<li>How To Configure the Apache Web Server on an Ubuntu or Debian VPS &#8211; <a href=\"https:\/\/www.digitalocean.com\/N66U\">https:\/\/www.digitalocean.com\/N66U<\/a><\/li>\n<li>\u5168\u6539\u9020\uff0cKMS Server\u3001ARIA2\u3001SWAP\u3001SSR Server\u3001SSH \u5b89\u5168 &#8211; <a href=\"https:\/\/ppundsh.github.io\/posts\/87f1\/\">https:\/\/ppundsh.github.io\/posts\/87f1\/<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Aria2\u662f\u4e2a\u79bb\u7ebf\u4e0b\u8f7d\u8f6f\u4ef6\uff0c\u53ef\u4ee5\u5b89\u88c5\u5728\u8def\u7531\u5668\u6216\u8005\u6811\u6885\u6d3e\uff0cNAS\u4e0a\u4e5f\u53ef\u4ee5\u7684\uff0c\u7531\u4e8e\u662f\u8f7b\u91cf\u7ea7\u7684\u8f6f\u4ef6\uff0c\u6ca1\u6709UI\u754c\u9762\uff0c\u53ef\u4ee5\u901a\u8fc7shell\u53d1\u547d\u4ee4\u4e0b\u8f7d\uff0c\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u901a\u8fc7\u4e0b\u8f7d\u7f51\u9875\u7248\u754c\u9762\u53bb\u63a7\u5236\u548c\u7ba1\u7406\u3002<br \/>\nAria2\u63a7\u5236\u754c\u9762\u4f60\u53ef\u4ee5\u5b89\u88c5\u5728\u8def\u7531\u5668\u6216WDMyCloud\u91cc\u9762\uff0c\u6216\u8005\u672c\u5730\u673a\u5668\uff0c\u914d\u7f6e\u754c\u9762\u4e3b\u8981\u662f\u505a\u4e0b\u8f7d\u6587\u4ef6\u7684\u5165\u53e3\uff0c\u5e76\u4e0d\u4f1a\u9700\u8981\u4e00\u76f4\u5f00\u542f\uff0c\u8fd9\u91cc\u4f1a\u4ecb\u7ecd\u63a7\u5236\u754c\u9762\u5b89\u88c5\u5728WD MyCloud\u5185\u548cMerlin Router\u5185\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,7],"tags":[],"class_list":["post-232","post","type-post","status-publish","format-standard","hentry","category-networkattachedstorage","category-router"],"_links":{"self":[{"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/posts\/232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=232"}],"version-history":[{"count":10,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/posts\/232\/revisions"}],"predecessor-version":[{"id":249,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/posts\/232\/revisions\/249"}],"wp:attachment":[{"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}