fbpx

Desktop

How to install the latest Transmission on CentOS/RHEL 8

by ,


We have by far the largest RPM repository with NGINX module packages and VMODs for Varnish. If you want to install NGINX, Varnish, and lots of useful performance/security software with smooth yum upgrades for production use, this is the repository for you.
Active subscription is required.

How to install Transmission GUI on CentOS 8

sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf -y install transmission

Using a proxy for communication with trackers

In certain countries, popular trackers are banned on the ISP level. For example, Russia blocks rutracker.org, which is the largest tracker.
You can make use of http_proxy environment variable which is supported in most applications, including Transmission.

export http_proxy=socks5h://PROXYHOST:PROXYPORT

For this to be automatically applied only for Transmission, let’s create a “local” desktop shortcut to the app, where we specify the http_proxy variable.

For our example, we run an autossh tunnel to a remote server, which gives us a local SOCKS5 proxy at the port 8123.
The socks5h: specifies that DNS requests to tracker are also run through the proxy:

cp -p /usr/share/applications/transmission-gtk.desktop ~/.local/share/applications/transmission-gtk.desktop
sed -i -r 's@^Exec=@Exec=env http_proxy=socks5h://127.0.0.1:8123 @g' ~/.local/share/applications/transmission-gtk.desktop

What we did:

  • Created local copy of the shortcut (.desktop) file of Transmission
  • Customized it by ensuring the necessary http_proxy environment is set when it’s launched

Note that this does not proxy connections to seeds, only to the tracker.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: