Navigation

    MakerGram Logo

    MakerGram

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups

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

    Raspberry Pi
    putty raspberrypi vnc
    3
    5
    162
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Abhay
      Abhay last edited by

      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.

      1 Reply Last reply Reply Quote 4
      • salmanfaris
        salmanfaris last edited by

        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

        Abhay 1 Reply Last reply Reply Quote 2
        • Abhay
          Abhay @salmanfaris last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • kowshik1729
            kowshik1729 last edited by

            @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. 😊 😊

            Abhay 1 Reply Last reply Reply Quote 1
            • Abhay
              Abhay @kowshik1729 last edited by

              @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

              1 Reply Last reply Reply Quote 2
              • First post
                Last post

              Recent Posts

              • @Suhailjr But I think since it's not a plug and plug play system and it will laying on the PCB for the long term, it might be fine. for me, it's similar to the Intel Edison and the PICO-IMX7 System-on-Module

                dade502a-71f6-4da0-bd7d-0e9a0b602cb0-image.png

                a4b8898f-90d4-4a34-ba5d-81ab76fda904-image.png

                • read more
              • @salmanfaris at last they update their design. T
                What you think on the updated connector. I felt like its more fragile and high chance for corottion issue due to humidity for long term use.

                • read more
              • Built on the same 64-bit quad-core BCM2711 application processor as Raspberry Pi 4, Compute Module 4 delivers a step-change in performance over its predecessors: faster CPU cores, better multimedia, more interfacing capabilities, and, for the first time, a choice of RAM densities and a wireless connectivity option.

                3094f292-3301-4364-a444-d828f6e77ff8-image.png

                You can find detailed specs here,

                1.5GHz quad-core 64-bit ARM Cortex-A72 CPU VideoCore VI graphics, supporting OpenGL ES 3.x 4Kp60 hardware decode of H.265 (HEVC) video 1080p60 hardware decode, and 1080p30 hardware encode of H.264 (AVC) video Dual HDMI interfaces, at resolutions up to 4K Single-lane PCI Express 2.0 interface Dual MIPI DSI display, and dual MIPI CSI-2 camera interfaces 1GB, 2GB, 4GB or 8GB LPDDR4-3200 SDRAM Optional 8GB, 16GB or 32GB eMMC Flash storage Optional 2.4GHz and 5GHz IEEE 802.11b/g/n/ac wireless LAN and Bluetooth 5.0 Gigabit Ethernet PHY with IEEE 1588 support 28 GPIO pins, with up to 6 × UART, 6 × I2C and 5 × SPI

                31354fad-6332-40e8-b324-53e0aa5dbace-image.png

                Compute Module 4 IO Board
                89a3b68b-bb74-4002-9c2b-d32c2e1450b3-image.png

                The IO board provides:

                Two full-size HDMI ports Gigabit Ethernet jack Two USB 2.0 ports MicroSD card socket (only for use with Lite, no-eMMC Compute Module 4 variants) PCI Express Gen 2 x1 socket HAT footprint with 40-pin GPIO connector and PoE header 12V input via barrel jack (supports up to 26V if PCIe unused) Camera and display FPC connectors Real-time clock with battery backup

                More details:
                https://www.raspberrypi.org/products/compute-module-4/?variant=raspberry-pi-cm4001000, https://www.raspberrypi.org/blog/raspberry-pi-compute-module-4/

                • read more
              • https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/

                This link has even more extensive ways to do it

                • read more
              • Hi @Akhil I found the following answer in one of the forums. here is the link to the thread.

                The way that I've seen most people do it (have a look on the Raspberry Pi forums), and have done myself with success is using /etc/rc.local.

                All you need to do here is put ./myscript in the rc.local text file. If it's in python, put python myscript.py.

                This literally is "a simple solution, (like dropping my script in some "startup" directory or something similar)"- maybe search on the forums when you're having questions as well, this solution came up on the first 4 results of a google search!

                • read more
              By MakerGram | A XiStart Initiative | Built with ♥ NodeBB
              Copyright © 2020 MakerGram, All rights reserved.
              Privacy Policy | Terms & Conditions | Disclaimer | Code of Conduct