Howto: Country Flags In Peers Tab (GeoIP Database Settings)

General support for problems installing or using Deluge
dondraper
New User
New User
Posts: 5
Joined: Wed Nov 02, 2016 4:43 pm

Re: Howto: Country Flags In Peers Tab (GeoIP Database Settings)

Post by dondraper »

No way to make it work then I gather?
Shryp
Moderator
Moderator
Posts: 521
Joined: Mon Apr 20, 2015 10:20 pm

Re: Howto: Country Flags In Peers Tab (GeoIP Database Settings)

Post by Shryp »

Here is a link to download a zipped copy:
http://shryp.ashendust.com/deluge/GeoIP.dat.zip
Synergist
New User
New User
Posts: 1
Joined: Mon Nov 04, 2019 1:30 am

Re: Howto: Country Flags In Peers Tab (GeoIP Database Settings)

Post by Synergist »

For those looking for the latest GeoIP.dat (from GeoLite2's mmdb format), these people have helpfully done all the work already.

https://stackoverflow.com/a/54700384/253139 has all the background info. For the .dat file on its own head to https://www.miyuru.lk/geoiplegacy - try the combination IPv4/IPv6 'Country' file (maps IP blocks to countries). I'd grab the IPv4 file if that doesn't work properly however I just tried the combo file and it appears to be happy with that. I'm running the official Deluge package on a Synology, the updated file appeared to start working without needing to reload the daemon or restart the service.

I dropped the extracted maxmind.dat file into a share on my volume1 then amended the path accordingly in Preferences -> Other, it appears to be working fine. There's been quite a lot of IP block changes since GeoLite v1 was last updated, worth updating if you care about accuracy.
hi mum!
redeyed
New User
New User
Posts: 2
Joined: Fri Dec 03, 2021 2:10 am

Re: Howto: Country Flags In Peers Tab (GeoIP Database Settings)

Post by redeyed »

Hello,

For ubuntu
I managed this in the following way:
(I used deluge from python package manager)

Code: Select all

# install /usr/share/GeoIP/GeoIP.dat and geoIP headers
sudo apt install geoip-database libgeoip-dev

# use pipx to isolated deluge from rest of the system, but you can use just pip
py_ver=`python -c "from sys import version_info as vi; print(f'{vi[0]}.{vi[1]}')"`
sudo apt install python${py_ver}-venv

pip install pipx
pipx install deluge

# install libtorrent and GeoIP python packages to deluge virtual env
pipx inject deluge libtorrent GeoIP

Post Reply