{"id":516767,"date":"2021-07-15T14:22:05","date_gmt":"2021-07-15T06:22:05","guid":{"rendered":"http:\/\/4563.org\/?p=516767"},"modified":"2021-07-15T14:22:05","modified_gmt":"2021-07-15T06:22:05","slug":"ubuntu-20-04%e5%ae%89%e8%a3%85pt%e8%bd%af%e4%bb%b6transmission-daemon%e6%9c%80%e6%96%b0%e7%89%883-0","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=516767","title":{"rendered":"ubuntu 20.04\u5b89\u88c5PT\u8f6f\u4ef6transmission-daemon\u6700\u65b0\u72483.0"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>bbsbbs<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>ubuntu 20.04\u5b89\u88c5PT\u8f6f\u4ef6transmission-daemon\u6700\u65b0\u72483.0<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 bbsbbs \u4e8e 2021-7-15 14:18 \u7f16\u8f91 <\/p>\n<p> \u53d1\u6325\u4f59\u70ed\uff0c\u7532\u9aa8\u6587arm64\u673a\u5668PT\u8dd1\u8d77\u6765\uff0c\u6b64\u811a\u672c\u4e5f\u9002\u7528\u4e8e64\u4f4dIntel\u548cAMD\u67b6\u6784Ubuntu20.04<\/p>\n<p>  \u7b2c\u4e00\u6b65\uff1a\u5b89\u88c5\u8f6f\u4ef6\u6e90\uff0c\u5e76\u5b89\u88c5transmission-daemon<br \/>  sudo apt-get install -y software-properties-common<br \/>  sudo add-apt-repository -y ppa:transmissionbt\/ppa<br \/>  sudo apt-get -y update<br \/>  sudo apt-get install -y transmission-daemon<\/p>\n<p>  \u7b2c\u4e8c\u6b65\uff0c\u6d4b\u8bd5\u662f\u5426\u8fde\u63a5\u6210\u529f<br \/>  root@instance-20210530-arm:~# transmission-remote 127.0.0.1:9091-l&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; <br \/>   transmission-remote:(http:\/\/127.0.0.1:9091\/transmission\/rpc\/) Couldn&#8217;t connect to server<br \/>  \u5b89\u88c5\u5931\u8d25<br \/>  root@instance-20210530-arm:~# transmission-remote 127.0.0.1:9091-l&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; <br \/>  Unexpected response: &lt;h1&gt;401: Unauthorized&lt;\/h1&gt;&lt;p&gt;Unauthorized User. 1 unsuccessful login attempts.&lt;\/p&gt;<br \/>  \u5b89\u88c5\u6210\u529f<\/p>\n<p>  \u7b2c\u4e09\u6b65\uff0c\u4fee\u6539\u914d\u7f6e\u53ca\u5b89\u88c5\u7b2c\u4e09\u65b9web\u9762\u677f<br \/>  \u5148\u505c\u6b62\u6b63\u5728\u8fd0\u884c\u7684\u7a0b\u5e8f\u3002\u8fd9\u6b65\u5f88\u5173\u952e\uff0c\u4e00\u5b9a\u8981\u5148\u505c\u6b62\u540e\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\uff0c\u5982\u679c\u7a0b\u5e8f\u5728\u540e\u53f0\u8fd0\u884c\uff0c\u4f60\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u662f\u4f1a\u88ab\u7a0b\u5e8f\u81ea\u52a8\u8986\u76d6\u7684\u3002<br \/>  systemctl stop transmission-daemon<br \/>  cp \/var\/lib\/transmission-daemon\/info\/settings.json \/var\/lib\/transmission-daemon\/info\/settings.json.bak<br \/>  sed -i &#8216;s\/^.*&quot;rpc-whitelist-enabled&quot;.*$\/&nbsp; &nbsp; &quot;rpc-whitelist-enabled&quot;: false,\/g&#8217; \/var\/lib\/transmission-daemon\/info\/settings.json<br \/>  sed -i &#8216;s\/^.*&quot;dht-enabled&quot;.*$\/&nbsp; &nbsp; &quot;dht-enabled&quot;: false,\/g&#8217; \/var\/lib\/transmission-daemon\/info\/settings.json<br \/>  sed -i &#8216;s\/^.*&quot;rpc-username&quot;.*$\/&nbsp; &nbsp; &quot;rpc-username&quot;: &quot;YOURUSERNAME&quot;,\/g&#8217; \/var\/lib\/transmission-daemon\/info\/settings.json<br \/>  sed -i &#8216;s\/^.*&quot;rpc-password&quot;.*$\/&nbsp; &nbsp; &quot;rpc-password&quot;: &quot;YOURPASSWORD&quot;,\/g&#8217; \/var\/lib\/transmission-daemon\/info\/settings.json<br \/>  \u8bb0\u5f97\u5c06\u4e0a\u9762\u4e24\u884c\u7684YOURUSERNAME\uff0cYOURPASSWORD\u6539\u6210\u4f60\u81ea\u5df1\u7684\u540e\u9762web\u767b\u5f55\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002<br \/>  systemctl start transmission-daemon<\/p>\n<p>  \u7b2c\u56db\u6b65\uff1a\u5b89\u88c5\u7b2c\u4e09\u65b9web\u9762\u677f\uff0c\u6781\u529b\u63a8\u8350<br \/>  wget https:\/\/github.com\/ronggang\/transmission-web-control\/raw\/master\/release\/install-tr-control-cn.sh<br \/>  bash .\/install-tr-control-cn.sh<\/p>\n<p>  \u81f3\u6b64\u5b89\u88c5\u5b8c\u6210\uff0c\u7136\u540e\u767b\u5f55http:\/\/YOURIP:9091\/\u8f93\u5165\u4f60\u524d\u9762\u4fee\u6539\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u5373\u53ef\u8fde\u63a5\u3002<\/p>\n<p>  \u5982\u679c\u4f60\u8fdc\u7a0b\u8fde\u63a5\u4e0d\u4e0a\uff0c\u53ef\u80fd\u662f\u9632\u706b\u5899\u672a\u653e\u884c9091\u7aef\u53e3\uff0c\u8fd0\u884c\u4e0b\u9762\u6b65\u9aa4\u3002\u8be5\u64cd\u4f5c\u4f1a\u5c4f\u853d\u9ed8\u8ba4\u9632\u706b\u5899\uff0c\u5e76\u6e05\u7a7a\u6761\u4ef6\u5217\u8868\uff0c\u8bf7\u8c28\u614e\uff01\uff01\uff01<br \/>  iptables -F<br \/>  iptables-save &gt; \/etc\/iptables\/rules.v4 &amp;&amp; ip6tables-save &gt; \/etc\/iptables\/rules.v6<br \/>  ufw disable\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>optimism<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6280\u672f\u8d34\u5fc5\u9876 \u611f\u8c22\u5206\u4eab\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>gick<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6559\u7a0b\u8d34\uff0c\u9876<\/p>\n<p>   * \u4f60\u539f\u672c\u662f\u6765\u6d4f\u89c8\u5668\u5e72\u561b\u7684   \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6211\u662f\u574f\u866b<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t:lol\u4e0d\u662f\u90fd\u63a8\u8350qb\u561b?https:\/\/cdn.jsdelivr.net\/gh\/hishis\/forum-master\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>bbsbbs<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\ttransmission-daemon\u662f\u6211\u4f7f\u7528\u8fc7\u6765\u6700\u8f7b\u91cf\u5316\u7684PT\u8f6f\u4ef6\uff0c\u7cbe\u7b80\u9ad8\u6548\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>bbsbbs \u5927\u4f6c\u6709\u8bdd\u8bf4 : ub&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/516767"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=516767"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/516767\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=516767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=516767"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=516767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}