3 ms·
For a while my home had a Raspberry Pi 2B running FreeBSD 10 acting as a router-on-a-stick. When I lost SSH connectivity to it, I would instead use GNU screen a
by evanjrowley 7mo ago
For a while my home had a Raspberry Pi 2B running FreeBSD 10 acting as a router-on-a-stick. When I lost SSH connectivity to it, I would instead use GNU screen as with a serial cable. For whatever reason, I could never get "full screen" TUI apps like vi and nano to display properly. To edit files (like pf.conf for firewall rules), I had to use sed to edit lines of the file. It was an interesting learning experience and perhaps a glimpse of how things used to be with green screen terminals. Shortly thereafter I switched over to a Beaglebone Green with OpenBSD 5 and never needed that workaround again.
- jlp__inf 7mo agoYep, interesting, do you remember the initial text structure and operatins you would perform on it ?
- evanjrowley 7mo agoUnfortunately my notes from that time are long gone. It was over 10 years ago. There were three specific files that needed to be edited. Firewall rules were setup in pf.conf. IP-related configuration was controlled in both rc.conf and sysctl.conf. There was also some issue with the difference between GNU sed and BSD sed having to do with the ability to make in-place edits with the -i option.