This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Country not showing

Tags: None
(comma "," separated)
amp
Registered Member
Posts
5
Karma
0

Country not showing

Wed Nov 22, 2006 8:43 pm
Country designation and flag do not show anymore. They disapeared and I do not know why. Any suggestion would be appreciated.

Thank you
micha
Registered Member
Posts
12
Karma
0

Thu Nov 23, 2006 12:02 am
Which version?
amp
Registered Member
Posts
5
Karma
0

Thu Nov 23, 2006 1:29 am
KTorrent Version 2.0.3
KDE 3.5.5
micha
Registered Member
Posts
12
Karma
0

Thu Nov 23, 2006 1:51 am
Hm, seen this once but did not go for an solution. Maybe you could check if the file 'geoip.dat' is in place -> check your ktorrent/geoip folder - where it is depends on your distribution, mine is in /usr/share/apps/ktorrent
amp
Registered Member
Posts
5
Karma
0

Thu Nov 23, 2006 2:22 am
The file is at: /usr/share/GeoIP/

Thanks a lot by the way.
imported4-Ivan
Registered Member
Posts
819
Karma
0

Thu Nov 23, 2006 2:36 am
Are you sure that /usr/share is your KTorrent directory? I don't think so. What distro are you using?

Correct directory should be $KDEDIR/apps/ktorrent/geoip (no capital letters).
amp
Registered Member
Posts
5
Karma
0

Thu Nov 23, 2006 3:02 am
Kubuntu 6.10
amp
Registered Member
Posts
5
Karma
0

Thu Nov 23, 2006 3:29 am
All is ok now. I downloaded the Beta version that did not istall but it had a geoip.dat file, my file was GeoIp.dat, I first copied the GeoIp.dat file to the directory that did not work. So I copied the geoip.dat and that worked. Thank you for your help. (Capitals might be important)
jdong
Registered Member
Posts
358
Karma
0

Thu Nov 23, 2006 5:03 pm
This is not a bug... The included GeoIP database is licensed incompatibly with the Debian Free Software Guidelines, which in turn makes the entire KTorrent package unsuitable for main inclusion. Rather than moving KTorrent into the restricted repository, we opted to instead strip off the GeoIP database in the Ubuntu packages.

The package is still compiled with GeoIP support, but the database itself is not being distributed. So, you can always go in and put your own GeoIP database in.
imported4-Colin
Registered Member
Posts
33
Karma
0

Fri Dec 01, 2006 8:49 pm
I was wondering about this as well until I saw this thread. On my FC6 box, ktorrent displayed the countries and flags of peers whereas under Ubuntu this wasn't the case. However, simply copying the geoip.dat file and the .pngs from /usr/share/apps/ktorrent/geoip under Fedora to Ubuntu solved that.
imported4-bob p
Registered Member
Posts
12
Karma
0

Mon Jan 08, 2007 6:12 pm
jdong wrote:This is not a bug... The included GeoIP database is licensed incompatibly with the Debian Free Software Guidelines, which in turn makes the entire KTorrent package unsuitable for main inclusion. Rather than moving KTorrent into the restricted repository, we opted to instead strip off the GeoIP database in the Ubuntu packages.

The package is still compiled with GeoIP support, but the database itself is not being distributed. So, you can always go in and put your own GeoIP database in.

I have built Geo IP support into a Gentoo system (so I know a little about how this works) but am a new Kubuntu user and I am truly a fish out of water in working with Debian. Could someone who's got GeoIP working with Kubuntu 6.10 post some simple instructions on how to do the GeoIP installation?

FWIW, I google'd for instructions on how to do this in Kubuntu, but it didn't work;

Code: Select all
sudo apt-get install libgeoip1


After completing the install I'm still seeing "N/A" in the "country" field.

Just to clarifiy things for those of us using 2.0.3, it would appear that the recommended Kubuntu 6.10 / Debian installation procedure for GeoIP fails to work properly with ktorrent. Is this because Ktorrent looks for a file name that is different (in a case-sensitive way) than the file supplied by the GeoIP installation procedure? Can you tell me the proper filename and path for the data file so that I can manually perform the install of the data file?

Finally, if this is a bug, where do I need to go to report it?

Thanks again for your help.
jdong
Registered Member
Posts
358
Karma
0

Mon Jan 08, 2007 6:42 pm
Download ktorrent sources from here, copy all the png's you find and also geoip.dat to:

/usr/share/apps/ktorrent/geoip
George
Moderator
Posts
5421
Karma
1

Mon Jan 08, 2007 6:43 pm
Colin wrote:I was wondering about this as well until I saw this thread. On my FC6 box, ktorrent displayed the countries and flags of peers whereas under Ubuntu this wasn't the case. However, simply copying the geoip.dat file and the .pngs from /usr/share/apps/ktorrent/geoip under Fedora to Ubuntu solved that.
jdong
Registered Member
Posts
358
Karma
0

Mon Jan 08, 2007 6:44 pm
hehe, looks like we're both too eager to answer questions :D

George, you know if there's any open-source GeoIP databases that we could use? How does, say, Azureus display their country flags?
imported4-bob p
Registered Member
Posts
12
Karma
0

Mon Jan 08, 2007 7:39 pm
George wrote:
Colin wrote:On my FC6 box, ktorrent displayed the countries and flags of peers whereas under Ubuntu this wasn't the case. However, simply copying the geoip.dat file and the .pngs from /usr/share/apps/ktorrent/geoip under Fedora to Ubuntu solved that.


Well, since I don't have GeoIP working on an existing RedHat installation, the recommendation to copy from a Red Hat install to a Debian install wasn't the most helpful solution.

Suffice it to say that after spending the requisite amount of time beating my head into the wall there was no way that I could get GeoIP to work with Ktorrent 2.0.3 on Debian. It works fine with 2.1-rc1 though. Thanks.

For anyone else who may be needing help in this regard, do this:

1. Install GeoIP using the following command:

Code: Select all
sudo apt-get install libgeoip1


2. Download the new betas and install them using the following command:

Code: Select all
dpkg -i /path/to/filename/file.deb


That should take care of things.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft