Before you start any headless server (without monitor) project with Raspberry Pi, these are the basic preparation you need to perform.
- Download the latest Lite version of Raspbian.
- Unzip the image file.
- Download and install Win32 Disk Imager tool.
- Put in the Micro SD card into your (built-in or USB) card reader. Note the drive letter your PC assigns to the SD card.
- If the SD card is not new, you might want to format it with SD Card Formatter first. Once it is formatted, you can close it.
- Open the Win32 Disk Imager tool in step #3. Select the Drive letter from step #4. Click on the blue folder icon and select the the image file from step #2. Once you confirm everything is selected correctly, click on the Write button.
- Wait for the process to complete. Click OK and Exit Win32 Disk Imager.
- Enable SSH by placing a file named ‘ssh’, without any extension, into the boot partition of the SD card from File Explorer.
- Eject the SD card/card reader safely from the PC.
- Put the SD card into the Pi, plug in Ethernet cable and power it up.
- Wait for it to boot up and then find out the IP address of the Raspberry Pi.
- Download and install PuTTY.
- In PuTTY, enter the IP address from step #11 in the Host Name field, Port: 22, Connection type: SSH. Click Open
- Login with this credential…
- User: pi
- Password: raspberry
- Go to
sudo raspi-config
and do these:- Change User Password
- Network Options > Hostname > [hass or any name]
- Boot Options > B2 Wait for Network at Boot
- Localisation Options > Change Timezone > Asia > Kuala Lumpur
- Localisation Options > Change Wi-Fi Country > MY
- Advanced Options > Expand Filesystem
- Advanced Options > Memory Split > 16
- Finish and reboot
- Finally update the system:
sudo apt-get update
sudo apt-get upgrade -y