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.
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.
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
try Rclone
Rclone is a command line program for managing files on cloud storage.
this tool allows us to upload files to mega and not only mega, but more than 40 cloud storage products support rclone including S3 object stores, business & consumer file storage services, as well as standard transfer protocols.
install rclone
curl https://rclone.org/install.sh | sudo bash
configure with mega account
rclone config
Upload files to mega
syntax:
rclone copy filepath dest:destpath
example:
rclone copy myfile.txt pausi:backup
(this will upload the myfile.txt file to the backup folder in mega)
for download files from mega to local storage.
syntax:
rclone copy dest:destpath path
example:
rclone copy pausi:backup/myfile.txt .