Page 2 of 2
Re: Howto: Country Flags In Peers Tab (GeoIP Database Settings)
Posted: Tue Mar 05, 2019 10:48 pm
by dondraper
No way to make it work then I gather?
Re: Howto: Country Flags In Peers Tab (GeoIP Database Settings)
Posted: Tue Mar 05, 2019 11:56 pm
by Shryp
Re: Howto: Country Flags In Peers Tab (GeoIP Database Settings)
Posted: Mon Nov 04, 2019 1:51 am
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.
Re: Howto: Country Flags In Peers Tab (GeoIP Database Settings)
Posted: Sun May 22, 2022 3:12 pm
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