Raspberry Pi Setup for Electronics


Enable SSH and VNC

  1. Command sudo raspi-config in Terminal, Interface options → SSH and VNC → Yes.
  2. Press VNC Button at top right corner, Burger Button → Options → Security →
  3. 
    Encryption: Prefer on
    Authentication: VNC password
    Password: pwd
    Confirm Password: pwd
    OK → Apply → OK
        
  4. If you use a VNC client like Remmina showing that "Cannot Currently Show the Desktop", please follow the following instruction, How to Fix Raspberry Pi's 'Cannot Currently Show the Desktop' Error. I fix it by adjusting resolution and then rebooting.
  5. Download packages.
  6. 
    sudo apt-get update -y && sudo apt-get upgrade
    sudo apt-get install wiringpi
    gpio -v
    gpio readall # sometimes it may not show ### Oops - unable to determine board type... model: 17
    cd /tmp
    wget https://project-downloads.drogon.net/wiringpi-latest.deb
    sudo dpkg -i wiringpi-latest.deb
    git clone --depth 1 https://github.com/freenove/Freenove_RFID_Starter_Kit_for_Raspberry_Pi
        

References


  1. How to Fix Raspberry Pi's 'Cannot Currently Show the Desktop' Error
  2. Is the gpio readall command compatible with RPi 4?