9

I was wondering if someones knows how to install a client, like megatools, in Ubuntu Server(SSH) to upload and download files to MEGA(mega.co.nz).

Thanks in advance, Joserex65.

8

You can install megatools like so

git clone https://github.com/megous/megatools.git
cd megatools/
sudo apt-get install libtool libglib2.0-dev gobject-introspection libgmp3-dev nettle-dev asciidoc glib-networking#(these are the dependancies I needed, you may need others)
./autogen.sh
make
sudo make install

Enjoy!

More robust way which seems to install all the tools:

sudo apt-get install libtool libglib2.0-dev gobject-introspection libgmp3-dev nettle-dev asciidoc glib-networking
wget http://megatools.megous.com/builds/megatools-1.9.94.tar.gz
zcat megatools-1.9.94.tar.gz > megatools-1.9.94.tar
tar -xf megatools-1.9.94.tar   
cd megatools-1.9.94/
./configure
make
sudo make install

Edit To install just the binary on vivid and wily (15.04/15.10), you can just run sudo apt-get install megatools. On earlier versions, you can run

sudo add-apt-repository ppa:megous/ppa
sudo apt-get update
sudo apt-get install megatools    

From the Readme:

Tools
=====

megareg      Register and verify a new mega account
megadf       Show your cloud storage space usage/quota
megals       List all remote files
megamkdir    Create remote directory
megarm       Remove remote file or directory
megamv       Move and rename remote files
megaput      Upload individual files
megaget      Download individual files
megadl       Download file from a "public" Mega link
             (doesn't require login)
megastream   Streaming download of a file
             (can be used to preview videos or music)
megasync     Upload or download a directory tree
megafs       Mount remote filesystem locally.

See also http://megatools.megous.com

  • Can you perhaps explain what these 'tools' do and why they should be used? As it currently stands you basically just say "get this random software, build it, and bam it helps", but don't say how it helps in any way. – Thomas Ward Nov 13 '14 at 20:27
  • @ThomasW. the question mentioned this tool specifically. I've added some details. – ike Nov 13 '14 at 20:28
  • actually he says 'like megatools', which doesn't state they want to use megatools. To that end, I would suggest editing to sya "YOu can build and use megatools. Here's the instructions:", to make it a little more complete and kinder towards the end-user. – Thomas Ward Nov 13 '14 at 20:32
  • Is there a way to do this without installing 729 MB of archives? – maxisme Jun 17 '15 at 12:19
  • 1
    @Maximilian added instructions to the post – ike Jun 21 '15 at 13:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.