1. Boot Media

1.1. SD card on Linux

  • Enter the following commands at a Command Line.

# Attach the SD card.
lsblk -l | grep -E "disk|part"
sudo df -h
sudo umount /dev/sdX
cd "/media/Windows/Images/Raspberry Pi"
sudo dd bs=4M if=2021-05-07-raspios-buster-armhf-full.img of=/dev/sdX conv=fsync        # 32-bit, full desktop
sudo dd bs=4M if=2021-05-07-raspios-buster-armhf.img      of=/dev/sdX conv=fsync        # 32-bit, desktop
sudo dd bs=4M if=2021-05-07-raspios-buster-armhf-lite.img of=/dev/sdX conv=fsync        # 32-bit, no desktop
sudo dd bs=4M if=2021-05-07-raspios-buster-armhf.img      of=/dev/sdX conv=fsync        # 64-bit, desktop
sudo dd bs=4M if=2021-05-07-raspios-buster-arm64-lite.img of=/dev/sdX conv=fsync        # 64-bit, no desktop
# Wait.
sudo sync
lsblk -l | grep -E "disk|part"
# Detach the SD card.

1.2. SD card on Windows

  • Install Raspberry Pi Imager.

    • Run the imager_1.6.2.exe file with administrative administrative privileges.

    • Click Install.

    • Uncheck Run Raspberry Pi Imager.

    • Click Finish.

  • Attach the SD card.

  • Start Raspberry Pi Imager with administrative administrative privileges.

    • Type rpi-imager and press Enter at a Command Prompt with administrative privileges.

  • Click CHOOSE OS.

  • Select Use custom.

  • Select the 2021-05-07-raspios-buster-arm.img file.

  • Click Open.

  • Click CHOOSE STORAGE.

  • Select the SD card.

  • Click WRITE.

  • Click YES to confirm.

  • Wait several minutes for the writing and verification to finish.

  • Click CONTINUE.

  • Close Raspberry Pi Imager.

  • Detach the SD card.

2. Raspbian 10 Buster Desktop

2.1. Installation

2.2. Configuration

  • Power up the Raspberry Pi.

  • Optional: Log in as pi with the default raspberry password.

  • Click Next.

  • Select Thailand for the Country.

  • Check Use English Language.

  • Check Use US keyboard.

    Country:                Thailand
    Language:               Thai
    Timezone:               Bangkok
                            ■ Use English Language
                            ■ Use US keyboard
  • Click Next.

  • Type the level 2 password.

  • Type the level 2 password.

  • Click Next.

  • Click Next.

  • Select smru-clinic for the wifi.

  • Click Next.

  • Type the wifi password.

  • Click Next.

  • Click Skip to skip updating software.

  • Click Done.

  • Select Raspberry | Preferences | Raspberry Pi Configuration.

  • Select the Interfaces tab.

  • Check SSH | Enable.

  • Click OK.

  • Enter the following commands at a Command Line.

    sudo apt-get install xrdp

3. Raspbian 10 Buster Lite

3.1. Installation

3.2. Configuration

  • Power up the Raspberry Pi.

  • Log in as pi with the default raspberry password.

  • Enter the following commands at a Command Line.

    ifconfig
    sudo cp -a /boot /boot.org
    sudo cp -a /etc /etc.org

3.2.1. Localisation

  • Log in as pi with the default raspberry password.

  • Type sudo raspi-config and press Enter.

  • Select Localisation Options.

  • Select L1 Locale.

  • Uncheck en_GB.UTF-8 UTF-8.

  • Check en_US.UTF-8 UTF-8.

  • Select None for the default locale.

  • Select Finish.

  • Restart the computer.

3.2.2. Keyboard

  • Type sudo raspi-config and press Enter.

  • Select Localisation Options.

  • Select L3 Keyboard.

  • Select Generic 105-key PC (intl.).

  • Select Other.

  • Select English (US).

  • Select English (US).

  • Select The default for the keyboard layout.

  • Select No compose key.

  • Select Finish.

Remove the four raspberries at the top of the console.

  • Enter the following commands at a Command Line.

    sudo cp -a /boot/cmdline.txt /boot/cmdline.txt.org
    sudo sed -i "1s/$/ logo.nologo/" /boot/cmdline.txt
    diff /boot/cmdline.txt.org /boot/cmdline.txt
  • Restart the computer.

3.2.4. Console Resolution

  • Press C when grub runs to enter the grub command line.

  • BIOS: Type vbeinfo and press Enter.

  • UEFI: Type videoinfo and press Enter.

  • Type reboot and press Enter.

  • Enter the following commands at a Command Line.

    sudo cp -a /etc/default/grub /etc/default/grub.org
    sudo sed -i "/#GRUB_GFXMODE=640x480/a GRUB_GFXMODE=1280x1024x32" /etc/default/grub
    diff /etc/default/grub.org /etc/default/grub
    sudo update-grub
    sudo shutdown -r now

3.2.5. Date and time

  • Log in as pi with the default raspberry password.

  • Type sudo raspi-config and press Enter.

  • Select Localisation Options.

  • Select L2 Timezone.

  • Select Asia.

  • Select Bangkok.

  • Select Finish.

  • Enter the following commands at a Command Line.

    date
    sudo date --set "YYYY-MM-DD"
    sudo date --set "HH:MM"
    date

3.2.6. Passwords

  • Type sudo raspi-config and press Enter.

  • Select System Options.

  • Select Password.

  • Select Ok.

  • Type the level 2 password and press Enter.

  • Type the level 2 password and press Enter.

  • Select Ok.

  • Select Finish.

  • Enter the following commands at a Command Line.

    # Change root password.
    sudo passwd root
    # Type the level 1 password.
    # Type the level 1 password.

3.2.7. Auto Login

  • Log in as pi.

  • Type sudo raspi-config and press Enter.

  • Select System Options.

  • Select Boot / Auto Login.

  • Select B2 Console Autologin.

  • Select Finish.

  • Select Yes to reboot the computer.

3.2.8. Hostname

  • Type sudo raspi-config and press Enter.

  • Select System Options.

  • Select Hostname.

  • Select Ok.

  • Type tbhf-pi-mrm and press Enter.

  • Select Finish.

  • Select Yes to reboot the computer.

3.2.9. Network

  • Type sudo raspi-config and press Enter.

  • Select System Options.

  • Select Wireless LAN.

  • Select TH Thailand.

  • Select Ok.

  • Type SMRU for the SSID and press Enter.

  • Type the wifi passphrase and press Enter.

  • Select Interface Options.

  • Select P2 SSH.

  • Select Yes to enable the SSH server.

  • Select Ok.

  • Select Finish.

  • Select Yes to reboot the computer.

  • Contents of the /etc/wpa_supplicant/wpa_supplicant.conf file.

    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    country=TH
    
    network={
            ssid="SMRU-Guest"
            key_mgmt=NONE
    }

3.3. Updates

  • Log in as pi.

  • Enter the following commands at a Command Line.

    ifconfig
    ip a
    sudo apt-get update
    sudo apt-get update --allow-releaseinfo-change
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get dist-upgrade
  • Type sudo raspi-config and press Enter.

  • Select Update.

  • Select Finish.