From MEPIS Documentation Wiki

Revision as of 23:40, 7 May 2011 by Chatan (Talk | contribs)
Jump to: navigation, search

KTorrent is a client for BitTorrent protocol. KTorrent uses .torrent files to initiate a download and to connect downloaders with the most efficient uploaders currently available. It also does error checking and correction, so downloads do not need to be md5sum checked for accuracy..



  • latest version at KTorrent.org: 4.0~beta1-1 (beta)
  • latest version at Mepis8-Repositories: 3.1.1
  • latest version at Mepis7-Repositories: 2.0.3
  • latest version at Mepis7 community repo: 2.2.7

Installation / Update

Latest version available in the repositories can be installed using Synaptic or apt-get.

To get the country flags icons to show on the Peers tab, install geoip-database using Synaptic and restart ktorrent.

Settings: Network/TCP/UDP

  • Port: 500001/2
  • UDP Tracker Port: 4444
  • UDP DHT Port: 44453
  • Max download rate: up to you, but don't max out your available bandwidth. It usually is counter-productive.
  • Max upload rate: set to 8o% of your max. upload rate of your internet connection is usually best.
  • Maximum connections per torrent: 4
  • Global connection limit: 5
  • Enable protocol encryption
  • Allow unencrypted connections

1 Port 6881 is the default torrent port, but some ISP's block this port - more informations here.
2 You can choose a port number starting from 49152 up to 65535.
3 A different port number is required also for UDP traffic.
4 Depends on your router and bandwith. Using a Fritz!Box - 60-80 connections are recommended. For others use the Settings Calculator
5 Depends on your router and bandwith. Using a Fritz!Box - 100-150 connections are recommended. For others use the Settings Calculator

Settings: Filesystem

In addition to configuring the internet settings, you'll need to configure directory settings so KTorrent will work optimally with your filesystem. Some guiding principles:

  1. Don't use KTorrent default directories. You don't want a bunch of stuff being dumped into your /home/user directory. It will affect overall system performance.
  2. A separate partition for filesharing is highly recommended. On that partition create the directories KTorrent can use for storing temporary files and finished downloads.
  3. Saving .torrent files to a "scan" directory is recommended. To enable this feature in KTorrent, the Scan Folder Plugin must first be loaded.
  4. Creating a symbolic link in your /home/user directory to your filesharing partition will facilitate easy access and quick saving of downloaded.torrent files into your scan directory.
  5. After creating symbolic links, set up the relevant directory locations in Settings > Configure KTorrent > General. After Loading the Scan Folder Plugin you will be able to also set the Scan directory or directories in Settings > Configure KTorrent > ScanFolder.

If you are unsure about how to create symbolic links in your /home/user directory to other data partitions, see the tutorial in the Links Section below: "Safe and Easy Data Storage Outside the /home "

Downloading a file

  1. You need to download a .torrent file, usually from a tracker site (e.g., linuxtracker.org)
  2. Open the file by clicking on it.
  3. Make sure that in your firewall you have the ports used by KTorrent open for connections.

Usually a torrent download starts very slow and accelerates once more people join the torrent swarm and start to share larger portions of the file between them. This is different from FTP downloads, where more people results in slower download speeds for everyone. This is because, unlike the one-way server-to-client model of the FTP download, the Bit-Torrent protocol allows all clients connected to a central tracker to download and upload numbered segments of the file (called "chunks") simultaneously between themselves.

Also, unlike FTP, a bit-torrent client like KTorrent automatically error-checks the downloaded files, as each chunk completes. There is no need to do a separate md5sum after the download is completed.

Seeding a file

Seeding means uploading to other people the file that you finished downloading. As a common rule of thumb, torrent users should seed at least to a sharing ratio of 2.00 (meaning that they upload double the amount they downloaded). Seeding happens automatically once the file is downloaded. In any given torrent swarm (group of people all sharing the same torrent), the more seeders who remain on line, the more efficient the torrent becomes. Every leecher (person still downloading the file) will get faster total download speeds, as the uploading work is being shared by more sources. Similarly, each seeder will be needing to use less of her/his bandwidth. Everybody wins —if everybody plays nice!

Seeding a file which was already downloaded

  • Move your downloaded file into the folder where your completed ISO files are stored.
  • Download the .torrent file from LinuxTracker.org and put it in KTorrent's "scan" directory.
  • Open the bit torrent client (i.e. KTorrent) and add that .torrent file if it doesn't load automatically.
  • KTorrent will now check your ISO file based on the checksums in the .torrent file and if it is OK, it will start seeding. If it's not OK, KTorrent will download only the necessary chunks to "heal" the ISO. ( Way cool!)

Starting a Torrent


Personal tools
In other languages