Sunday, February 27, 2022

Raspberry Pi 4 as a low-end server (eg. NAS)

Beside multi-core, Pi 4 spec also includes Gigabit network interface and dual USB 3 ports, that makes it a good platform for a NAS with RAID 1 disks setup  ie. mirrored, duplicated

A 2GB RAM ($ 35) is good enough for this purpose.  However, the more RAM the better in my opinion - also my recommendation is to download the Raspi OS 64-bit lite version (no GUI).  2GB is too weak for GUI; you would soon experience lagging in responses; the system will write frequently to swap - the SD card, reducing its life span.  Skipping GUI saves you ~100 MB RAM.  With more memory, other servers and/or even docker containers can run.  ;)

A very straight-forward instruction is already available by mag pi.

https://magpi.raspberrypi.com/articles/build-a-raspberry-pi-nas


Labels: , , ,

Sunday, March 15, 2020

write Raspbian Buster to SD card on Linux

2020-02-13 new version of raspbian buster

1) download image as a ZIP file from
https://www.raspberrypi.org/downloads/raspbian/

2) check shasum, open terminal
$ shasum -a 256 ~/Downloads/2020-02-13-raspbian-buster.zip
# compare with the sha sum on download page

3) insert an empty SD card into computer.  note dev name by
$ df -h
# mine is sdc1

4) unzip on the fly, and write to the sd card in one line (NOTE: replace sdc to your device)
$ unzip -p ~/Downloads/2020-02-13-raspbian-buster.zip | sudo dd of=/dev/sdc bs=1M && sync
# can skip sudo if already in root account
# now wait for about 10 minutes, no print out from terminal.

5) enable SSH before installation:
    mount the sd card, cd into its boot partition, eg. your
    cd /media/ken/root
    touch ssh


Labels: , , , ,