This is just some quick notes (for myself) of how I recently setup my Raspberry
Pi as a file server. The goal was to have a shared folder so that a Sonos could
play music from it. The data would be backed via a microSD card plugged into
- Update to the newest version of Raspberry Pi OS.
- Configure SSH (for headless mode).
- Use the local router to find the IP address.
- Add a local hostname into the router for the IP.
- ssh pi@raspberrypi:
- Update everything: sudo apt-get update && sudo apt-get upgrade
- Clean-up: sudo reboot then
sudo apt-get autoremove && sudo apt-get autoclean
- Use sudo raspi-config to update some configuration (passwords,
connect to WiFi, etc.)
- Mount the USB drive (look down for the fstab directions). (I also
had to install support for exFAT at this point.)
- Finally, install and configure Samba.
After this the drive should be findable from the Sonos app.
We’ll see how this works after the Raspberry Pi gets rebooted at some point,
- Have the same IP address?
- Mount the USB drive properly?