- Flash using rpi-imager
- Set username, password, hostname etc.
- Enable ssh
- Install updates
sudo apt update
sudo apt upgrade
sudo rpi-update
sudo reboot
- Use
raspi-config to set wlan country
- Use
raspi-config to enable predictable interface names
sudo apt install bettercap bettercap-caplets bettercap-ui
sudo systemctl stop bettercap
sudo systemctl disable bettercap
- Download latest release
curl -L "https://github.com/czQery/PiFi/releases/latest/download/release-$(uname -m | sed 's/x86_64/amd64/; s/armv7.*/arm7/; s/armv6.*/arm6/').tar.gz" | tar -xzv
- Edit the example
pifi.service file in this repo and put it in /etc/systemd/system/
- Reload systemd daemon
sudo systemctl daemon-reload
- Enable service
sudo systemctl enable pifi.service
- Start service
sudo systemctl start pifi.service
- Enable serial interface
- Select -> Interfacing Options
- Select -> Serial
- Login shell -> No
- Hardware Serial -> Yes
sudo apt install pps-tools gpsd gpsd-clients chrony
sudo systemctl stop gpsd
sudo systemctl stop gpsd.socket
# Edit these settings to match your gps module
sudo ubxtool -S 460800 -s 38400 -f /dev/serial0
sudo ubxtool -s 460800 -e GPS -e GALILEO -e GLONASS -e BEIDOU -e SBAS -e QZSS -f /dev/serial0
sudo ubxtool -s 460800 -z CFG-RATE-MEAS,100 -f /dev/serial0
sudo ubxtool -s 460800 -z CFG-NAVSPG-DYNMODEL,4 -f /dev/serial0
sudo ubxtool -s 460800 -p SAVE -f /dev/serial0
- Edit
/etc/default/gpsd
DEVICES="/dev/serial0"
GPSD_OPTIONS="-n -s 460800"
USBAUTO="true"
- Apply
sudo systemctl enable gpsd
sudo reboot