Yet another Pi post!
When I put Raspbian on the SD card used by my Raspberry Pi, I used the Raspbian Stretch with desktop version. That was perhaps a poor choice on my part, as I use the machine as a headless server. However, I’m not that skilled with Desktop Linux, so the mere fact that there were buttons to push during the installation and stuff actually worked, made me feel like a pro.
All those packages that I’ll never use, like LibreOffice, still take up precious space, so I wrote a simple script to remove some of them.
Continuing the theme of last night, today I improved the upgrade experience of my Raspberry Pi.
As per the documentation, update and upgrade are as easy as running these two commands. First
update your system’s package list:
sudo apt -y update
upgrade all installed packages to their latest version:
sudo apt -y dist-upgrade
-y to answer yes to all prompts by default. Easy enough, but in our modern DevOpsy world, we need to automate this.
I just bought myself a gorgeous
Raspberry Pi 3 Model B+ to use as a headless server and all-round tinkering machine. It’s small, power efficient and fast enough for my usage:
- Cortex-A53 (ARMv8) 64-bit SoC @ 1.4GHz
- 1GB LPDDR2 SDRAM
Enable SSH support
Installation is super easy, just follow the instructions on Raspberry Pi website, with one exception. As of the November 2016 release, the default Raspberry Pi OS,
Raspbian, has the SSH server disabled by default.
To enable SSH, you need to either configure it after OS installation has completed as per instructions here, or while preparing your SD card:
For headless setup, SSH can be enabled by placing a file named ssh, without any extension, onto the boot partition of the SD card. When the Pi boots, it looks for the ssh file. If it is found, SSH is enabled, and the file is deleted. The content of the file does not matter: it could contain text, or nothing at all.