最新消息:阿啰哈,本人90后,目前单身,欢迎妹子们来撩!.(。→‿←。)

Xubuntu里安装Mega.nz云网盘命令行工具

Open-source command line tools and C library (libmega) for accessing Mega.co.nz/Mega.nz cloud storage.(这是Mega.nz云网盘的一种纯命令行客户端工具)
* 还可以下载别人共享出来的“Directory Link”(Mega.nz官方的客户端只能下载单独的文件,无法下载共享出来的Directory Link)

https://github.com/megous/megatools
注:程序的软件包要在 https://megatools.megous.com/ 下载,不要在github上点那个“Download ZIP”

在Xubuntu里通过源码编译安装:

sudo apt-get update
sudo apt-get install build-essential libglib2.0-dev libssl-dev libcurl4-openssl-dev libgirepository1.0-dev
wget https://megatools.megous.com/builds/megatools-1.9.97.tar.gz
tar -zxf megatools-1.9.97.tar.gz
cd megatools-1.9.97
./configure --prefix=/opt/megatools/
make && sudo make install
echo 'MANDATORY_MANPATH /opt/megatools/share/man' | sudo tee -a /etc/manpath.config
echo 'export PATH="/opt/megatools/bin:$PATH"' | sudo tee -a ~/.bashrc
export PATH="/opt/megatools/bin:$PATH"

下载Directory Link的示例:
megadl 'https://mega.nz/#F!24IiwLbZ!LHilvcZhh-XEni7txxxxxx'

视频教程:https://www.youtube.com/watch?v=LWfFMysaspQ
Tools
=====
  megareg      Register and verify a new mega account
  megadf       Show your cloud storage space usage/quota
  megals       List all remote files
  megamkdir    Create remote directory
  megarm       Remove remote file or directory
  megaput      Upload individual files
  megaget      Download individual files
  megadl       Download file from a "public" Mega link
               (doesn't require login)
  megastream   Streaming download of a file
               (can be used to preview videos or music)
  megacopy     Upload or download a directory tree
  megafs       Mount remote filesystem locally.

All of these tools do:
- Local caching of remote session/filesystem information
  for faster execution. Cache is encrypted with your password
  key.
- Support loading login credentials from a configuration file

Usage
=====
See man pages for how to use individual tools and how to configure them:
  man megatools

转载请注明:林志斌 » Xubuntu里安装Mega.nz云网盘命令行工具

发表评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址