This article will show you how to install Megatools. Megatools is a set of command line tools for accessing Mega.co.nz cloud storage.
You’ll need to execute some commands via SSH to use this software. There is a separate guide on how to connect to your slot via SSH. Commands are kept as simple as possible and in most cases will simply need to be copied and pasted into the terminal window (then executed by pressing the Enter key).
Install Megatools by logging in via SSH, then copying and pasting the following:
mkdir -p ~/bin wget -qO megatools.tar.gz https://megatools.megous.com/builds/megatools-1.10.2.tar.gz tar xf megatools.tar.gz cd ~/megatools-*/ ./configure --prefix=$HOME --disable-docs make && make install cd && rm -rf ~/megatools/
If your binary directory (~/bin) is not in PATH you’ll need to give the full path when trying to run the software in that directory. A better alternative is to add the bin directory to PATH.
Megatools features the following binaries:
- synchronize local and remote mega.nz directories
- display mega.nz storage quotas/usage
- download exported files from mega.nz
- download individual files from mega.nz
- list files stored at mega.nz
- create directories at mega.nz
- upload files to mega.nz
- register a new mega.nz account
- remove files from mega.nz
You can get the usage guide by running the binary name with the --help-basic or --help-all options:
[server ~] megaget --help-all Usage: megaget [OPTION…] - download individual files from mega.nz Help Options: -h, --help Show help options --help-all Show all help options --help-basic Show basic options --help-network Show network options --help-auth Show authentication options Basic Options: --config=PATH Load configuration from a file --ignore-config-file Disable loading .megarc --debug=OPTS Enable debugging output --version Show version information Network Options: --limit-speed=SPEED Limit transfer speed (KiB/s) --proxy=PROXY Proxy setup string Authentication Options: -u, --username=USERNAME Account username (email) -p, --password=PASSWORD Account password --no-ask-password Never ask interactively for a password --reload Reload filesystem cache Application Options: --path=PATH Local directory or file name, to save data to --no-progress Disable progress bar
Learning is not attained by chance, it must be sought for with ardor and attended to with diligence.Never give up on a dream just because of the time it will take to accomplish it. The time will pass anyway.