Drive integrates seamlessly with Docs, Sheets, and Slides, cloud-native apps that enable your team to collaborate effectively in real time. Create and share content with your team on Day 1, with no.
Google Drive is an amazing cloud service by Google that allows uploading, sharing, and syncing files across devices. Google Drive encompasses other sub-services, for example, Google Docs, Google Sheets, and Google Slides, etc. that are part of an office suite. The cloud storage is available for free (up to 15GB), but there are also options available for paid service (up to 30TB).In this article, let’s check out how to install Google Drive on Ubuntu 20.04.
- Drive works on all major platforms, enabling you to work seamlessly across your browser, mobile device, tablet, and computer. Go to Google Drive Let’s get started.
- ODrive is an open-source graphic user interface client to sync or backup Ubuntu to your Google Drive. There is no need to open a web browser or use terminal tools. It’s simple, as there are no options, settings, or integrations to understand and master.
Google Drive on Ubuntu
Because of its immense popularity, Google officially offers desktop clients for Windows and macOS. It’s 2020, and we’re yet to get an official Google Drive client for Linux.
Thankfully, there are other ways to enjoy Google Drive on Linux, especially on Ubuntu. All of these are 3rd-party apps. I’m going to showcase some of the best clients you can use to enjoy Google Drive on Ubuntu. These methods are very likely to work on other Ubuntu-based distros as well.
GNOME Online Accounts
Ubuntu now uses GNOME as the default desktop environment. The GNOME Online Accounts is a sign-on framework for GNOME. It supports popular online services like Google, Facebook, Microsoft, and Nextcloud, etc. This method should be followed if you’re using the GNOME desktop.
The tool comes pre-installed with Ubuntu, so you don’t have to worry about manual installation. However, if, for some reason, the app isn’t installed, then run the following command to install it quickly.
$ sudo apt update &&sudo apt install gnome-online-accounts
To add your Google Drive account, search for “Settings” in the GNOME menu.
From the left panel, select “Online Accounts”. Select “Google” from the available options.
A tiny browser window will pop up, prompting you to log in to your Google account.
Once the login is successful, GNOME will prompt for the contents to sync with your Google Drive.
Voila! Google Drive is ready to go! Fire up the file manager. You can directly access the Google Drive folder. Any change made in the folder will be synced with the online storage.
google-drive-ocamlfuse
According to the official description, google-drive-ocamlfuse a FUSE filesystem for Google Drive that’s written in OCaml. Using this tool, you can mount your Google Drive on the system and access it just like a regular directory. Any change made will be automatically synced.
Features of google-drive-ocamlfuse include –
- Multiple account support
- Symbolic links
- Read-only access to Docs, Sheets, and Slides
- UNIX file permission and ownership
For Ubuntu, there are dedicated PPAs, one for the stable version, one for the beta version. Here, I’ll be showcasing how to install the stable version of google-drive-ocamlfuse. Fire up the terminal and run the following commands.
$ sudo add-apt-repository ppa:alessandro-strada/ppa
$ sudo apt update &&sudo apt install google-drive-ocamlfuse
To set your Google drive folder, launch the tool.
It’ll pop up a webpage in your default browser, prompting you to log in to your Google account. 32 bit chrome os.
Go through the login process. If it’s successful, you’ll see a success message. You can now close the browser.
Now, we need to create a mount point for Google Drive. Let’s create a sub-directory under the home directory.
Tell google-drive-ocamlfuse to mount your Google Drive folder at the location.
Check if the mount was successful.
Let’s test out how the synchronization is working.
Note that google-drive-ocamlfuse will sync the directory with the server every 60 seconds. If you’ve made a change in the mounted directory, it’ll be updated after 60 seconds. Similarly, if any change is made to the Google Drive contents from somewhere else, google-drive-ocamlfuse will update it locally after a minute.
Insync
Insync is a powerful desktop client designed to work with Google Drive and Microsoft OneDrive. It’s a GUI tool available for Windows, macOS, and Linux. It has multi-account support (both Google Drive and OneDrive), selective syncing, and above all, a pleasant and simple UI.
However, unlike other solutions mentioned in the article, it comes with a price tag. You can enjoy Insync for up to 2 weeks for free. If you want to use it more, you have to unlock it by performing a one-time purchase. The pricing is determined by the number of accounts you want to use with Insync.
Here, I’ll be showcasing how to install and use Insync (trial version). If you’ve purchased the product, then all you need is manually enter the license key in the software.
Grab the Insync DEB package.
It’s time to install the DEB package. Fire up the terminal and run the following commands.
$ sudo apt update &&sudo apt install ./insync_3.2.1.40839-bionic_amd64.deb
Launch the tool.
First, the tool will ask for which cloud service you’re interested in. In this case, we’ll be going with Google Drive.
Click on the Google Drive icon. It’ll open a webpage on the default browser. You’ll be asked to log in to your Google account.
Once the login is complete, a success message will pop up. You can now close the browser.
Insync will be ready to go. Click “Next”.
Select the physical location of the folder where Insync will sync all the Google Drive files.
Insync will ask for configuring your sync preference. For general use, you can ignore the message. If you’re an advanced user, however, then you should look into it. I’ll be just skipping ahead.
Select all the contents that you wish to sync at the moment.
Voila! Insync is ready to go!
Final thoughts
Google Drive is an awesome service suitable for both personal and professional use. Feel free to use the right tool for you. If you need to access services like Google Docs, Sheets, and Slides, it’s better to use your browser.
Don’t forget to check out ODrive – a powerful syncing service that allows managing all the popular cloud storages (Amazon, Dropbox, Google Drive, OneDrive, Slack, FTP, SFTP, DigitalOcean, and others) from a single place. One of the interesting key features of ODrive is its encryption support. The files are locally encrypted and uploaded, leaving no chance of loss even in the case of data theft. Check out how to install ODrive on Ubuntu.
Enjoy!
In this article we’ll consider how to connect free cloud storages like Google Drive or OneDrive in Linux CentOS. You can use them to backup data or just to exchange files between your hosts. For example, you can install a cloud storage client in your Windows desktop, upload files to it and automatically get access to shared files from Linux (or vice versa).
Often the webmasters or web developers don’t know that they can use cloud storages if there is not enough free space on a virtual machine or in a container. In my work I recommend users to connect cloud storages to store some files they donэt need often or to backup a website or MySQL/MariaDB databases there.
In this article we’ll consider how to connect the most popular free storages (OneDrive and Google Drive), to a host running Linux CentOS 7.
How to Mount Google Drive as a Storage in Linux?
Let’s take a look at how to connect Google Drive on Linux CentOS 7. The installation is very fast and simple.
Download Google Drive client using the command:
# wget -O drive https://drive.google.com/uc?id=0B3X9GlR6EmbnMHBMVWtKaEZXdDg
Move the file to /usr/sbin:
# mv drive /usr/sbin/drive
Change file permissions:
# chmod +x /usr/sbin/drive
Google Drive installation is over, you only have to start the client and sign in:
# drive
Go to the following link in your browser:
https://accounts.google.com/o/oauth2/auth?client_id=367116221053-7n0vf5akeru7on6o2fjinrecpdoe99eg.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=state
Enter verification code:
Copy the link and open it in a browser on your PC and allow access to your Google account.
Then you will get a link to enter in your Linux console:
Google Drive is connected, but it does not use the WebDav protocol (it is not supported). So, you do not see it either as a separate file system or a local directory. You can address Google Drive through the
drive
client. Multitrack audio editing software free download.You can view the files in your Google Drive using the command:
# drive list
Files are displayed as a table having four columns:
Id
– a unique file codeTitle
– a file nameSize
– a file sizeCreated
– a date of creation
To test it, we can create a file and upload it to g.drive:
touch testdrive.txt && drive upload --file testdrive.txt
The file has been created, you can see it in the console. Also make sure that the file has appeared in Google Drive web interface:
By default, Google offers 15GB space on its Google Drive for free.
So we have connected Google Drive to our Linux server. I like Google Drive since you don’t have to do anything on the server to mount the cloud storage after each server restart. You can restart your server as many times as necessary and Google Drive will be connected automatically. However, there are some disadvantages: you don’t see the cloud storage as a separate directory on the server and cannot manage files on the file system level or using the usual bash commands.
Mounting OneDrive in Linux
OneDrive is a cloud storage by Microsoft. By default it is available for all Windows 10 users with the linked account (5GB are offered in OneDrive for free). Our task is to connect OneDrive in CentOS 7. During the configuration I came across a lot of problems that can be solved after some experimenting. You will only have to read the instructions and follow these steps on your server.
First of all, sign up using this link: https://onedrive.live.com
Then install the required packages in Linux CentOS using yum:
# yum groupinstall 'Development Tools' -y
# yum install libcurl-devel -y
# yum install sqlite-devel -y
Then install the programming language D(dlang). It will be required to install the OneDrive client:
# curl -fsS https://dlang.org/install.sh | bash -s dmd
To run D(dlang), enter this command:
source ~/dlang/dmd-2.088.0/activate
— in your case, the dmd version may differ, so specify the one you have.After running dlang, install OneDrive client:
cd /opt
git clone https://github.com/abraunegg/onedrive.git
cd onedrive
./configure
make clean; make;
sudo make install
The installation is over, then you have to activate the client in OneDrive web version. Run the command:
OneDrive
The system will show you the link you must enter in your browser. Click Allow in the web form of the access request. Then the link will change to the unique one containing the code you will have to enter in your Linux console.
After the link confirmation, I can synchronize with OneDrive cloud storage:
# onedrive --synchronize
By default, /root/OneDrive directory containing all folders of my cloud storage has been created on my Linux host. Acrobat reader 32 bit offline installer.
# ls -la /root/OneDrive/
To test it, I created a file test2.txt and synchronized the storages:
# onedrive --synchronize
The file was uploaded to the OneDrive cloud:
To change the default directory, you must change the
sync_dir
parameter in the configuration file and run this command:# onedrive --synchronize --resync
After restarting the server, OneDrive client is started automatically and you don’t need to sign in again.
In the next article, we’ll consider how to use cloud storages to backup data from a Linux server.