How to mount google drive on Linux with Google-Drive-ocamlfuse

Source: Internet
Author: User

How to mount google drive on Linux with Google-Drive-ocamlfuse
GuideIf you are looking for a convenient way to mount your Google Drive folder on a Linux machine, Jack Wallen will teach you how to use google-drive-ocamlfuse to mount Google Drive. Google has not released the Google Drive Application for Linux, although there are many ways to access your Drive file from Linux.

If you like the interface tool, you can choose Insync. If you like to use command lines, there are many tools like Grive2, and FUSE-based file systems that are easier to use written in Ocaml. I will use the following method to demonstrate how to mount your Google Drive on the Linux Desktop. Although this is done through the command line, its usage will be simple to surprise you. It's so simple that everyone can do it.

Features of this system:

  • Full read/write permissions on common files/folders
  • Read-Only applications such as Google Docs, sheets, and slides
  • Ability to access the Drive Recycle Bin (. trash)
  • Process duplicate files
  • Supports multiple accounts

Let's complete the installation of google-drive-ocamlfuse on the Ubuntu 16.04 desktop, and then you can access the files on the cloud disk.

Install
  1. Open the terminal.
  2. Use commands to add necessary PPA
    sudo add-apt-repository ppa:alessandro-strada/ppa
  3. When prompted, enter your root password and press Enter.
  4. Use commands to update applications
    sudo apt-get update
  5. Install software using commands
    sudo apt-get install google-drive-ocamlfuse
Authorization

The next step is to authorize google-drive-ocamlfuse to allow it to access your Google account. Return to the terminal window and click the command google-drive-ocamlfuse. This command will open a browser window, prompting you to log on to your Google account or if you have logged on to your Google account, it will ask if google-drive-ocamlfuse is allowed to access the Google account. If you have not logged on, log on first and click "allow ". In the following window (on the Ubuntu 16.04 desktop, but not on the Elementary OS Freya desktop), you will be asked if you have granted gdfuse and oau2endpoint the permission to access your Google account, click "allow" again ". The window that appears will tell you to wait until the authorization token download is complete, and then the browser will be minimized. When your terminal prompts the same content, you can know that the token has been downloaded and you can mount Google Drive.

The application has been authorized and you can perform subsequent work.

Mount Google Drive

Before mounting Google Drive, you must create a folder as a mount point. In the terminal, click mkdir ~ /Google-drive command to create a new folder under your home directory. Finally, run the google-drive-ocamlfuse ~ command ~ /Google-drive: Mount your Google Drive to the google-drive folder.

In this case, you can view the google drive file/folder contained in the local Google-Drive folder. You can use Google Drive as a local file system.

When you want to uninstall the google-drive folder, enter the command

fusermount -u ~/google-drive
No GUI, but it is particularly useful

I found this particular system very easy to use and surprisingly fast when syncing Google Drive, and it can be used as a clever way to locally back up your Google Drive account. (LCTT ......)
Try google-drive-ocamlfuse to see what interesting things you can do with it.

From: https://linux.cn/article-7604-1.html

Address: http://www.linuxprobe.com/google-drive-ocamlfuse.html


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.