Setting Raspberry Pi with Laptop

Requirements

Raspberry Pi (all models)
Memory card (16GB or larger recommended)
SD Card adapter
LAN cable
Power adapter

Disclaimer:

You can use any operating system of your choice. I’ll be demonstrating with Arch Linux, but the steps…


This content originally appeared on DEV Community and was authored by Amal Satheesan

Requirements

  1. Raspberry Pi (all models)
  2. Memory card (16GB or larger recommended)
  3. SD Card adapter
  4. LAN cable
  5. Power adapter

Disclaimer:

You can use any operating system of your choice. I'll be demonstrating with Arch Linux, but the steps are applicable across different OSes.

Installing the Operating System

Start by downloading your preferred Raspberry Pi operating system here. If you prefer another ARM-based OS, feel free to download it instead.

Flashing the OS

To flash the OS onto your SD card, download Raspberry Pi Imager from here or from their GitHub repository for other systems.

  1. Connect the SD card to your computer.
  2. Open Raspberry Pi Imager.
  3. Select your device.
  4. Choose the downloaded OS.
  5. Select the SD card as the storage location.
  6. Configure hostname, username, and password.
  7. Enable SSH.
  8. Write the image to the SD card.

Setting Up Remote Access

After flashing:

  • Create an empty file named ssh (without an extension) in the bootfs directory of the SD card.
  • Eject the SD card and insert it into your Raspberry Pi.
  • Power on the Raspberry Pi.
  • Connect your laptop to the Raspberry Pi using a LAN cable.

Using PuTTY and VNC Viewer

Download PuTTY for SSH access and VNC Viewer for a graphical interface.

  1. Open PuTTY and connect using <hostname>.local.
  2. Accept the connection and log in with the previously set credentials.

Enabling VNC

To enable VNC for graphical access:

sudo raspi-config

Navigate to:

  1. Display options: Set a resolution.
  2. Interface options: Enable VNC.

Access VNC by typing <hostname>.local into your browser's address bar.

Image description

Logging in via Command Line/Terminal

To access the Raspberry Pi via terminal:

ssh <username>@<hostname>.local

or

ssh <username>@<ip_address_of_pi>

Stay tuned for more exciting projects and tutorials in my Raspberry Pi series! Happy tinkering!


This content originally appeared on DEV Community and was authored by Amal Satheesan


Print Share Comment Cite Upload Translate Updates
APA

Amal Satheesan | Sciencx (2024-06-27T17:48:52+00:00) Setting Raspberry Pi with Laptop. Retrieved from https://www.scien.cx/2024/06/27/setting-raspberry-pi-with-laptop/

MLA
" » Setting Raspberry Pi with Laptop." Amal Satheesan | Sciencx - Thursday June 27, 2024, https://www.scien.cx/2024/06/27/setting-raspberry-pi-with-laptop/
HARVARD
Amal Satheesan | Sciencx Thursday June 27, 2024 » Setting Raspberry Pi with Laptop., viewed ,<https://www.scien.cx/2024/06/27/setting-raspberry-pi-with-laptop/>
VANCOUVER
Amal Satheesan | Sciencx - » Setting Raspberry Pi with Laptop. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/06/27/setting-raspberry-pi-with-laptop/
CHICAGO
" » Setting Raspberry Pi with Laptop." Amal Satheesan | Sciencx - Accessed . https://www.scien.cx/2024/06/27/setting-raspberry-pi-with-laptop/
IEEE
" » Setting Raspberry Pi with Laptop." Amal Satheesan | Sciencx [Online]. Available: https://www.scien.cx/2024/06/27/setting-raspberry-pi-with-laptop/. [Accessed: ]
rf:citation
» Setting Raspberry Pi with Laptop | Amal Satheesan | Sciencx | https://www.scien.cx/2024/06/27/setting-raspberry-pi-with-laptop/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.