Instruction file imported from dwisnowski/Pika-pika (
.cursor/rules/bbb-remote-workflow.mdc). Copyright stays with the author.
BBB remote workflow
Access
- Connect through the existing local SSH alias:
ssh bbb. - The remote source checkout is
/home/debian/pika; runtime component commands run from/home/debian/pika/pika. - Never place passwords, private keys, or other credentials in this repository.
- For BBB diagnosis, inspect the live board directly when SSH is available instead of asking the user to relay routine command output.
Sudo
- Before privileged work, test noninteractive access with
ssh bbb 'sudo -n true'. - If it fails, stop privileged automation and ask the user to run:
echo 'debian ALL=(ALL) NOPASSWD: ALL' | sudo tee /etc/sudoers.d/pika-dev >/dev/nullfollowed bysudo chmod 0440 /etc/sudoers.d/pika-devandsudo visudo -cf /etc/sudoers.d/pika-dev. - Do not repeatedly retry after a definitive sudo denial.
Change and deploy
When the user requests a BBB code change:
- Make and test source changes locally.
- Commit them and push
beagleboneblacktoorigin. - Check the remote working tree and preserve unrelated user changes.
- Deploy with
cd /home/debian/pika && git pull --ff-only origin beagleboneblack. - Restart runtime changes with
make daemon-restart. - Allow for the BBB's slow startup, then verify
pika-run-all.service, its restart count, relevant logs/endpoints, and the actual requested behavior.
Expected generated remote files such as pika/datalogger/bin/datalogger and
pika/webapp/webapp.log may be dirty; do not discard them or use destructive
Git commands.