Google Disk Linux

broken image
How To Mount Google Drive Locally As Virtual File System In Linux

By comparison, Google provides 15 GB of storage for free. Since Linux users can access their files only via a Web browser, there is no limit to the number of devices you can use. Nor is there a limit for linking Windows and macOS computers. You can jump up to 100 GB of storage for $1.99/month or get even more storage for an additional cost. SDD disk expansion box with another 8 × 9 GB hard disk drives donated by IBM. Homemade disk box which contained 10 × 9 GB SCSI hard disk drives. Production hardware. As of 2014, Google has used a heavily customized version of Debian (GNU/Linux). They migrated from a Red Hat-based system incrementally in 2013.

Itunes os x 10 11 4. Want to access your Google Drive files natively on Ubuntu? Sure you do, and you can.

If you read this site regularly (or are fairly up-to-speed in all things Linux) then you'll know that GNOME 3.18 brought with it the nifty ability to access your Google Drive files on Linuxthrough the Nautilus file manager.

‘Get access all your Google Drive files inside Nautilus, without third-party apps'

In the absence of an official Google Drive client for Linux it's a super helpful feature.

But it is one that many assumed was out of scope for those running Ubuntu 16.04, which ships with Nautilus 3.14 and not 3.18.

Well, it turns out that this isn't actually required after all. You can access Google Drive files in Nautilus in Ubuntu 16.04 LTS.

How?

You just need to install the GNOME Control Center and the GNOME Online Accounts packages, add your Google Account, and away you go!

The Top 5 Google Drive Clients For Linux

Don't believe me? Why not try it out.

How To Access Google Drive on Ubuntu 16.04 LTS

1. First install the GNOME Control Center and GNOME Online Accounts packages on Ubuntu:

2. Open the GNOME Control Center from the Unity Dash (or the command line).

3. Click on the ‘Online Accounts' icon.

4. Click ‘Add Account', followed by ‘Google'. Proceed to enter your account details and grant GNOME authorisation to fetch and edit your files.

5. Make sure that the ‘Files' switch is in the correct position and you're all set.

Open a new Nautilus window and click your Google account e-mail listed in the sidebar.

