- 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-configto set wlan country - Use
raspi-configto 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/download/v0.0.4/release-arm.tar.gz | tar -xzv
- Edit the example
pifi.servicefile 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
sudo raspi-config
- 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/gpsdDEVICES="/dev/serial0" GPSD_OPTIONS="-n -s 460800" USBAUTO="true"
- Apply
sudo systemctl enable gpsd sudo reboot