To install megtools (command line utilities for Mega.nz), in your raspberry with ubuntu installed follow the steps below (thanks to the instructions from here: https://www.instructables.com/id/Descarga-archivos-de-Mega-con-Raspberry-Pi/)
- Install the necessary packages
1 |
sudo apt-get -y install build-essential libglib2.0-dev libssl-dev libcurl4-openssl-dev libgirepository1.0-dev |
You may also need to add some additional packages if there is an error about the documentation.
- Get the latest source code from https://megatools.megous.com
1 |
wget https://megatools.megous.com/builds/megatools-1.10.3.tar.gz |
- Compile and install them
1 2 3 4 5 6 |
tar xvfz megatools-1.10.3.tar.gz cd megatools-1.10.3 ./configure make sudo make install sudo ldconfig |
- Add your Mega account credentials in ~/.megarc like:
1 2 3 |
[Login] Username = my_mega@email Password = mypassword |
- use the mega tools commands (megacopy, megals, megaget etc.