Archives For November 30, 1999

When clicking a magnet link in Chrome browser, it pops-up with “Open xdg-open” option allows to launch the default app to start the downloading.

Unlike Firefox, Google Chrome does not offer an option to choose which app to handle the link. Instead, it launches the default app directly. For those want to change this default app to handle magnet links, here’s how to do the trick in Ubuntu.

Click “Open xdg-open” to open link via default app

Step 1: Tell the default app for magnet links:

Firstly, press Ctrl+Alt+T on keyboard to open a terminal window. When it opens, run the command below will tell the default app for magnet links:

xdg-mime query default x-scheme-handler/magnet

Here xdg-mime is the standard wrapper. User may also run this command instead, which will also output the registered applications:

gio mime x-scheme-handler/magnet

Tell the default app for magnet

Step 2: Set/Change the default app for magnet links:

As the previous steps shows, the both command also support for changing the default app. Say set “QBittorrent” as default app for magnet link, use command:

xdg-mime default org.qbittorrent.qBittorrent.desktop x-scheme-handler/magnet

Or use command:

gio mime x-scheme-handler/magnet org.qbittorrent.qBittorrent.desktop

For any other app, replace org.qbittorrent.qBittorrent.desktop in the previous commands via the .desktop file. You may even set an un-registered app as default, and gio command will register it automatically.

In addition, in case you don’t know the filename of the .desktop file for your app, try running following commands one by one to find it out:

  • First, open terminal and run command to install mlocate (or plocate for 22.04 & higher):
    sudo apt install mlocate plocate
  • Then, update the database:
    sudo updatedb
  • Finally, search the .desktop file for your torrent app:
    locate "*ransmission*desktop"

    In command, replace ransmission with the keyboard for yours. Its case sensitive! I skipped the first letter because which one (‘T’ or ‘t’) is in use for the file-name.

Most torrent clients today have ability to detect clipboard for magnet links. However, after copied an URL link, user has to manually open the downloading app and then click ‘Open URL’ (or ‘Add Torrent Link’) option to let it paste the link automatically.

Instead of using web browser pop-up to choose app to open an URL, KDE desktop has a built-in feature ‘Klipper Actions‘ that detects clipboard contents and automatically pops-up a menu allows to open link with desired app.

Picture 1: Click the pop-up option will automatically launch the app and open the link from clipboard

So just copy a magnet link. It opens the previous context menu (see the picture above) automatically, allows to click the menu option to launch your desired app and open the URL.

Setup the Klipper Actions for Magnet link in KDE:

1.) Firstly, find out the ‘Clipboard’ indicator in system tray on panel (or click the ‘triangle‘ icon). Then right-click on the icon and choose ‘Configure Clipboard‘.

Open Klipper settings

2.) When the settings dialog opens, go to ‘Actions‘ in left pane and click on ‘Add Actions‘ button.

Add a Klipper action

3.) In next dialog, do:

  • input regular expression ^magnet:.*. It means any content started with ‘magnet:‘ (without quotes). See more about regular extension.
  • Add description (optional).
  • Click ‘Add Command’ and use qbittorrent %s or ktorrent %s. Use any torrent client as you prefer.
  • Type description for command (will display as text in pop-up menu).

4.) After adding an action, the settings dialog will look like the screenshot below. Here I added two actions to handle magnet link and url ends with torrent with qBittorrent client.

Actions for magnet links and url ends with .torrent

After clicking Apply (OK), copy a magnet link and the menu should pop-up automatically, allows to single click launching qBittorrent and open the download.

And, there are keyboard shortcuts: Ctrl+Alt+X to enable/disable Klipper actions, and Ctrl+Alt+R to trigger the menu (Picture 1) manually.

After more than half a year of development, the qBitTorrent app released version 4.4.0 with many new features and various bug-fixes.

qBitTorrent 4.4.0 added Qt6 support. It offers better HiDPI compatibility for Windows 10+ and Linux using AppImage package. Though, it has known issue about text display on the progress bar. The Qt5 build is still the primary packages, though the next major release will probably drop Qt5 support.

The new release also supports BitTorrent v2 protocol and libtorrent 2.0.x, that use SHA-256 to provide a safer cryptographic hash function.

