Hello, I've got kali as the sole OS on an old Asus laptop. After weeks spent trying to getting GPS to work in kismet in Linux Mint, I pulled out the HD, stuck in a new one and installed kali, thinking "oh **** now this will actually work!" But it's more like "oh **** it's the samo thing all over." Not that I don't like kali. It's great and I want to learn more tools. But not until I get gps working in kismet. And I'm tired of restoring a timeshift every time things get messed up which happens often.
Here is where I am after...
sudo apt update && sudo apt upgrade
sudo apt install gpsd gpsd-clients gpsd-tools
Below is what I've done before starting kismet because I had kismet working many different times but never with gps.
I've been doing this as root because it said in this article by Eric Raymond.
──(root💀laptop)-[/home/loomer]
└─# xgps
[window opens with "xgps: gpsd is not running on host localhost port 2947"
──(root💀laptop)-[/home/loomer]
└─# cgps
cgps: no gpsd running or network error: -6, can't connect to host/port pair
──(root💀laptop)-[/home/loomer]
└─# ppscheck /dev/ttyUSB0
# Seconds nanoSecs Signals
[no data]
──(root💀laptop)-[/home/loomer]
└─# gpspipe -P -r -w
or
──(root💀laptop)-[/home/loomer]
└─# gpspipe -P -r -w /dev/ttyUSB0 1 ⨯
gpspipe: could not connect to gpsd localhost:2947, can't connect to host/port pair(-6)gpsmon -n /dev/USB0...
[working but no data in Clock Status or DGPS Status]
gpsd -N -n -D3 /dev/ttyUSB0...
gpsd:INFO: launching (Version 3.22)
gpsd:INFO: listening on port gpsd
gpsd:INFO: stashing device /dev/ttyUSB0 at slot 0
gpsd:INFO: SER: opening GPS data source type 3 at '/dev/ttyUSB0'
gpsd:INFO: SER: speed 4800, 8N1
gpsd:INFO: attempting USB device enumeration.
gpsd:INFO: 1058:2621 (bus 2, device 2)
gpsd:INFO: 1d6b:0003 (bus 2, device 1)
gpsd:INFO: 13d3:5a01 (bus 1, device 3)
gpsd:INFO: 046d:c05a (bus 1, device 6)
gpsd:INFO: 0cf3:9271 (bus 1, device 5)
gpsd:INFO: 067b:2303 (bus 1, device 4)
gpsd:INFO: 05e3:0610 (bus 1, device 2)
gpsd:INFO: 1d6b:0002 (bus 1, device 1)
gpsd:INFO: vendor/product match with 091e:0003 not found
gpsd:INFO: SER: speed 9600, 8O1
gpsd:INFO: SER: speed 4800, 8N1
gpsd:INFO: SER: speed 9600, 8N1
gpsd:INFO: SER: speed 4800, 8N1
gpsd:INFO: gpsd_activate(2): activated GPS (fd 6)
gpsd:INFO: KPPS:/dev/ttyUSB0 RFC2783 path:/dev/pps0, fd is 7
gpsd:INFO: KPPS:/dev/ttyUSB0 pps_caps 0x1133
gpsd:INFO: KPPS:/dev/ttyUSB0 have PPS_CANWAIT
gpsd:INFO: KPPS:/dev/ttyUSB0 kernel PPS will be used
gpsd:INFO: PPS: activated /dev/ttyUSB0 ntpshm_link_activate(): Clock
gpsd:INFO: running with effective group ID 20
gpsd:INFO: running with effective user ID 133
gpsd:INFO: startup at 2021-03-03T01:10:44.000Z (1614733844)
gpsd:INFO: KPPS:/dev/ttyUSB0 kernel PPS timeout unknown error
gpsd:INFO: /dev/ttyUSB0 identified as type SiRF, 0 sec @ 4800bps
gpsd:WARN: SiRF: warning, write of MID 0x84 while awaiting ACK for 0x84.
gpsd:INFO: PRN [my coordinates]
gpsd:INFO: PRN [my coordinates]
gpsd:INFO: Sats used (2):
gpsd:INFO: KPPS:/dev/ttyUSB0 kernel PPS timeout unknown error
gpsd:INFO: PRN [my coordinates]
gpsd:INFO: Sats used (1):
^Cgpsd:WARN: received terminating signal 2.
gpsd:INFO: closing GPS=/dev/ttyUSB0 (6)
gpsd:INFO: KPPS:/dev/ttyUSB0 kernel PPS timeout unknown error
gpsd:WARN: exiting.
gpsd:WARN: shmctl for IPC_RMID failed, errno = 1 (Operation not permitted)
This is as far as I ever get. If I change anything like in /etc/default/gpsd, I invariably get...
gpsd:ERROR: can't bind to IPv4 port gpsd, Address already in use
gpsd:ERROR: maybe gpsd is already running!
or sometimes...
gpsd:ERROR: can't bind to local socket /dev/ttyUSB0
gpsd:ERROR: control socket create failed, netlib error -1
──(root💀laptop)-[/home/loomer]
└─# dpkg-reconfigure gpsd
Creating/updating gpsd user account...
gpsd.socket is a disabled or a static unit not running, not starting it.
gpsd.service is a disabled or a static unit not running, not starting it.
gpsd.socket is a disabled or a static unit not running, not starting it.
Stuff I tried in /etc/default/gpsd...
START_DAEMON="true"
GPSD_OPTIONS="-n" [or "-n -N -D3 etc"]
DEVICES="/dev/ttyUSB0" [or left as ""]
USBAUTO="true"[or "false"]
GPSD_SOCKET="/var/run/gpsd.sock" [or left out]
Will someone please help me with this?