This tutorial is going to show you how to install MEGA.nz cloud drive on Ubuntu desktop and server. MEGA.nz 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.

MEGA.nz 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 MEGA.nz account yet, go to MEGA.nz 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).

How to Install Mega.nz Cloud Drive on Ubuntu – Free 20GB Storage linux ubuntu Ubuntu Desktop Ubuntu Server

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.

How to Install Mega.nz Cloud Drive on Ubuntu – Free 20GB Storage linux ubuntu Ubuntu Desktop Ubuntu Server

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

How to Install Mega.nz Cloud Drive on Ubuntu – Free 20GB Storage linux ubuntu Ubuntu Desktop Ubuntu Server

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

How to Install Mega.nz Cloud Drive on Ubuntu – Free 20GB Storage linux ubuntu Ubuntu Desktop Ubuntu Server

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

How to Install Mega.nz Cloud Drive on Ubuntu – Free 20GB Storage linux ubuntu Ubuntu Desktop Ubuntu Server

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.

How to Install Mega.nz Cloud Drive on Ubuntu – Free 20GB Storage linux ubuntu Ubuntu Desktop Ubuntu Server

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).

How to Install Mega.nz Cloud Drive on Ubuntu – Free 20GB Storage linux ubuntu Ubuntu Desktop Ubuntu Server

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

Ubuntu 18.04

wget https://mega.nz/linux/MEGAsync/xUbuntu_18.04/amd64/megacmd-xUbuntu_18.04_amd64.deb

Ubuntu 20.04

wget https://mega.nz/linux/MEGAsync/xUbuntu_20.04/amd64/megacmd-xUbuntu_20.04_amd64.deb

Ubuntu 21.04

wget https://mega.nz/linux/MEGAsync/xUbuntu_21.04/amd64/megacmd-xUbuntu_21.04_amd64.deb

Then run the following command to install it.

sudo apt install ./megacmd*.deb

Next, run the interactive mega-cmd command.

mega-cmd

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

exit

To resume the session, run mega-cmd again.

mega-cmd

How to Install Mega.nz Cloud Drive on Ubuntu – Free 20GB Storage linux ubuntu Ubuntu Desktop Ubuntu Server

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.

Wrapping Up

I hope this article helped you to install and use MEGA.nz cloud drive on Ubuntu desktop and server. As always, if you found this post useful, then subscribe to our free newsletter to get more tips and tricks 🙂