There are also some other new features, including announce to all trackers if IP changed, “Checking” filter in side pane, “Forced metadata downloading” state, “Skip hash check” option, double-click to show torrent options, temp folder per torrent/category, folder based UI themes, and more.

Other changes in qBitTorrent 4.4.0 include:

  • Remember last viewed page in options.
  • Add ‘Notification timeout’ option.
  • Add context menu to toggle content tab columns.
  • Add windows-clang support and update python installer URL for Windows.
  • Prolong wait time for shutdown for qbittorrent-nox for Linux.
  • Install vector program icon for Linux.
  • Add detection for OpenBSD, Haiku in configure script
  • Update Mac icons for Big Sur
  • Stick Unread row to top in RSS feed list
  • Setting to store/load fastresume/torrent files in an SQLite database
  • More tool-tips, web UI updates, and bug-fixes.

How to Install qBitTorrent 4.4.0:

For Windows, MacOS, Linux AppImage, and source tarball, go to the official download page:

For Linux, the AppImage package is the only way to get the Qt6 build. Just grab it from the link above, make executable in file “Properties” dialog under ‘Permissions’ tab. Finally, click run the package to launch the torrent client.

qBitTorrent is also available as native .deb package for Ubuntu based system via its official Ubuntu PPA. The package will be available in next few days. However, Ubuntu 20.04 is no longer supported because its system Qt5 library does not meet the minimum requirement.

It’s also available to install as universal Flatpak package. Though it takes more disk space due to run-time libraries, the Flatpak was built with GUI lock support.

The Deluge BitTorrent client got an update after more than 2 years of development by releasing v2.0.4 and then v2.0.5 with a quick fix.

Deluge is a lightweight, free and open-source, and cross-platform BitTorrent client written in Python. It uses libtorrent library and features full encryption, GTK, Web and console UI. And, it has a daemon package to run as a system service, allowing user to control remotely over the web.

The latest Deluge 2.0.5 was released a few days ago, introduced automatic detection of clipboard for the GTK UI. When you copied torrent URL or magnet link, the app will automatically open the link on focus, allowing to start downloading with a single mouse click.

Automatic detect URL from clipboard and open the dialog to start downloading

It also added menu option “View -> Tabs -> Position” to change the tabs (e.g., Status, Details, Options, Tracker) to top, left, right, or left side of window bottom.

Other changes in Deluge 2.0.5 (and 2.0.4) include:

  • Hide pygame community banner in console.
  • Add menu option to copy magnet URI for Web UI.
  • Add country flag alt/title for accessibility for Web UI.
  • Add workaround libtorrent 2.0 file_progress error
  • Fix Python 3.8 compatibility
  • Various bug-fixes.

How to Install Deluge 2.0.5 in Ubuntu via PPA:

The app provides source tarball, Windows, macOS, and Linux packages available to download at its website.

For Ubuntu / Linux Mint based systems, an official Ubuntu PPA is available with supports for Ubuntu 16.04, Ubuntu 18.04, Ubuntu 20.04, Ubuntu 21.04, Ubuntu 21.10, and next Ubuntu 22.04.

1.) Add the Deluge PPA

Either press Ctrl+Alt+T on keyboard or search for and open terminal from start menu. When it opens, run command to add the PPA:

sudo add-apt-repository ppa:deluge-team/stable

Type user password when it asks (no visual feedback) and hit Enter to continue.

2.) Install or upgrade Deluge BitTorrent Client:

If you’ve an old version installed on your system, use ‘Software Updater’ or Update Manager to upgrade the package to the latest:

Or, run command in terminal to check updates and install the client:

sudo apt update && sudo apt install deluge

The command will install the app with GTK user interface. For daemon (run as service), web UI, or console UI, install deluged, deluge-web, deluge-console package instead.

Uninstall / Downgrade Deluge:

For any reason, you may purge the Ubuntu PPA which also downgrade installed packages to the stock version in Ubuntu universe repository:

sudo apt install ppa-purge && sudo ppa-purge ppa:deluge-team/stable

Or remote the BitTorrent client by running command:

sudo apt remove --auto-remove deluge*

