`git clone https://github.com/meganz/MEGAcmd` should allow you to download files from mega without running proprietary software.
I strongly suggest compiling libbdplus and libbluray without Java support, so you don't run the proprietary software in bluray menus or the digital handcuff VM software accidentally - menus really aren't needed and libbdplus can use precomputed tables no problem.
Of course, I suggest compiling ffmpeg with libbluray support and then extracting any bluray's into a .mkv file, for handcuff free playback.
mpv and VLC also have libbluray support.
People shill proprietary software that can decrypt bluray's, but those are just copyright infringing versions of libbluray+libaacs+libbdplus.
@jihadjimmy You just need to compile ffmpeg with libbluray and provided libaacs and libbdp is setup correctly, you cay just pass -i bluray:/dev/sr0 (or whatever the drive device is) and ffmpeg will be able to read the bluray like any media stream.
Blurays like to screw things up with playlists, but usually the main feature is playlist 800 and the command is therefore just; `ffmpeg -playlist 800 -i bluray:/dev/sr0 -codec copy bluray_playlist.mkv`
You can also probe playlists with `ffprobe bluray:/dev/sr0`, although that only shows playlists that are at least 3 minutes long - the bd_list_titles or bluray_info commands included in libbluray will show all the playlists.