{"id":120,"date":"2024-08-02T17:38:41","date_gmt":"2024-08-02T09:38:41","guid":{"rendered":"https:\/\/zhzxs.asia\/?p=120"},"modified":"2024-11-01T09:57:44","modified_gmt":"2024-11-01T01:57:44","slug":"1722591449","status":"publish","type":"post","link":"https:\/\/www.zhzxs.site\/index.php\/2024\/08\/02\/1722591449\/","title":{"rendered":"\u4f7f\u7528rclone\u6302\u8f7dalist\u5230\u672c\u5730\u78c1\u76d8"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">\u6700\u8fd1\u7528docker\u642d\u5efa\u4e86\u4e00\u4e2anavidrome\u81ea\u5df1\u7684\u97f3\u4e50\u5bb9\u5668\uff0c\u4f46\u662f\u5e76\u4e0d\u60f3\u97f3\u4e50\u6587\u4ef6\u653e\u5728\u670d\u52a1\u5668\u4e0a\uff0c\u7d22\u6027\u5c31\u4f7f\u7528rclone\u628aalist\u4e0a\u7684\u4e91\u76d8\u6302\u8f7d\u5230\u672c\u5730\u4e86\uff0c\u7cfb\u7edf\u662fUbuntu22.04<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">1.\u5b89\u88c5<\/h5>\n\n\n\n<h6 class=\"wp-block-heading\">\u5b89\u88c5 rclone<\/h6>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-code\"><code>curl <a href=\"https:\/\/rclone.org\/install.sh\">https:\/\/rclone.org\/install.sh<\/a> | sudo bash<\/code><\/pre>\n<\/blockquote>\n\n\n\n<h6 class=\"wp-block-heading\">\u5b89\u88c5fuse<\/h6>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-code\"><code>apt-get install fuse<\/code><\/pre>\n<\/blockquote>\n\n\n\n<p>\u5982\u679c\u540e\u9762\u6302\u8f7d\u51fa\u73b0failed to mount FUSE fs: fusermount: exec: &#8220;fusermount3&#8221;: executable file not found in $PATH\u9519\u8bef\u3002\u53ef\u4ee5\u4f7f\u7528syslink\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-code\"><code>ln -s \/bin\/fusermount \/bin\/fusermount3<\/code><\/pre>\n<\/blockquote>\n\n\n\n<p>\u6216\u8005\u5b89\u88c5fuse3<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-code\"><code>apt-get install fuse<\/code><\/pre>\n<\/blockquote>\n\n\n\n<h5 class=\"wp-block-heading\">2.\u914d\u7f6e<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>ubuntu@problem-arm:~$ sudo -i\n\nroot@problem-arm:~# rclone config<\/code><\/pre>\n\n\n\n<p>2024\/08\/02 05:37:06 NOTICE: Config file &#8220;\/root\/.config\/rclone\/rclone.conf&#8221; not found &#8211; using defaults<br><br>No remotes found, make a new one?<br><br>n) New remote<br><br>s) Set configuration password<br><br>q) Quit config<br><br>n\/s\/q> n          #\u6309n\u521b\u5efa\u8fdc\u7a0b<br><br>Enter name for new remote.<br><br>name> alist       #\u8f93\u5165\u8fdc\u7a0b\u540d\u5b57<br><br>Option Storage.<br><br>Type of storage to configure.<br><br>Choose a number from below, or type in your own value.<br><br>1 \/ 1Fichier<br><br>\\ (fichier)<br><br>2 \/ Akamai NetStorage<br><br>\\ (netstorage)<br><br>3 \/ Alias for an existing remote<br><br>\\ (alias)<br><br>4 \/ Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, Ceph, ChinaMobile, Cloudflare, DigitalOcean, Dreamhost, GCS, HuaweiOBS, IBMCOS, IDrive, IONOS, LyveCloud, Leviia, Liara, Linode, Magalu, Minio, Netease, Petabox, RackCorp, Rclone, Scaleway, SeaweedFS, StackPath, Storj, Synology, TencentCOS, Wasabi, Qiniu and others<br><br>\\ (s3)<br><br>51 \/ Uptobox<br><br>\\ (uptobox)<br><br>52 \/ WebDAV<br><br>\\ (webdav)<br><br>53 \/ Yandex Disk<br><br>\\ (yandex)<br><br>54 \/ Zoho<br><br>\\ (zoho)<br><br>55 \/ premiumize.me<br><br>\\ (premiumizeme)<br><br>56 \/ seafile<br><br>\\ (seafile)<br><br>Storage> 52       #\u8fd9\u91cc\u9009\u62e952\u4f7f\u7528webdav<br><br>Option url.<br><br>URL of http host to connect to.<br><br>E.g. https:\/\/example.com.<br><br>Enter a value.<br><br>url> http:\/\/127.0.0.1:45454\/dav        #\u8f93\u5165\u4f60\u7684alist\u5730\u5740\uff0c\u5730\u5740\u540e\u9762\u8981\u52a0\u4e00\u4e2a\/dav<br><br>Option vendor.<br><br>Name of the WebDAV site\/service\/software you are using.<br><br>Choose a number from below, or type in your own value.<br><br>Press Enter to leave empty.<br><br>1 \/ Fastmail Files<br><br>\\ (fastmail)<br><br>2 \/ Nextcloud<br><br>\\ (nextcloud)<br><br>3 \/ Owncloud<br><br>\\ (owncloud)<br><br>4 \/ Sharepoint Online, authenticated by Microsoft account<br><br>\\ (sharepoint)<br><br>5 \/ Sharepoint with NTLM authentication, usually self-hosted or on-premises<br><br>\\ (sharepoint-ntlm)<br><br>6 \/ rclone WebDAV server to serve a remote over HTTP via the WebDAV protocol<br><br>\\ (rclone)<br><br>7 \/ Other site\/service or software<br><br>\\ (other)<br><br>vendor> 6       #\u8fd9\u91cc\u9009\u62e96<br><br>Option user.<br><br>User name.<br><br>In case NTLM authentication is used, the username should be in the format &#8216;Domain\\User&#8217;.<br><br>Enter a value. Press Enter to leave empty.<br><br>user> admin        #\u8f93\u5165\u4f60\u7684alist\u7684\u7528\u6237\u540d<br><br>Option pass.<br><br>Password.<br><br>Choose an alternative below. Press Enter for the default (n).<br><br>y) Yes, type in my own password<br><br>g) Generate random password<br><br>n) No, leave this optional password blank (default)<br><br>y\/g\/n> y        #\u8f93\u5165y<br><br>Enter the password:<br><br>password:123456        #\u8f93\u5165\u4f60\u7684alist\u8d26\u53f7\u5bc6\u7801<br><br>Confirm the password:<br><br>password:123456          #\u518d\u6b21\u8f93\u5165\u786e\u8ba4\u5bc6\u7801<br><br>Option bearer_token.<br><br>Bearer token instead of user\/pass (e.g. a Macaroon).<br><br>Enter a value. Press Enter to leave empty.<br><br>bearer_token>     #\u8fd9\u91cc\u76f4\u63a5\u56de\u8f66<br><br>Edit advanced config?<br><br>y) Yes<br><br>n) No (default)<br><br>y\/n>       #\u8fd9\u91cc\u4e5f\u53ef\u4ee5\u76f4\u63a5\u56de\u8f66\u4f7f\u7528\u9ed8\u8ba4\u7684<br><br>Configuration complete.<br><br>Options:<br><br>&#8211; type: webdav<br><br>&#8211; url: http:\/\/127.0.0.1:65533\/dav<br><br>&#8211; vendor: rclone<br><br>&#8211; user: AsjiYsaBBhsapmlkH<br><br>&#8211; pass: * ENCRYPTED *<br><br>Keep this &#8220;alist&#8221; remote?<br><br>y) Yes this is OK (default)<br><br>e) Edit this remote<br><br>d) Delete this remote<br><br>y\/e\/d> y        #\u8f93\u5165y\u786e\u8ba4\u4f60\u7684\u4fe1\u606f<br><br>Current remotes:<br><br>Name Type<br><br>==== ====<br><br>alist webdav<br><br>e) Edit existing remote<br><br>n) New remote<br><br>d) Delete remote<br><br>r) Rename remote<br><br>c) Copy remote<br><br>s) Set configuration password<br><br>q) Quit config<br><br>e\/n\/d\/r\/c\/s\/q> q          #\u8fd9\u91cc\u6211\u4eec\u5df2\u7ecf\u6210\u529f\u914d\u7f6e\u597d\u8fdc\u7a0b\u4e86\uff0c\u8f93\u5165q\u9000\u51fa<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">3.\u67e5\u770b\u662f\u5426\u914d\u7f6e\u6210\u529f<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>ubuntu@problem-arm:~$ sudo -i root@problem-arm:~# rclone lsd alist:\/<\/code><\/pre>\n\n\n\n<p> -1 2024-08-02 05:32:58 -1 ali<\/p>\n\n\n\n<p> -1 2024-08-02 05:31:08 -1 tianyi<\/p>\n\n\n\n<p> #alist\u662f\u4f60\u521a\u521a\u8fdc\u7a0b\u914d\u7f6e\u7684\u540d\u79f0<\/p>\n\n\n\n<p>\u8fd9\u91cc\u770b\u5230\u914d\u7f6e\u662f\u6210\u529f\u7684\uff0c\u663e\u793a\u6211alist\u8fde\u63a5\u4e86\u662f\u6709\u4e24\u4e2a\u76d8\u7684(\u963f\u91cc\u548c\u5929\u7ffc\u7684)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">4.\u6302\u8f7d<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>root@problem-arm:~# rclone mount alist:\/ \/home\/remote &amp;<\/code><\/pre>\n\n\n\n<p>#\u8fd9\u91cc\u6211\u5c06alist\u7684\u4e24\u4e2a\u76d8\u6302\u8f7d\u5230\u6211\u7684 \/home\/remote\u4e0b\uff0c&amp;\u5728\u540e\u53f0\u6301\u7eed\u6302\u8f7d<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">5.\u53d6\u6d88\u6302\u8f7d<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>root@problem-arm:~# fusermount -qzu \/home\/remote<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u7528docker\u642d\u5efa\u4e86\u4e00\u4e2anavidrome\u81ea\u5df1\u7684\u97f3\u4e50\u5bb9\u5668\uff0c\u4f46\u662f\u5e76\u4e0d\u60f3\u97f3\u4e50\u6587\u4ef6\u653e\u5728\u670d\u52a1\u5668\u4e0a\uff0c\u7d22\u6027\u5c31\u4f7f\u7528rcl [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":100,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[50],"class_list":["post-120","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-2","tag-rclone"],"_links":{"self":[{"href":"https:\/\/www.zhzxs.site\/index.php\/wp-json\/wp\/v2\/posts\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhzxs.site\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhzxs.site\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhzxs.site\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhzxs.site\/index.php\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":5,"href":"https:\/\/www.zhzxs.site\/index.php\/wp-json\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":213,"href":"https:\/\/www.zhzxs.site\/index.php\/wp-json\/wp\/v2\/posts\/120\/revisions\/213"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.zhzxs.site\/index.php\/wp-json\/wp\/v2\/media\/100"}],"wp:attachment":[{"href":"https:\/\/www.zhzxs.site\/index.php\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhzxs.site\/index.php\/wp-json\/wp\/v2\/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhzxs.site\/index.php\/wp-json\/wp\/v2\/tags?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}