Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => dCore x86 Imported Extensions => Topic started by: jls on July 29, 2015, 02:22:38 AM

Title: e geolocation module doesn't work
Post by: jls on July 29, 2015, 02:22:38 AM
Hi
e geolocation module uses geoclue-2.0 package but it doesn't work, any help?
Thanks
Title: Re: e geolocation module doesn't work
Post by: Juanito on July 29, 2015, 03:31:44 AM
do you need to use dconf-editor to enable it - I believe that geolocation is disabled by default?
Title: Re: e geolocation module doesn't work
Post by: Jason W on July 29, 2015, 04:57:23 AM
In what way does it not work? 
Title: Re: e geolocation module doesn't work
Post by: jls on July 31, 2015, 07:23:03 AM
Code: [Select]
sudo  /usr/local/tce.installed/geoclue-2.0 configure
./geoclue-2.0: line 29: getent: not found
so I installed libc-bin because that command is there.
looking at  the content of : /usr/share/dbus-1/system-services/org.freedesktop.GeoClue2.service:
[D-BUS Service]
Name=org.freedesktop.GeoClue2
Exec=/usr/lib/geoclue-2.0/geoclue -t 5
User=geoclue

I tried to exexute:
Code: [Select]
/usr/lib/geoclue-2.0/geoclue
(geoclue:13652): Geoclue-CRITICAL **: Failed to acquire name 'org.freedesktop.GeoClue2' on system bus or lost it.

same with sudo
Title: Re: e geolocation module doesn't work
Post by: Juanito on August 01, 2015, 08:17:32 AM
On corepure64 I get this:
Code: [Select]
$ sudo G_MESSAGES_DEBUG=Geoclue /usr/local/lib/geoclue-2.0/geoclue -t 60
(geoclue:18455): Geoclue-DEBUG: Available accuracy level from GClueWifi: 4
(geoclue:18455): Geoclue-DEBUG: WiFi device 'wlan0' added.
(geoclue:18455): Geoclue-DEBUG: Available accuracy level from GClueWifi: 6
(geoclue:18455): Geoclue-DEBUG: New agent for user ID '1001'
(geoclue:18455): Geoclue-DEBUG: Number of connected clients: 1
(geoclue:18455): Geoclue-DEBUG: Service now in use
(geoclue:18455): Geoclue-DEBUG: GClueLocator now active
(geoclue:18455): Geoclue-DEBUG: GClueWifi now active
(geoclue:18455): Geoclue-DEBUG: Not starting GClue3G (accuracy level: 0). Requested accuracy level: 8.
(geoclue:18455): Geoclue-DEBUG: Not starting GClueCDMA (accuracy level: 0). Requested accuracy level: 8.
(geoclue:18455): Geoclue-DEBUG: Not starting GClueModemGPS (accuracy level: 0). Requested accuracy level: 8.
(geoclue:18455): Geoclue-DEBUG: 'org.gnome.Maps' started.
(geoclue:18455): Geoclue-DEBUG: WiFi AP 'Livebox-1250' added.
(geoclue:18455): Geoclue-DEBUG: WiFi AP 'Livebox-1250' added.
(geoclue:18455): Geoclue-DEBUG: Refreshing location..
(geoclue:18455): Geoclue-DEBUG: Network available
(geoclue:18455): Geoclue-DEBUG: Sending following request to 'https://location.services.mozilla.com/v1/geolocate?key=geoclue':
{"wifiAccessPoints":[{"macAddress":"00:19:70:af:ae:26","signalStrength":-84}]}


(geoclue:18455): GLib-Net-WARNING **: The anchor file name for used with a GTlsFileDatabase must be an absolute path, and not relative: path=/usr/local/etc/ssl/certs/ca-certificates.crt

(geoclue:18455): Geoclue-WARNING **: Failed to query location: Unacceptable TLS certificate

..when starting gnome-maps and clicking on the "my location" icon. The same thing happens when using an html5 location services test with epiphany.

I've seen this sort of error before and wonder if the code expects the certs file under /tmp/tcloop?
Title: Re: e geolocation module doesn't work
Post by: Juanito on August 01, 2015, 08:45:55 AM
tested with copy2fs.flg set and the problem persists.

The geoclue dev says either https is broken on libsoup or the certificate is too old, but I doubt that's the issue with dcore?
Title: Re: e geolocation module doesn't work
Post by: Juanito on August 01, 2015, 09:23:29 AM
I just found the problem in glib-networking in corepure64 (typo in ./configure switch), but I somehow doubt that solves your dcore problem  :(
Title: Re: e geolocation module doesn't work
Post by: Jason W on August 08, 2015, 05:19:36 PM
Thanks Juanito, I am not familiar with this package but I will use this information and see if I can figure something out on why it doesn't work here.