[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-users] GPSD on Debian 10 (buster): allowing other hosts to acc
From: |
Charles Curley |
Subject: |
Re: [gpsd-users] GPSD on Debian 10 (buster): allowing other hosts to access gpsd |
Date: |
Sun, 22 Sep 2019 13:50:05 -0600 |
On Wed, 18 Sep 2019 10:19:35 -0600
Charles Curley <address@hidden> wrote:
> I have the Debian packaged gpsd (version 3.17-7 [Yes, I know:
> ancient]) on Debian 10 (buster). It runs just fine and dandy, except
> I cannot access it from another computer.
A few notes to coalesce my results from this thread and some other
research.
* I'm not sure exactly how I did it, but I now have other hosts
listening to my gpsd.
* /etc/systemd/system/gpsd.socket is as follows, with only the one
change:
--------------------------------------------------
[Unit]
Description=GPS (Global Positioning System) Daemon Sockets
[Socket]
ListenStream=/var/run/gpsd.sock
ListenStream=[::1]:2947
# ListenStream=127.0.0.1:2947
ListenStream=0.0.0.0:2947
SocketMode=0600
[Install]
WantedBy=sockets.target
--------------------------------------------------
* gpsd.service is unchanged.
* Add two options in /etc/default/gpsd, like so:
--------------------------------------------------
# Other options you want to pass to gpsd
# GPSD_OPTIONS=""
GPSD_OPTIONS="-Gn"
--------------------------------------------------
* I don't know if you have to run "systemctl daemon-reload" after each
edit, but it doesn't seem to hurt.
* After each edit, do run "systemctl restart gpsd.socket". Apparently
running "systemctl restart gpsd" doesn't do it. Thank you Lisandro
Damián Nicanor Pérez Meyer <address@hidden> for that.
Running "systemctl status gpsd" after the restart seems to catch
some problems.
* Enabling and disabling a service applies only to boot time. It does
not necessarily stop the service from running between the time you
disable it and the next reboot. "systemctl stop gpsd" isn't
sufficient, either. According to john doe <address@hidden> on
the Debian users list, this should do it:
> $ systemctl stop gpsd.socket gpsd
I have not explored this issue further.
--
Does anybody read signatures any more?
https://charlescurley.com
https://charlescurley.com/blog/
- Re: [gpsd-users] GPSD on Debian 10 (buster): allowing other hosts to access gpsd, (continued)
- Re: [gpsd-users] GPSD on Debian 10 (buster): allowing other hosts to access gpsd, Charles Curley, 2019/09/19
- Re: [gpsd-users] GPSD on Debian 10 (buster): allowing other hosts to access gpsd, Bernd Zeimetz, 2019/09/27
- Re: [gpsd-users] GPSD on Debian 10 (buster): allowing other hosts to access gpsd, Gary E. Miller, 2019/09/27
- Re: [gpsd-users] GPSD on Debian 10 (buster): allowing other hosts to access gpsd, Charles Curley, 2019/09/28
- Re: [gpsd-users] GPSD on Debian 10 (buster): allowing other hosts to access gpsd, Gary E. Miller, 2019/09/28
- Re: [gpsd-users] GPSD on Debian 10 (buster): allowing other hosts to access gpsd, Charles Curley, 2019/09/28
- Re: [gpsd-users] GPSD on Debian 10 (buster): allowing other hosts to access gpsd, Gary E. Miller, 2019/09/28
- Re: [gpsd-users] GPSD on Debian 10 (buster): allowing other hosts to access gpsd, Charles Curley, 2019/09/28
- Re: [gpsd-users] GPSD on Debian 10 (buster): allowing other hosts to access gpsd, Bernd Zeimetz, 2019/09/29
- Re: [gpsd-users] GPSD on Debian 10 (buster): allowing other hosts to access gpsd, Gary E. Miller, 2019/09/29
Re: [gpsd-users] GPSD on Debian 10 (buster): allowing other hosts to access gpsd,
Charles Curley <=