DietPi¶
DietPi is used on my Raspberry Pi 1 and Raspberry Pi Zero W
Installation¶
- Download the image from DietPi website.
-
Identify the SD card device using
lsblk. -
Write the image to the SD card. Replace
image.img.xzwith the path to your downloaded image and/dev/sdXwith the device identifier of your SD card.
- Mount the boot partition (e.g.,
/dev/sdX1) and edit the configuration files.
Config¶
Enable Secure Copy Protocol (SCP)
These packages are installed to enable Secure Copy Protocol (SCP), allowing secure file transfers to and from the device. This is useful for managing files remotely.
Disable DietPi Banner
The DietPi banner displays system information upon login. To disable it and show only a standard login prompt, create a .hushlogin file in the user's home directory.
Change Hostname
To change the hostname of your DietPi device, run dietpi-config, navigate to '2 Network Options' -> 'Hostname', and enter your desired hostname.