Without purging the PPA, you may manage it via “Software & Updates” tool under “Other Software” tab.

qBittorrent, free and open-source Qt5 based Bittorrent client, released version 4.3.5 a few days ago.

qBittorrent 4.3.5 is the last release in the 4.3.x series. And it’s going to drop support for Ubuntu 20.04 in the next release since it has an outdated Qt5 libraries.

Users who prefer qBittorrent can still get updates for Ubuntu 20.04 through the Flatpak package, since it’s a containerised package format bundle with most run-time libraries.

Changes in qBittorrent 4.3.5 include:

  • Move cursor to the end when autofilling URL/hash in “Download from URLs” dialog
  • Sort invalid QDateTime values after valid values
  • Fix tabChangesFocus attribute in “Edit trackers” dialog
  • Update DynDNS register url
  • Handle “not enough disk space” error more graciously
  • Correctly draw progress background with stylesheet
  • WEBUI: Fix magnet url from the search facility
  • WEBUI: Revise folder monitoring functions
  • WEBUI: Fix magnet url from the browser
  • WEBUI: Allow to specify file indexes in torrents/files API
  • WINDOWS: NSIS: Allow more strings to translated
  • WINDOWS: NSIS: Update Italian, German, Estonian, Russian, PortugueseBR translations.
  • LINUX: Fix D-Bus Notification desktop-entry field
  • MACOS: Don’t use executable name as CFBundleName value
  • Lower Qt requirement to 5.11
  • Clarify that the license is GPLv2+

How to Install qBittorrent 4.3.5 via PPA:

The official qBittorrent PPA has built the new release packages for Ubuntu 20.04, Ubuntu 20.10, and Ubuntu 21.04.

1. To add the PPA, open terminal by either pressing Ctrl+Alt+T on keyboard or searching for “Terminal” from application menu. When it opens, run command:

sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable

Type user password (no asterisk feedback) when it prompts and hit Enter to continue.

2. If an old version was installed on your system, upgrade it via Software Updater,

or run following commands to install /upgrade qBittorrent in terminal:

sudo apt update

sudo apt install qbittorrent

Uninstall:

To remove qBittorrent PPA, either go to Software & Updates -> Other Software, or run command in terminal:

sudo add-apt-repository --remove ppa:qbittorrent-team/qbittorrent-stable

To remove the bittorrent client, either use your system package manager or run command:

sudo apt-get remove --autoremove qbittorrent

The first update for qBittorrent 4.3 series was released today with some new features, bug-fixes, and web UI changes.

Changes in qBittorrent 4.3.1 include:

  • Allow progress bar styling from custom themes.
  • Allow adding torrents using “Paste” key sequence.
  • Add Latgalian translation.
  • Avoid settings being reset via WebAPI.
  • WEBUI: Fix the issue that IPv6 address can’t be banned.
  • Update dutch.nsi for Windows.
  • Update .desktop shortcut file translations for Linux.
  • And various bug-fixes.

How to Install qBittorrent via PPA:

The official qBittorrent PPA has built the new release packages for Ubuntu 18.04, Ubuntu 20.04, and derivatives.

1. To add the PPA, open terminal by either pressing Ctrl+Alt+T on keyboard or searching for “Terminal” from application menu. When it opens, run command:

sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable

Type user password (no asterisk feedback) when it prompts and hit Enter to continue.

2. If an old version was installed on your system, upgrade it via Software Updater,

or run following commands to install /upgrade qBittorrent in terminal:

sudo apt update

sudo apt install qbittorrent

Uninstall:

To remove qBittorrent PPA, either go to Software & Updates -> Other Software, or run command in terminal:

sudo add-apt-repository --remove ppa:qbittorrent-team/qbittorrent-stable

To remove the bittorrent client, either use your system package manager or run command:

sudo apt-get remove --autoremove qbittorrent

qBittorrent reached the new major 4.1.0 release a few days ago. Here’s how to install it in Ubuntu 18.04, Ubuntu 17.10, Ubuntu 16.04.