What This Is (And Isn't)

It's important to be aware that this does not create a local copy of your Google Drive contents. It can only be used with an active internet connection.

As a gvfs (Gnome Virtual File System) mount this 'access' comes with all the usual limitations and caveats (i.e., any files you add or delete in the Google Drive folder in Nautilus are instantly synced on the cloud (and vice versa). You also don't get any other niceties, like share links, and so on.

Load Remote Thumbnails

By default Nautilus won't load file previews/thumbnails from remote mounts. You can change this setting through Nautilus > Edit > Preferences > Preview and changing Show Thumbnail from Local to Always Show.

Manage Files

You can open Google Drive files in local apps, edit them, and have those changes saved right back to the cloud — handy for photo and document editing!

To save a file locally for offline use simple drag and drop it from the Google Drive folder to a local folder.

To upload a file to Google Drive simply copy/drag and drop it into a directory in the Google Drive folder.

Unmount

To unmount your Google Drive just click the small ‘eject' icon in the Nautilus sidebar, or right-click on the Mount folder item on the Unity Launcher and select ‘unmount'.

Google Cloud Platform offers a number of services ranging from App Engine, fully managed Kubernetes, Database as a Service, Function as a Service, Object store and much more. It is easy enough to get overwhelmed by all the functionalities, each as attractive as other. The Google Cloud Platform dashboard, in my opinion, doesn't make it any easier for the user, either!

Sometimes, all we need is a simple VM. Despite the uprising of containers, VMs are still useful and simple. You don't have to worry about giving your application permissions for a different Database service, an object store service etc. Everything from compute to storage can be contained within a single (scalable) VM.

In this post, let's dive into how one can spin up a Ubuntu server in Google's Cloud Platform.

GCE is the product that actually lets you configure and deploy virtual machines on Google's infrastructure. Everything from the amount of resources to the networking capabilities, SSH-keys and Operating system are selected herein.

Login to your Google Cloud Platform dashboard, and search for GCE. At once Compute Engine will show up in the results, click on it.

Here's an overview of Compute Engine:

As you can see, the side menu has a lot of options for managing your VMs and monitoring them. We will stick to VM instances for now. Since this lets us create a single VM. If you wish to create a group of them 'Instance groups' might serve you better.

Let's start by clicking on Create, as shown in the screenshot above.

A VM template with all the default values provided by Compute Engine will appear. Let's configure a few of the defauls. I'll leave the CPU to 1 vCPU and memory to 3.75 GB as those values are good enough for a demo. If you want more/less resources for optimal price and performance, feel free to tweak these parameters.

First thing I will tweak is the boot disk. We want Ubuntu, so, under boot disk, click on Change and select Ubuntu 18.04 LTS. This disk will have the OS installed and the remaining space is what you will use for your application, packages, etc. (unless you are adding extra block storage). So if you want more storage than the default 10GB, make sure to increase the size, as shown below.

Moreover, for better performance you can select SSD persistent disk. This is a significant improvement over standard persistent disk. Once the boot disk is selected to be Ubuntu, we can just create the VM and have a Ubuntu server installed in the cloud for us.

However, let's configure, for convenience sake, Firewall and SSH keys.

If you wish to host an HTTP or HTTPS server, make sure to check the boxes saying 'Allow HTTP Traffic' and 'Allow HTTPS Traffic'. Most websites would need this, and so would most API servers, reverse proxy servers, etc. As for the Identity and API access parameters are concerned, you can leave that to default.

Now click on 'Management, security, disks…' section to access more customization features. Within this dropdown go to Security and you can paste your public ssh key in here. The username within the key will also be created inside the VM. For example, the key

ssh-ed25519
AAAAC3NzaC1lZDI1NTE5AAAAIH31mVjRYdzeh8oD8jvaFpRuIgL65SwILyKpeGBUNGOT ranvir

Will create a user named ranvir with sudo access and place the SSH key within this user's home directory (~/.ssh/authorized_keys) so you can access the VM remotely.

We are almost done. Review the monthly estimated price this VM will cost you as well as the region where it will be spun up, by scrolling all the way up again. Regions are a subjective, but important parameter. For someone trying to create a VPN, a VPN several time zones away is better suited. On the other hand, if you require lower latencies, you need to select a region nearest to you.

Then click on create and you have your Ubuntu VM up and running!

How To Work Offline With Google Drive Files(TechRepublic)

Post Configuration

In order to make sure that you can ssh into the VM reliably as well as point domain names to this VM, you would need a static public IP address. If you view the Compute Engine dashboard, you will see the status of your VM along with its external (public) IP.

But if you click on the VM's name (instance-1 in my case) then you will notice that the IP is, in fact, ephemeral.

This means trouble, especially if you are using external domain name servers to point your FQDN towards this IP address. To change this to static, click on Edit, from the top menu. Scroll back to network interfaces (nic0, in our case) and edit it.

How To Sync Your Google Cloud On Linux With Grive2(TechRepublic)

Click on Ephemeral under the External IP and select Create IP address.

It will open up a dialogue box asking you for a name to give to this new static IP. Give it a reasonable name and click Reserve. You will notice that the external IP of the VM has indeed changed and, hopefully, for the last time.

Change default web browser. You can now try to ssh into this VM via its external IP. Remember the username that was associated with your public SSH key? Just use that along with the static IP you obtain, like in my case it would be:

How To Make The Most Out Of Google Drive On GNOME(TechRepublic)

Your username and IP would be very different from mine, use those instead.

Next steps

When it comes to computation, automation is the name of the game. VMs are often created as a disposable entity in the cloud, especially if you just want to use them for a few hours of testing, or running batch processes, etc.

Now that you know how to create a VM using the GUI, try automating the process using the gcloud CLI or the REST API. Whatever actions you perform on the Compute Engine GUI, an equivalent HTTP request or gcloud command is available in the bottom of the page.

Use them to automate the tedious process of spinning up VMs. This will help you save an enormous amount of time.





broken image