Usually, you need to find a keyboard and plug it in. And a monitor and plug it in. And an HDMI cable in between. Assuming that you can find an extra HDMI cable. That the monitor is not too far away from the Raspberri Pi. That there is room to string the cable. That you don’t knock a ton of things off your desk. That you can reach the almost-impossible-to-access HDMI port on your monitor. Assuming it has one. And then log on and remember how to set up ssh access securely, which, in the best case, involves vi, /etc/sudoers.d/something-whose-syntax-I-cannot-remember, scp, chmod and maybe systemctl. In other words, a major nightmare.
- Took a USB stick from the shelf labeled “UBOS shepherd home”.
- Inserted USB stick into Raspberry Pi
- Rebooted Raspberry Pi and waited for a minute.
- From my regular workstation (a MacBook Pro), typed:
> ssh shepherd@ubos-raspberry-pi > sudo bash > whoami > root
That was all. But then, my Raspberry Pi is running UBOS Linux where things are just a taaaad simpler than on a traditional Linux distro.
(In case you are wondering, the USB stick contains my public ssh key and a few other bits. I use it to provision admin accounts on all of my servers at home. UBOS docs on this feature are here.)