How to use Raspberry pi4 without display and keyboard with a VNC viewer.



  • Raspberry Pi

    Screenshot from 2020-04-22 06-58-09.png

    The Raspberry Pi is a series of small single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and in developing countries. The original model became far more popular than anticipated, selling outside its target market for uses such as robotics. Usually, it does not include peripherals (such as keyboards and mouse ) or cases but they can be attached via the USB ports

    Download the os image: https://www.raspberrypi.org/downloads/raspbian

    rpi image download.png

    Then flashing the memory card for booting os (minimum 8 GB recommended, can use balenaEtcher)
    After flashing open boot directory from the memory card

    • Create an empty file and rename it ssh (remove extensions if any)
    • Create another empty file and rename it wpa_supplicant.conf
    • Open wpa_supplicant.conf and copy the below code
      country=US
      ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
      update_config=1
      network={
      ssid="NETWORK-NAME"
      psk="NETWORK-PASSWORD"
      }

    Replace โ€œNETWORK-NAMEโ€ with your network name and
    โ€œNETWORK-PASSWORDโ€ with the password of your network

    Find the IP of raspberry-pi (Rpi)
    You can install the Fing app in your smartphone and connect it to the same network as Rpi.
    Then find the IP of Rpi.

    Install PuTTY SSH client

    putty.png

    • Type the IP of Rpi in the Host Name.
    • Then click open. Then a terminal opens asking your username and password. By default, the username will be pi and password raspberry.
    • Type sudo raspi-config.
    • In the window that appears activate VNC by moving the arrow key.

    Now to use VNC viewer
    Download it from:https://www.realvnc.com/en/connect/download/viewer

    • Install VNC viewer
    • Enter the IP of pi in the window that opens.
    • Enter the username and password.

    If the display is not available
    Type sudo raspi-config
    Go to advance settings.
    Adjust resolution by selecting the appropriate one.



  • Thanks for the tip @Abhay. keep in mind, after flashing the OS to the SD card, it will not open the window machine because Windows is only able to manage only its own partitions (fat16, fat32, ntfs, exfat).

    so you need to software that can read Linux ext format for you, I used Ext2Read, and it does the job.

    Capture.PNG



  • @salmanfaris Thanks for reminding about windows machine partitions and insight about using Ext2Read.

    For Linux users, can skip the process of installing PuTTy SSH Client since SSH client are installed in Linux by default.
    Open terminal and type: **

    • ssh pi@ipaddress //Replace ipaddress with IP address of your pi.
      then enter the username (by default: pi)
      password (by default: raspberry)

    Download and install deb package for VNC viewer.



  • @Abhay and @salmanfaris . This post is a life saviour to many of us. I use to face lot of issues for the headless setup of Raspberry pi. I finally fail with headless setup and use to borrow a screen from my friends and set it up. Seems like this post will help me out for sure.

    Thanks again for the post @Abhay. ๐Ÿ˜Š ๐Ÿ˜Š



  • @kowshik1729
    We couldn't find monitor during a hackathon and it cost the majority of our time to set up pi, this was the alternative that saved us back then.

    Hope it will be helpful for you to @kowshik1729


Log in to reply
 

Recent Posts

  • WhatsApp Image 2020-09-26 at 9.28.51 PM.jpeg

    Hey guys, we are thrilled to announce the speaker Mr. Brian Douglas for our upcoming event organised by HackClub TIST as part of Hacktoberfest 2020. He will guide you through GitHub and the importance of Open Source contributions.

    Mr. Brian Douglas has been working as a Staff Developer Advocate at GitHub for the past three years and was fully on-board with us when we contacted him about the event.

    We at Hackclub TIST strongly believe in the power of collaboration and how even the smallest guidance can have a huge impact in the long run.

    So register now at http://hackclubtist.tech/hacktoberfest and lets git learning (pun intended).

    Friday October 2, 2020
    7:00 pm -9:30 pm IST

    read more
  • P

    @Anudeep Thanks a lot m8, I actually made a very silly mistake of including the https:// while entering FIREBASE_HOST, where I must have entered the Domain name alone and removed the https:// extension.

    Thanks again for replying that quick. Cheers.

    read more
  • A

    Hello @Palani, In the Firebase, there are two types of storage,

    Cloud Firestore (Very recent one & NoSQL database) Realtime Database (To which we upload the data using NodeMCU)

    In the Arduino Code, you can see that there is a variable named FIREBASE_AUTH.

    This variable should be assigned to the Database secret. This you can find in Project Settings -> Service accounts -> Database Secrets.

    My mistake is, i have mistakenly assigned thay to Web API key. This is found at Project Settings -> General.

    The error can also occur when u don't initialise a proper realtime database in Firebase. (This is not my case).

    read more
  • P

    @Anudeep Hello Anudeep could you please help me out by elaborating the fix to get rid of that error?
    Thanks in advance.

    read more
  • At Adobe, weโ€™re focused on bringing together the most intelligent, driven, diverse set of individuals and give them the freedom to nurture their intellectual curiosity. We provide them with the necessary resources and support to shape their ideas into tangible results.
    Through the Adobe India Women-in-Technology Scholarship, we are striving towards creating gender equality in science, technology and engineering domains by encouraging women to showcase their excellence in computing and technology and become future leaders and role models in the field.

    ๐—›๐—ผ๐˜„ ๐˜๐—ผ ๐—ฎ๐—ฝ๐—ฝ๐—น๐˜†?

    Applications must be submitted through their dedicated application portal which opens on August 20th, 2020 and will close on September 20th, 2020, 5 pm India time.

    ๐—”๐—ฝ๐—ฝ๐—น๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ฑ๐—ฒ๐—ฎ๐—ฑ๐—น๐—ถ๐—ป๐—ฒ:

    Application deadline: September 20th, 2020, 5 pm India time.

    Visit:- https://research.adobe.com/adobe-india-women-in-technology-scholarship/

    read more