This is a series of messages to explain usage for each cloud target using cloudtools command line or mount tools
Please for support use the "PRODUCT" forum and help
... the source code of the program have not been changed in any manner (except if difference is listed here ... in fact only for Bash interface)
[Mega]
prerequisite : NOTHING
Set of tools :
tools to download "exported" mega file : megadl THIS don't require to have a mega account ...
... an exported file is a link (URL) with the KEY (data are encrypted) or without
... URL with a key can be downloaded directly
... URL without key require that you know the key (send you by owner using another way) ... requested by megadl ...
tools to work with your own account
... this require to supply your account (email / password)
... to do this 3 solutions ...
... ... 1 : put user and password as parameters in the command (each time) BUT this appear in clear in Linux survey tools like "ps"
... ... ... if you have more than one account ... easy way to change target even from a unique Asustor user
... ... 2 : create a .megarc (don't forget the . (point) at start of the file) under the HOME folder of the user
... ... ... so if you connect you as root (or use cron job, etc.) ... it's under /root/ ; if you use admin it's /home/admin/
... ... ... even if you know what you do ... use a specific Asustor user (need shadow-su package from Entware-ng APKG) so it's /home/user/
YOU CAN HAVE different account per user
... ... 3 : create like 2 a .megarc ... put it in any place and use the "--config file" argument with each command (so it's hide the account in survey tools)
IN ALL CASE be sure that .megarc is r (read) only for the user to have security (password is in clear text)
Code: Select all
root@AS5002TaPhil:/volume1/.@root # ll .megarc
-r-------- 1 root root 59 May 21 18:45 .megarc
root@AS5002TaPhil:/volume1/.@root #
megaget / megaput ... download / upload files
megals / megarm / megamkdir ... file list with (-l) date of deposit, size, etc... / remove mega files / create remote folder
megareg ... register a NEW user in mega site
megadf ... global info on space used and free
.megarc example is provide in cloudtools folder ( /usr/local/AppCentral/cloudtools )
Code: Select all
root@AS5002TaPhil:/volume1/.@plugins/AppCentral/cloudtools # cat .megarc.sample
[Login]
Username = your.email@provider.ext
Password = your_password_unfortunately_in_clear_so_control_access_right_for_this_file
root@AS5002TaPhil:/volume1/.@plugins/AppCentral/cloudtools #
megafs ... BUT IRRELEVANT for normal use (at this time) ... only read the file tree and able to remove files ... NO read NO write
... so this it's clearly reserved for specific usage
AS any Fuse network mount ... you can access the mount only using locals tools NOR by default using php, or java in web tools or Samba, etc. ... (due to the fact that folder appear as null (siize 0) files)
Philippe.