I want to deploy it on my VPS server to download resources quickly.
This could save me a lot of time since some resources are in a foreign country,
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
The default BitTorrent client of Ubuntu Desktop, Transmission, has a command line interface (which is not installed by default, the package is
transmission-daemon). The daemon can be setup so that it may be interacted with through the terminal and through a web interface.
Transmission is a good bittorrent client because:
For more info on its features, see this page.
Multiple user-interfaces, supports access from most platforms:
Many Plugins and application extensions
A CLI downloader supporting HTTP, FTP, and Torrents.
To download a torrent:
You can also point it to a remote torrent file
http://some web site here.com/file.torrent so you don't need to download the torrent file first.
Also note you can disable file allocation with this flag:
Aria2c also supports parallel downloading on HTTP. Use the
-j flag to determine how many threads. For 3 concurrent downloads of a single HTTP file see the following example:
aria2c -j 3 website.com/file.rar
Azureus/Vuse also has a console mode. [disclaimer] I was one of the developers.
To use azureus in console mode, you will need to download a couple of additional libraries from http://svn.vuze.com/public/client/trunk/uis/lib/
If you place these in same the directory as the Vuze jar, you can launch the console ui by running:
java -jar Vuze-xxxx.jar --ui=console
Inside the CLI, type help to view the commands. A couple of useful commands are:
Here is example output from a 'show torrents' command
show torrents > ----- 1 [>] 025.6% Azureus18.104.22.168.jar (13.26 MB) ETA: 1m 41s Speed: 295.1 kB/s / 0 B/s Amount: 3.56 MB / 0 B Connections: 11(20) / 0(4) Total Speed (down/up): 296.6 kB/s / 2.2 kB/s Transferred Volume (down/up/discarded): 3.56 MB / 0 B / 0 B Total Connected Peers (seeds/peers): 11 / 0 > -----
Take a look at http://wiki.vuze.com/w/Console_UI for more information :-)
There is a similar question on stackoverflow.com.
The accepted answer there is CTorrent so I thought I should mention it here. The description of ctorrent from packages.debian.org is as follows:
This application is written in the C++ language and doesn't require any graphical component, such as an X server. Original ctorrent's upstream has stopped its development and now it's kept updated with new releases/bug fixes by a new developer. It's built as a console program and it can be even used remotely in a machine that provides outside ssh access.
there is also an enhanced version of ctorrent which can be found at http://sourceforge.net/projects/dtorrent/
Try utorrent linux alpha version. Its a headless server which can be controlled from your browser (web UI). http://www.utorrent.com/downloads/linux.
I use tget which is (in the author's words) "wget for torrents". It allows you do download using torrent files or magnet links. It is a node.js application.
npm install -g t-get
I know it's an old question, but nobody mentioned peerflix.
Most importantly, it supports streaming of video and audio content through VLC (just launch it with the flag
It was originally based off of
tget, a tool mentioned in this answer, but the project has since significantly diverted from it.
tget does not offer any configurability (e.g. searching popular torrent sites, customizing what port to use, downloading multiple torrents, etc) so
torrent-dl adds all of these features.
Example usage (with some of the extra options):
torrent-dl -i magnet:?xt=urn:btih:b26c81363ac1a236765385a702aec107a49581b5 --port 43022 --connections 250 --uploadslots 25
You can see all the options it offers on it's Github page linked at the top. It is a nodejs application, however you can download standalone binaries (MacOS and Windows binaries are also available) from the releases page on it's Github, meaning no nodejs or npm installation is required.
It can also be installed via
npm install -g torrent-dl
I am the author of this project.