• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

contrib/bash-completion/H15-Apr-2020-196184

docs/H03-May-2022-3,3273,022

lib/H15-Apr-2020-12,9579,918

tools/H15-Apr-2020-1,5401,065

HACKINGH A D15-Apr-2020675 2214

INSTALLH A D15-Apr-202015.4 KiB371289

LICENSEH A D15-Apr-202018.4 KiB357294

Makefile.amH A D15-Apr-20202.2 KiB10368

Makefile.inH A D03-May-202241.9 KiB1,2391,100

NEWSH A D15-Apr-202013.9 KiB410298

READMEH A D15-Apr-20208.1 KiB270174

TODOH A D15-Apr-2020326 117

aclocal.m4H A D15-Apr-202055 KiB1,5181,368

compileH A D15-Apr-20207.2 KiB349259

config.h.inH A D15-Apr-2020701 2919

configureH A D15-Apr-2020176.7 KiB6,0955,033

configure.acH A D15-Apr-20202 KiB8263

depcompH A D15-Apr-202023 KiB792502

install-shH A D15-Apr-202015.3 KiB530346

missingH A D15-Apr-20206.7 KiB216143

README

1megatools - command line client application for Mega
2====================================================
3
4Megatools is a collection of programs for accessing Mega service from
5a command line of your desktop or server.
6
7Megatools allow you to copy individual files as well as entire directory
8trees to and from the cloud. You can also perform streaming downloads for
9example to preview videos and audio files, without needing to download
10the entire file.
11
12Megatools are robust and optimized for fast operation - as fast as Mega
13servers allow. Memory requirements and CPU utilization are kept at minimum.
14
15You can register account using a 'megareg' tool, with the benefit of having
16true control of your encryption keys.
17
18Mega website can be found at https://mega.nz.
19
20Megatools can be downloaded at https://megatools.megous.com
21
22
23Tools
24=====
25
26  megareg      Register and verify a new mega account
27  megadf       Show your cloud storage space usage/quota
28  megals       List all remote files
29  megamkdir    Create remote directory
30  megarm       Remove remote file or directory
31  megaput      Upload individual files
32  megaget      Download individual files
33  megadl       Download file from a "public" Mega link
34               (doesn't require login)
35  megacopy     Upload or download a directory tree
36
37
38All of these tools do:
39
40- Local caching of remote session/filesystem information
41  for faster execution. Cache is encrypted with your password
42  key.
43- Support loading login credentials from a configuration file
44
45
46Usage
47=====
48
49See man pages for how to use individual tools and how to configure them:
50
51  man megatools
52
53Man pages are also available online at:
54
55  https://megatools.megous.com/man/megatools.html
56
57
58Installation on Windows
59=======================
60
61Megatools is available on Windows via Chocolatey thanks to ERap320. See:
62
63  https://chocolatey.org/packages/megatools/
64
65You can contact the package maintainer here:
66
67  https://github.com/megous/megatools/issues/347
68
69
70Windows Quirks
71==============
72
73On Windows, if you see weird characters in your megals output, you'll need
74to set correct CHARSET environment variable. For example on Czech Windows
75this would mean executing this command in cmd before using the tools:
76
77  set CHARSET=CP852
78
79This is just a cosmetic issue. Internally, megatools always work with UTF-8
80file names, and even if the tool's terminal output is corrupted, files names
81of downloaded/uploaded files will be correct.
82
83
84Installation on Mac OS X (Mountain Lion)
85========================================
86
87Thanks to Carl Moden, megatools is available in Homebrew (http://brew.sh/).
88
89You can therefore install megatools with:
90
91  brew install megatools
92
93
94Installation on your favorite GNU/Linux distribution
95====================================================
96
97Megatools may already be pre-packaged in the package repository
98of your distribution. It is already available at least in:
99
100- Debian - https://packages.debian.org/stretch/megatools
101- Ubuntu - https://launchpad.net/ubuntu/+source/megatools
102- Fedora - https://admin.fedoraproject.org/pkgdb/package/rpms/megatools/
103- Arch Linux (AUR) - https://aur.archlinux.org/packages/megatools/
104- Gentoo - https://packages.gentoo.org/packages/net-misc/megatools
105
106Be sure to check your distribution's package repository first.
107
108
109Installation on FreeBSD
110=======================
111
112Megatools is available in ports thanks to Maxim V. Kostikov:
113
114  http://www.freshports.org/net/megatools/
115
116
117Building megatools from source code
118===================================
119
120The official source code tarball is available at:
121
122   http://megatools.megous.com/builds/
123
124You will need to install some dependnencies before you can build megatools from
125source code. Package names of these dependencies differ depending on your GNU/Linux
126distribution.
127
128You should also check that the code was released by me, by verifying PGP signatures
129provided alongside the code.
130
131As these tarballs are released infrequently, you can also build code from the master
132branch of megatools git repository. You can get the code using git:
133
134  git clone git://megous.com/megatools
135
136NOTE: Please don't report build issues against code that you downloaded from github.
137These reports will be closed without explanation, with reference to this README
138file. It is not expected to work on all distributions. Use the official tarball.
139
140The necessary dependencies are: glib2, libcurl, openssl
141
142For building from git repository, you'll also need: asciidoc (or use --disable-docs)
143
144If you don't have those already, some basic development packages are also necessary.
145Namely: gcc, make, pkg-config (pkgconf), and when building from git: autoconf,
146automake.
147
148On Debian, Ubuntu:
149
150  apt-get -y install build-essential libglib2.0-dev libssl-dev \
151    libcurl4-openssl-dev
152
153On Fedora:
154
155  yum -y install gcc make glib2-devel libcurl-devel openssl-devel
156
157On OpenSUSE:
158
159  zypper -n install gcc make glib2-devel libcurl-devel openssl-devel
160
161On Arch Linux:
162
163  pacman -Sy --noconfirm --needed pkgconf gcc make glib2 curl
164
165On Alpine Linux:
166
167  apk add --update build-base libcurl curl-dev asciidoc openssl-dev glib-dev \
168    glib libtool automake autoconf
169
170
171You can build megatools into your HOME directory, so that they'll not pollute
172your /usr or /usr/local by using --prefix=$HOME/.local option to configure.
173
174If you're building from git repository, use ./autogen.sh instead of ./configure
175and vice versa.
176
177Example build steps:
178
179  git clone git://megous.com/megatools
180  cd megatools
181  ./autogen.sh --prefix=$HOME/.local --disable-docs
182  make -j4
183  make install
184
185Now you can run megatools from ~/.local/bin.
186
187  export PATH="$HOME/.local/bin:$PATH"
188  megals
189
190
191Third party tools/scripts
192=========================
193
194Megatools are meant as a low-level tools that can be used as a base to create
195more complicated tools for working with mega.nz. Other people have created
196a third party scripts on top of megatools. If you're one of them and want to
197have your project listed here, let me know.
198
199Some third party tools can be found at:
200
201  https://amourspirit.github.io/mega_scripts/
202
203
204Author
205======
206
207Megatools were written by Ondřej Jirman <megous@megous.com>, 2014-2018
208
209My PGP key can be found at: https://megous.com/pgp
210  (Fingerprint is: 9AB138B20691621CD4CF92026E6426C677CFEFF1)
211
212Official website is: https://megatools.megous.com
213
214If you'd like to donate, you can use:
215
216PayPal: ahyechouchahquaachai@xff.cz
217Patreon: https://www.patreon.com/megous
218
219
220Contributors
221============
222
223- Chris Tarazi <tarazichris@gmail.com>
224- Tom Maneiro <tomman@tsdx.net.ve>
225- bAndie91 <bandie9100@gmail.com>
226- Alberto Garcia <berto@igalia.com>
227- David Guillen Fandos <david@davidgf.net>
228- Erik Nordstrøm <erik@nordstroem.no>
229- Johnathan Jenkins <john@nixheads.co.uk>
230- Kagami Hiiragi <kagami@genshiken.org>
231- Matthew Schultz <mattsch@gmail.com>
232- Michael Ledin <mledin89@gmail.com>
233- Michael Ripley <zkxs00@gmail.com>
234- Palmer Dabbelt <palmer@dabbelt.com>
235- RealDolos <dolos@cock.li>
236- Viktor (Icon) VAD <vad.viktor@gmail.com>
237- cyrozap <cyrozap@gmail.com>
238- nyuszika7h <nyuszika7h@gmail.com>
239- protomouse <root@protomou.se>
240- strupo <sheeit@users.noreply.github.com>
241- wdlkmpx <wdlkmpx@gmail.com>
242- dal1a <waveh@trimsj.com>
243
244
245Support and bug reports
246=======================
247
248If you think you've found bug in megatools, send a report including enough
249information for recreating the issue to: megous@megous.com
250
251IMPORTANT: I use personal e-mail server for my e-mail communication. I respond
252to most e-mails, so if you are not getting a response within a few days, and
253you're a user of a more aggressive e-mail provider (Outlook, iCloud, ...) it may
254be because your provider rejected my e-mail as SPAM and did not deliver it at
255all (not even to your SPAM folder), despite it being response to your e-mail and
256my server using industry's best practices. You can either contact your e-mail
257provider so that they fix their issue with rejecting legitimate responses to
258your mail, or use different e-mail provider or contact channel to contact me.
259(github issues)
260
261
262License
263=======
264
265Megatools are licensed under GPLv2 with OpenSSL exemption, see LICENSE
266file for details.
267
268This product includes software developed by the OpenSSL Project for use
269in the OpenSSL Toolkit. (http://www.openssl.org/)
270