qBittorrent 4.1.0 release highlights:

  • Add “Coalesce reads & writes” checkbox in advanced options
  • Smart Filter for RSS
  • Possibility to configure at which speed a torrent is considered slow.
  • When creating a torrent you can choose to preserve the file order
  • A new, redesigned and refactored WebAPI
  • Switch built-in Web UI html to HTML5
  • Allow to disable Stacktrace support
  • Various other Web UI improvements.
  • Various code optimizations and bug-fixes. Read NEWS page for details.

How to Install qBittorrent 4.1 in Ubuntu:

The official qBittorrent PPA contains the latest packages for Ubuntu 16.04, Ubuntu 17.10, Ubuntu 18.04, and derivatives.

1. To add the PPA, open terminal either via Ctrl+Alt+T or searching “Terminal” from app launcher. When it opens, run:

sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable

Type in your password (no visual feedback while typing due to security reason) when it prompts and hit Enter to continue.

2. To upgrade from a previous release, launch Software Updater and you’ll see qBittorrent available for upgrade after checking for updates.

Or run commands below to install /upgrade it from terminal:

sudo apt update && sudo apt install qbittorrent

3. (Optional) To uninstall the 4.1 release and revert to the stock version of qBittorrent in Ubuntu repository, do:

sudo apt install ppa-purge && sudo ppa-purge ppa:qbittorrent-team/qbittorrent-stable

Deluge 1.3.12 Released, How to Upgrade in Ubuntu

Last updated: September 16, 2015

A new release of Deluge BitTorrent Client was release yesterday with a collection of fixes to keep the 1.3 stable.

Deluge 1.3.12 is the first stable release in 2015. It brings following fixes and improvements:

  • GTK UI: Add Torrent dialog does not appear
  • Include fix for Twisted 15.0 URI class rename
  • Enable lt extension bindings again for versions >=0.16.7 (this disables Tracker Exchange by default)
  • Backport atomic fastresume and state file saving fixes as another attempt to prevent data loss on unclean exits
  • WebUI: Fixed i18n issue in Connection Manager which left users unable to connect
  • WebUI: Increase cookie lifespan for display settings
  • Console: Fixed ‘set and then get’ in config command
  • Scheduler Plugin: Show current speed limit in statusbar
  • Win32 packaging fixes.

How to Install / Upgrade Deluge in Ubuntu:

The new release has been made into Deluge’s official PPA, available for Ubuntu 15.10, Ubuntu 15.04, Ubuntu 14.04, Ubuntu 12.04 and their derivatives (e.g., Linux Mint 13/17, Elementary OS Freya).

1. To add the PPA.

Open terminal from the Dash, App Launcher, or via Ctrl+Alt+T shortcut keys. When it opens, run command:

sudo add-apt-repository ppa:deluge-team/ppa

2. After that, run commands to update system cache and install Deluge (GTK UI):

sudo apt-get update

sudo apt-get install deluge

You may install the package deluge-web or deluge-console if you want the Web UI or the console UI.

For those who have a previous release installed, Deluge can be upgraded directly via Software Updater.

The free and open source BitTorrent client FrostWire released v5.6.8 for Windows, Mac OS, and Linux. This release mainly fixes issues related to YouTube search and greatly improves the translation to Spanish.

According the official blog post, a final fix is coming to bring back all the search results to UK users, the developers are working as fast and hard as they can.

Download FrostWire for: Ubuntu/Linux Mint/Debian, Windows, Mac OS X, Tarball.

CTorrent is a lightweight command-line bittorrent client which is written in the C++. 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. Other main features are:

  • Support for large files (>2GB) and large torrents (>255 files).
  • Strategic selection of pieces to request for download.
  • Continuous queueing of download requests, tuned based on latency and throughput for each peer.
  • Improved download performance, including parallel requests in initial and endgame modes.
  • Improved bandwidth regulation.
  • Improved compatibility with other peers.
  • Performance optimization and bug fixes.
  • An interface for monitoring and managing multiple clients.
  • Dynamic cache allocation and management, including prefetch.

Install cTorrent:

You don’t have to do something special to install cTorrent, just search for and install the package from Ubuntu Software Center.

To run ctorrent:

ctorrent -s new_filename -e 12 -C 32 -p 6881 example.torrent

For more options, run:

ctorrent