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
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
wget https://megatools.megous.com/builds/megatools-1.10.3.tar.gz
- Compile and install them
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:
[Login] Username = my_mega@email Password = mypassword
- use the mega tools commands (megacopy, megals, megaget etc.