昨天给D2550装上了KoolShare的固件,这一路上没有出什么不好办的事情。因为啊,上帝说了,要把所有的Error都放到前期折腾完之后,这样更能让人感到痛苦(当然这篇文章不只是来抱怨的,还是我记录我用D2550装Rclone的......日志?
所以刷固件的部分就不做记录了,我是把软路由的系统装进一块机械硬盘,在WinPE下刷。
如题,这篇吃饱撑着写的文章是要记录我折腾一晚上rclone的成果以及那令人掉头发的过程。
找了很多教程、文章,看完之后半蒙半懂,试了一下还给我报错。
心说话:我不就想挂载网盘到软路由上吗,为啥这么麻烦啊
比如这篇文章,我亲测用不了(至少我这里用不了,别人那边能不能用就是另外一码事了)
那咋办呢,就想想之前用CentOS服务器的时候用的rclone官方安装脚本吧。虽然知道LEDE就一busybox,但还是要试试死马当活马医
结果这该死的cURL不讲武德,玩偷袭,我当时就抱着好奇心敲了一下回车,他就给我报错,耗子尾汁,骗
又试了试用wget把这个脚本下载下来,再运行这个脚本,理论上可以,可是,但是,可但是,但可是,这速度......估计它下载完,我胡子都白了(虽然说在那之前可能会停电断网之类的)
也别提这科学上网了,我搞不来(
最后被迫按下ctrl+c,不过这回不是在复制指令,更不是在抄代码,而是终止安装脚本
看着Rclone downloads页面,我陷入了沉思。突然看到了表格里面的下载键
在Windows下下载下来,然后到Openwrt的文件管理中上传rclone的文件,之后就是设置权限再加运行了
上传到哪里是你的事情,我是在root目录下创建了一个rclone目录,然后把这些东西放进去的
接下来,为了挂载到本地目录,需要安装FUSE
下面是我在终端中的操作过程
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 | root@Openwrt:~/rclone# opkg find *fuse* confuse - 3.3-1 - libConfuse is a configuration file parser library, licensed under the terms of the ISC license, and written in C. It supports sections and (lists of) values (strings, integers, floats, booleans or other sections), as well as some other features (such as single/double-quoted strings, environment variable expansion, functions and nested include statements). It makes it very easy to add configuration file capability to a program using a simple API. The goal of libConfuse is not to be the configuration file parser library with a gazillion of features. Instead, it aims to be easy to use and quick to integrate with your code. libConfuse was called libcfg before, but was changed to not confuse with other similar libraries. fuse-utils - 2.9.7-2 fuse-utils - 2.9.9-1 - FUSE (Filesystem in UserSpacE) This package contains the FUSE utilities. - fusermount - ulockmgr_server fuse3-utils - 3.10.1-1 - fuse3 (Filesystem in UserSpacE) This package contains the FUSE utilities. - fusermount3 - mount.fuse3 gnunet-fuse - 0.13.0-1 - GNUnet filesystem mount via FUSE kmod-fuse - 4.14.115-1 kmod-fuse - 5.4.94-1 - Kernel module for userspace filesystem support libfuse1 - 2.9.9-1 - FUSE (Filesystem in UserSpacE) This package contains the FUSE shared libraries, needed by other programs. - libfuse - libulockmgr libfuse1 - 2.9.7-2 libfuse3-3 - 3.10.1-1 - fuse3 (Filesystem in UserSpacE) This package contains the fuse3 shared libraries, needed by other programs. - libfuse3 ntfs-3g-low - 2017.3.23-4-fuseint - Contains: - lowntfs-3g - mount.lowntfs-3g (symlink to lowntfs-3g) A driver variant using the fuse low-level interface missing some of the enhanced functionality for streams or the like. You might want to check: http://www.tuxera.com/community/ntfs-3g-manual/ open-vm-tools-fuse - 11.2.0-1 - Shared Folders user mode FUSE client support for VMware guest OS owfs - 3.2p4-1 - OWFS is a suite of programs that designed to make the 1-wire bus and its devices easily accessible. The underlying principle is to create a virtual filesystem, with the unique ID being the directory, and the individual properties of the device are represented as simple files that can be read and written. Details of the individual slave or master design are hidden behind a consistent interface. The goal is to provide an easy set of tools for a software designer to create monitoring or control applications. There are some performance enhancements in the implementation, including data caching, parallel access to bus masters, and aggregation of device communication. Still the fundemental goal has been ease of use, flexibility and correctness rather than speed. This package contains the OWFS fuse filesystem. psmisc - 23.3-1 - psmisc is a set of additional small useful utilities that use the proc filesystem like fuser, killall, prtstat, pstree. python3-defusedxml - 0.6.0-3 - The defusedxml package contains several Python-only workarounds and fixes for denial of service and other vulnerabilities in Python’s XML libraries. python3-defusedxml-src - 0.6.0-3 - The defusedxml package contains several Python-only workarounds and fixes for denial of service and other vulnerabilities in Python’s XML libraries. This package contains the Python source files for python3-defusedxml. seafile-server-fuse - 7.1.5-2 - Open source cloud storage with advanced features on privacy protection and teamwork. This package contains the FUSE extension (seaf-fuse) for Seafile server. root@Openwrt:~/rclone# opkg install fuse-utils Upgrading fuse-utils on root from 2.9.7-2 to 2.9.9-1... Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/packages/fuse-utils_2.9.9-1_x86_64.ipk Configuring fuse-utils. |
安装fuse之后(opkg install fuse-utils),就可以用rclone挂在目录到本地硬盘了
服务这种东西我不会搞,我就整了个screen然后在screen上挂着rclone了,不过这样的话每次启动之类的都很麻烦
发表回复