Questions tagged [geolocation]

24 questions
25
votes
3 answers

Automatically set Linux timezone according to location

How can we automatically set the system default timezone in Linux using the Internet? As I see it, NTP servers can update only time, but not timezone. Is there any server that can change the timezone?
15
votes
4 answers

Get my country by IP in bash

I want to use the name of the country where I am now in a bash script. I can get the external IP using next command: curl ifconfig.me But how can I get my country name?
Radu Rădeanu
  • 1,763
  • 2
  • 22
  • 46
13
votes
3 answers

uninstall geoclue from debian

Using Debian 8 Jessie I don't like geoclue. I want to remove it Tried to do: apt-get remove geoclue* I got: The following packages will be REMOVED: empathy geoclue-2.0 gnome gnome-clocks gnome-core gnome-maps task-gnome-desktop Is there a way…
opc0de
  • 293
  • 1
  • 3
  • 7
9
votes
3 answers

geoclue2: how to get location and configure

At the command line, how do I get the current location that geoclue2 would report? There's no man page or bin/ executable in my Arch package. redshift (which uses geoclue2) is reporting my location as: 7.98 98.37 But google maps gives…
Tom Hale
  • 28,728
  • 32
  • 139
  • 229
6
votes
1 answer

How to add a custom GPS location to a picture?

Given a .jpg picture without associated GPS coordinates, how would you suggest to add custom coordinates to it?
user123456
  • 4,758
  • 11
  • 52
  • 78
3
votes
4 answers

Extracting sea level pressure from KML using Shell

I'm currently working on a little project; in a kml file called weatherdata.kml, I would like to extract the sea level pressure for each element. I'm trying to parse the information about the sea level pressure and put it into a file…
user518378
3
votes
1 answer

is there a command or a way to find how good or bad is the Geoclue Demo Agent?

In startup applications in Debian (as possibly other debian and ubuntu based distros.) there is a library called Geoclue Demo agent, the actual library with path is /usr/libexec/geoclue-2.0/demos/agent which is part of geoclue-2.0 …
shirish
  • 11,967
  • 27
  • 107
  • 190
3
votes
1 answer

How does gnome-maps get my current location?

On my desktop computer (arch) and laptop (debian) I use gnome-maps. On both devices I use a VPN. (iptables firewall does not allow non-VPN traffic, no DNS leaks.) On my desktop, the "current location" is the city where the VPN is, as expected. On my…
confetti
  • 1,882
  • 3
  • 23
  • 40
3
votes
1 answer

Geoclue2 insists that permission is forbidden

I am trying to get Redshift to work again. And it seems to fail because of geoclue2. Here's the weird thing. Until earlier today, it worked just fine, and geoclue was not updated since December (2.5.2). Whatever I do, I keep getting the…
Ink blot
  • 203
  • 2
  • 10
3
votes
1 answer

Shell script to add different GPS data to series of photos

I have a drone that I used to make a flight movie, and I am going to use this footage to build a DEM (digital elevation model) of the topography I was filming. I can extract frames from the movie easily enough, but the method (ffmpeg) does not give…
2
votes
2 answers

How to block countries (iptables OR firewalld) by GeoLite2 mmdb

How to use GeoLite2 database (mmdb) in my firewalld to block all countries except for example DE?
Baterka
  • 121
  • 1
  • 3
2
votes
2 answers

Is it possible to redirect ssh traffic (not forward), How?

I am aware that it is possible to forward SSH from server A to server B by creating a tunnel. What I am asking for is rather the red alternative on the schema above. Can this scenario be implemented: SSH to server A Server A tells client to go to…
Ezwig
  • 490
  • 1
  • 4
  • 14
2
votes
2 answers

Show GEO IP information in Firefox when using tor

I've configured Firefox to use TOR (SOCKS proxy via localhost). Everything works great, but I would like to see at any time which IP in which country I'm using. is there a Firefox Addon, which displays my current IP together with the country code…
Martin Vegter
  • 69
  • 66
  • 195
  • 326
1
vote
0 answers

GPSD, How to get the last known location?

if GPS-module disconnected, or if GPS antenna gets moved into building, I wan't to know the last available location. I tried to log location every 10 or so seconds with systemd-timers; However, exactly when log-file is updating every 10 sec, there…
Garid Z.
  • 500
  • 2
  • 12
1
vote
0 answers

How can I manage specific setting profiles for different physical locations (office vs home)?

On my KDE Neon laptop, I would like to have several profiles which encompass the settings for: network (Wifi vs LAN) display (including external displays via xrandr or display manager) audio outputs (internal vs. external audio device) Is there a…
1
2