挂载云端硬盘
Google Drive is nice cloud storage which provide document editing features. However, it does not yet provide a Linux client. I find a good third party tool that works with Google Drive on Linux very well: google-drive-ocamlfuse.
Google云端硬盘是不错的云存储,可提供文档编辑功能。 但是,它尚未提供Linux客户端。 我发现一个很好的第三方工具可以很好地与Linux上的Google云端硬盘配合使用: google-drive-ocamlfuse 。
The website of google-drive-ocamlfuse provides easy to follow instructions to install it. In this tutorial, we show a more convenient method using opam.
google-drive-ocamlfuse网站提供了易于遵循的说明以进行安装。 在本教程中 ,我们展示了一种使用opam的更方便的方法。
安装opam (Install opam)
If you have not installed opam, you need to install opam first.
如果尚未安装opam,则需要先安装opam 。
通过opam安装google-drive-ocamlfuse (Install google-drive-ocamlfuse via opam)
You may need to install some packages on your system. On Fedora, you may need to at least install:
您可能需要在系统上安装一些软件包。 在Fedora上,您可能至少需要安装:
# yum install sqlite-devel fuse-devel libcurl-devel zlib-devel m4
opam will automatically resolve dependencies and install the needed packages:
opam将自动解决依赖关系并安装所需的软件包:
$ opam install google-drive-ocamlfuse
配置google-drive-ocamlfuse (Configure google-drive-ocamlfuse)
You need to run google-drive-ocamlfuse without parameters and it will request authorization:
您需要运行不带参数的google-drive-ocamlfuse,它将要求授权:
$ google-drive-ocamlfuse
This command will create the default application directory (~/.gdfuse/default
), containing the configuration file config and start a web browser to obtain authorization to access your Google Drive.
此命令将创建包含配置文件config的默认应用程序目录( ~/.gdfuse/default
),并启动网络浏览器以获取访问Google云端硬盘的授权。
挂载Google云端硬盘 (Mounting Google Drive)
After configured google-drive-ocamlfuse, you can mount the file system:
配置好google-drive-ocamlfuse之后,您可以挂载文件系统:
$ google-drive-ocamlfuse mountpoint
You need to be patient and it may take some time to load your files.
您需要耐心等待,加载文件可能需要一些时间。
翻译自: https://www.systutorials.com/mounting-google-drive-on-linux/
挂载云端硬盘