# User service for Rclone mounting # # Place in ~/.config/systemd/user/ # As your normal user, run # systemctl --user daemon-reload # systemctl --user enable rclone_aliyundrive # systemctl --user start rclone_aliyundrive # systemctl --user stop rclone_aliyundrive
user@user-ThinkPad-X201:~/tool/bin$ sudo -v ; curl https://rclone.org/install.sh | sudo bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4669 100 4669 0 0 3868 0 0:00:01 0:00:01 --:--:-- 3868
rclone v1.61.1 has successfully installed. Now run "rclone config" for setup. Check https://rclone.org/docs/ for more details.
user@user-ThinkPad-X201:~/tool/bin$ user@user-ThinkPad-X201:~/tool/bin$ rclone config Current remotes:
Name Type ==== ==== aliyundrive webdav
e) Edit existing remote n) New remote d) Delete remote r) Rename remote c) Copy remote s) Set configuration password q) Quit config e/n/d/r/c/s/q> n
Enter name for new remote. name> nas1
Option Storage. Type of storage to configure. Choose a number from below, or type in your own value. 1 / 1Fichier \ (fichier) 2 / Akamai NetStorage \ (netstorage) 3 / Alias for an existing remote \ (alias) 4 / Amazon Drive \ (amazon cloud drive) 5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, IDrive e2, IONOS Cloud, Liara, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Tencent COS, Qiniu and Wasabi \ (s3) 6 / Backblaze B2 \ (b2) 7 / Better checksums for other remotes \ (hasher) 8 / Box \ (box) 9 / Cache a remote \ (cache) 10 / Citrix Sharefile \ (sharefile) 11 / Combine several remotes into one \ (combine) 12 / Compress a remote \ (compress) 13 / Dropbox \ (dropbox) 14 / Encrypt/Decrypt a remote \ (crypt) 15 / Enterprise File Fabric \ (filefabric) 16 / FTP \ (ftp) 17 / Google Cloud Storage (this is not Google Drive) \ (google cloud storage) 18 / Google Drive \ (drive) 19 / Google Photos \ (google photos) 20 / HTTP \ (http) 21 / Hadoop distributed file system \ (hdfs) 22 / HiDrive \ (hidrive) 23 / In memory object storage system. \ (memory) 24 / Internet Archive \ (internetarchive) 25 / Jottacloud \ (jottacloud) 26 / Koofr, Digi Storage and other Koofr-compatible storage providers \ (koofr) 27 / Local Disk \ (local) 28 / Mail.ru Cloud \ (mailru) 29 / Mega \ (mega) 30 / Microsoft Azure Blob Storage \ (azureblob) 31 / Microsoft OneDrive \ (onedrive) 32 / OpenDrive \ (opendrive) 33 / OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH) \ (swift) 34 / Oracle Cloud Infrastructure Object Storage \ (oracleobjectstorage) 35 / Pcloud \ (pcloud) 36 / Put.io \ (putio) 37 / QingCloud Object Storage \ (qingstor) 38 / SMB / CIFS \ (smb) 39 / SSH/SFTP \ (sftp) 40 / Sia Decentralized Cloud \ (sia) 41 / Storj Decentralized Cloud Storage \ (storj) 42 / Sugarsync \ (sugarsync) 43 / Transparently chunk/split large files \ (chunker) 44 / Union merges the contents of several upstream fs \ (union) 45 / Uptobox \ (uptobox) 46 / WebDAV \ (webdav) 47 / Yandex Disk \ (yandex) 48 / Zoho \ (zoho) 49 / premiumize.me \ (premiumizeme) 50 / seafile \ (seafile) Storage> 38
Option host. SMB server hostname to connect to. E.g. "example.com". Enter a value. host> 192.168.1.1
Option user. SMB username. Enter a string value. Press Enter for the default (user). user> user
Option port. SMB port number. Enter a signed integer. Press Enter for the default (445). port> Option pass. SMB password. Choose an alternative below. Press Enter for the default (n). y) Yes, type in my own password g) Generate random password n) No, leave this optional password blank (default) y/g/n> y Enter the password: password: Confirm the password: password:
Option domain. Domain name for NTLM authentication. Enter a string value. Press Enter for the default (WORKGROUP). domain> Edit advanced config? y) Yes n) No (default) y/n> Configuration complete. Options: - type: smb - host: 192.168.1.1 - pass: *** ENCRYPTED *** Keep this "nas1" remote? y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y
Current remotes:
Name Type ==== ==== aliyundrive webdav nas1 smb
e) Edit existing remote n) New remote d) Delete remote r) Rename remote c) Copy remote s) Set configuration password q) Quit config e/n/d/r/c/s/q> q user@user-ThinkPad-X201:~/tool/bin$ cd ~/mnt user@user-ThinkPad-X201:~/mnt$ ls -l 总用量 8 drwxrwxr-x 1 user user 0 2月 13 12:32 aliyundrive drwxrwxr-x 3 user user 4096 2月 9 08:48 CloudNAS drwxrwxr-x 2 user user 4096 10月 16 08:27 nfs1 user@user-ThinkPad-X201:~/mnt$ mkdir nas1 user@user-ThinkPad-X201:~/mnt$ rclone mount nas1:/ ~/mnt/nas1