How to Install Cloud Drive on Ubuntu – Free 20GB Storage

This tutorial is going to show you how to install cloud drive on Ubuntu desktop and server. is a cloud storage provider from New Zealand. It offers 20GB free storage upon registration and also allows you to get up to 50GB free space. Features

  • Zero-knowledge encryption (user-controlled end-to-end encryption).
  • Open-source client apps.
  • Cross-platform, available on Linux, macOS, Windows, iOS, Android and NAS.
  • Full sync and selective sync
  • Two-factor authentication for an additional layer of security.
  • Protect your share link with a password or make it automatically expire after a certain amount of time.
  • File versioning allows you to revert the files back to a moment in time.
  • MEGAdrop: A MEGAdrop folder allows anyone to upload files to your MEGA cloud, even if they don’t have an account.
  • MEGAchat: audio/video calls with MEGA’s end-to-end encrypted chat.

Install MEGAsync Client on Ubuntu Desktop

If you don’t have a account yet, go to website and create an account. Then download the MEGA sync client for Linux. Select your Ubuntu version (Ubuntu 18.04, Ubuntu 20.04 or Ubuntu 21.04).

megasync linux client

Once the MEGA sync deb package is downloaded, cd to the download directory. For example, my MEGA sync is downloaded to the Downloads directory under Home, so I run the following command. The tilde (~) represents home directory.

cd ~/Downloads

Then use the apt package manager to install deb package.  The dot (.) represents the current directory.

sudo apt install ./megasync-xUbuntu_20.04_amd64.deb

Note that when you type the following

sudo apt install ./megasync

You can press the Tab key, which will autocomplete the filename.

install megasync on Ubuntu

Once it’s installed, open MEGA sync from your application menu. A login window will pop up. Enter your email address and password.

mega desktop app ubuntu

Next, you can choose to sync all Mega cloud folder or specific folders. I choose full sync.

mega sync selective sync

Then choose the local folder that will be used to store your MEGA files.

megasync local folder

After the setup is finished, you can also select other folder on your hard drive to be synced with MEGA cloud drive in the settings.

megasync settings

How to Install MEGA Client on Ubuntu Server

To use MEGA on a headless Ubuntu server, you need to install the MEGA command-line client.

Download MEGA CMD client. Select your Ubuntu version (Ubuntu 18.04, Ubuntu 20.04 or Ubuntu 21.04).

mega command line client ubuntu

You can use the following command to download it from the command line.

Ubuntu 18.04


Ubuntu 20.04


Ubuntu 21.04


Then run the following command to install it.

sudo apt install ./megacmd*.deb

Next, run the interactive mega-cmd command.


Then use the sub-command login to log into your account.

login your-mega-email-address

It will prompt you to enter your MEGA password.

Once logged in, you will be dropped into the MEGA folder. To exit, run


To resume the session, run mega-cmd again.

mega-cmd login ubuntu

To learn how to use MEGA from command line, read the detailed MEGA CMD user guide.

Getting More Free Space

You can get up to 50GB free space.

  • Install the MEGA desktop app to get 5GB free storage.
  • Install the MEGA mobile app to get 5GB free storage.
  • Add a phone number to get 5GB free storage.
  • Invite your friends to sign up for MEGA. Each will get you 5GB free storage.

However, these bonus are valid for 365 days only. For more information, check out the MEGA achievements page.

Click to rate this post!
[Total: 0 Average: 0]

Leave a Reply