How to set up a Raspberry Pi without a keyboard, monitor or mouse (2023)

To speak

4

Favorite

4 You must use

How to set up a Raspberry Pi without a keyboard, monitor or mouse (1)

How to set up a Raspberry Pi without a keyboard, monitor or mouse (2)Jan

(

304

)

5 minutes

To speak

Favorite

4

you need 4

If you don't have an extra keyboard and monitor, or generally prefer to work on the command line, you'll benefit from the Raspberry Pi's headless setup. In this case, headless simply means that we will configure and use the Raspberry Pi without a screen or other GUI. This guide will take you through setting up your headless Raspberry Pi.

I recommend using Raspberry Pi 3/4 or Raspberry PI Zero W as they have WiFi built in. If you're using a different version of the Pi, you'll need tododaj adapter USB Raspberry Pi WiFi.

In addition to the Pi, you'll need a power adapter, an SD card, and another computer.

what you need

Interests

How to set up a Raspberry Pi without a keyboard, monitor or mouse (4)malina pi ×1
Personal computer ×1
Raspberry Pi power supply, 2A ×1
MicroSD card, 32 GB ×1

Howchoo is reader friendly. As an Amazon Associate, we may earn a small affiliate commission at no cost to you when you shop through our links.

1

Install the Raspberry Pi OS on the SD card

We have written a detailed guide regardinghow to install the Raspberry Pi operating system on your Raspberry Pi. Follow this guide to download the latest Raspberry Pi operating system to your SD card.

After installing the Raspberry Pi OS on the card, leave the SD card in the computer. We will do most of the rest of the configuration from here.

2

enable SSH

To enable SSH, first navigate to the startup folder:

cd /Woluminy/boot

Now create an empty file named "ssh":

tokar ssh

This allows you to SSH while the Pi boots. If you need more information about this process, check out the full guide toenable SSH on Raspberry Pi OS without screen.

3

Turn on Wi-Fi

To connect via SSH to your Pi, you must be connected to your local network. You can of course use Ethernet, but if you're using a Raspberry Pi 3, it has built-in Wi-Fi. So let's add our Wi-Fi setup to the Pi so it's available when it boots.

Go to the startup folder:

cd /Woluminy/boot

And create a file called wpa_supplicant.conf. Add the following to this file:

Til RaspbianJessie:

network={ ssid="DIT_NETWORK_NAME" psk="DIT_PASSWORD" key_mgmt=WPA-PSK}

For Raspbian Buster or Stretch:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdevnetwork={ ssid="DIT_NETWORK_NAME" psk="DIT_PASSWORD" key_mgmt=WPA PSK}

You must add your wireless network name and password.

Again, if you need more information about the process, check out the full guide onhow to set up wifi on raspberry pi without ethernet.

4

Remove the SD card and start the Raspberry Pi

At this point you can access your Raspberry Pi via SSH. Remove the SD card from your computer, then insert it into your Pi and boot up.

5

Find the Pi's IP address

Now we need to find the Pi's IP address. If you only have one Pi on your local network, it's easy. Just use the ping command.

raspberry ping

If you have multiple Pis, you may need to scan the network with nmap and locate the Pis.

nmap-sn 192.168.1.0/24

You must ensure that you are using the correct subnet. Then find your Pi's address in the output. For more information, see the full guidance onfind the IP address of your Raspberry Pi.

6

SSH to the Pi

Once you find the IP address, you can SSH into the Pi using:

ssh pi@192.168.1.183

You must of course change your IP address.

7

(Optional) Mount the Raspberry Pi on your computer

This is not a necessary step, but many people find it better to mount the Pi's file system locally than to work directly on the Pi. We use sshfs to create the mount, so firstinstaller ssfs.

Now create a folder where you want to place the mount. I have to wear/Tomy/pi.

sudo mkdir /Volumes/pi

Now create an assembly.

sudo sshfs -o allow_other pi@192.168.1.183:/ /Woluminy/pi

To speak

Favorite

You have to

How to set up a Raspberry Pi without a keyboard, monitor or mouse (10)

How to set up a Raspberry Pi without a keyboard, monitor or mouse (11)ben

(

11

)

20 minutes

Laptops, smartphones, tablets, even light bulbs – an infinite number of devices now have the ability to connect to your local network and the Internet in general.

To speak

Favorite

You have to

\n\n\n

In addition to the Pi, you'll need a power adapter, an SD card, and another computer.

","datePublished":"2017-05-09T21:21:02+00:00","dateModified":"2021-02-26T18:40:45+00:00","image":["https: //howchoo.com/media/yz/jh/yz/yzjhyzfknte.jpeg?width=1440&auto=webp&quality=70&crop=1:1,inteligentny","https://howchoo.com/media/yz/jh/yz/ yzjhyzfknte.jpeg?width=1440&auto=webp&quality=70&crop=4:3,inteligentny","https://howchoo.com/media/yz/jh/yz/yzjhyzfknte.jpeg?width=1440&auto=webp&quality=70:&crop=16:&crop=16 9,smart","publisher":{"@type":"Organizacja","name":"Howchoo","url":"https://howchoo.com/","logo":{"@ type":"ObjectObject","url":"https://howchoo.com/images/schema-logo.png"}},"author":{"@type":"Osoba","nazwa":" John Galt","image":"https://howchoo.com/media/od/zh/mt/odzhmtfinmq.jpeg?width=80&crop=1:1&auto=webp&quality=70","url":"https:/ /howchoo.com/u/tyler"},"video":null,"tool":[{"@type":"HowTool","name":"Raspberry Pi","url":"https:// howchoo.com/resource/tool/zjc3ngm3nze","requiredQuantity":null},{"@type":"HowToTool","name":"Computer osobisty","url":"/resource/search?q=Osobisty +Komputer","requiredQuantity":null},{"@type":"HowToTool","name":"Fuente de alimentación Raspberry Pi, 2A","url":"https://howchoo.com/resource/ narzędzie /nzy2zmi4yjk","requiredQuantity":null},{"@type":"HowTool","name":"Karta MicroSD, 32 GB","url":"https://howchoo.com/resource/tool / zgixowezotm ","requiredQuantity":null}],"step":[{"@type":"HowToStep","position":1,"name":"Zainstaluj Raspberry Pi OS på karcie SD","url" : "https://howchoo.com/pi/how-to-set-up-raspberry-pi-without-keyboard-monitor-mouse#install-raspberry-pi-os-on-the-sd-card"," billede ":null,"itemListElement":[{"@type":"HowToDirection","position":"1","text":"

We have written a detailed guide regardinghow to install the Raspberry Pi operating system on your Raspberry Pi. Follow this guide to download the latest Raspberry Pi operating system to your SD card.

\midnight\midnight

After installing the Raspberry Pi OS on the card, leave the SD card in the computer. We will do most of the rest of the configuration from here.

"},null]},{"@type":"HowToStep","position":2,"name":"Habilitet til SSH","url":"https://howchoo.com/pi/how-to -configurar-raspberry-pi-sin-teclado-monitor-mouse#habilitar-ssh","image":null,"itemListElement":[{"@type":"HowToDirection","position":"1" ", "tekst:"

To enable SSH, first navigate to the startup folder:

\midnight
cd /Woluminy/boot
\midnight

Now create an empty file named "ssh":

\midnight
tokar ssh
\midnight

This allows you to SSH while the Pi boots. If you need more information about this process, check out the full guide toenable SSH on Raspberry Pi OS without screen.

\midnight"},null]},{"@type":"HowToStep","position":3,"name":"Habilitet WiFi","url":"https://howchoo.com/pi/how-to -configurar-raspberry-pi-sin-teclado-monitor-mouse#habilitar-wifi","image":null,"itemListElement":[{"@type":"HowToDirection","position":"1" ", "tekst":"

To connect via SSH to your Pi, you must be connected to your local network. You can of course use Ethernet, but if you're using a Raspberry Pi 3, it has built-in Wi-Fi. So let's add our Wi-Fi setup to the Pi so it's available when it boots.

\midnight

Go to the startup folder:

\midnight
cd /Woluminy/boot
\midnight

And create a file called wpa_supplicant.conf. Add the following to this file:

\midnight

Til RaspbianJessie:\midnight

network={\n ssid="DIT_NETWORK_NAME"\n psk="DIT_PASSWORD"\n key_mgmt=WPA-PSK\n}
\midnight

For Raspbian Buster or Stretch:\midnight

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev\nnetwork={\n ssid="SU_NOMBRE_DE_RED"\n psk="SU_CONTRASEÑA"\n key_mgmt=WPA-PSK\n}
\midnight

You must add your wireless network name and password.

\midnight

Again, if you need more information about the process, check out the full guide onhow to set up wifi on raspberry pi without ethernet.

\midnight"},null]},{"@type":"HowToStep","position":4,"name":"Demonter SD-kortet og Raspberry Pi","url":"https://howchoo. com/pi/how-to-setup-raspberry-pi-with-keyboard-monitor-mouse#unmount-the-sd-card-and-boot-the-raspberry-pi","image":null," itemListElement" :[{"@type":"HowToDirection","position":"1","text":"

At this point you can access your Raspberry Pi via SSH. Remove the SD card from your computer, then insert it into your Pi and boot up.

"},null]},{"@type":"HowToStep","position":5,"name":"Znajdź adresse IP Pi","url":"https://howchoo.com/ pi /how -to-configure-raspberry-pi-no-keyboard-monitor-mouse#find-pis-ip-adresse","image":null,"itemListElement":[{" @type":"HowToDirection" , "pozycja" :"1","tekst":"

Now we need to find the Pi's IP address. If you only have one Pi on your local network, it's easy. Just use the ping command.

\midnight
raspberry ping
\midnight

If you have multiple Pis, you may need to scan the network with nmap and locate the Pis.

\midnight
nmap-sn 192.168.1.0/24
\midnight

You must ensure that you are using the correct subnet. Then find your Pi's address in the output. For more information, see the full guidance onfind the IP address of your Raspberry Pi.

\midnight"},null]},{"@type":"HowToStep","position":6,"name":"SSH do Pi","url":"https://howchoo.com/pi/how - to-configure-raspberry-pi-no-keyboard-monitor-mouse#ssh-on-pi","image":null,"itemListElement":[{"@type":"HowToDirection","position" :" 1 ","tekst":"

Once you find the IP address, you can SSH into the Pi using:

\midnight
ssh pi@192.168.1.183
\midnight

You must of course change your IP address.

"},null]},{"@type":"HowToStep","position":7,"name":"(Opcjonalnie) Zamontuj Raspberry Pi na swoim computer","url":"https://howchoo . com/pi/how-to-setup-raspberry-pi-without-keyboard-monitor-mouse#Optional-mount-the-raspberry-pi-on-computer","image":null,"itemListElement ": [{ " @type":"HowToDirection","position":"1","text":"

This is not a necessary step, but many people find it better to mount the Pi's file system locally than to work directly on the Pi. We use sshfs to create the mount, so firstinstaller ssfs.

\midnight\midnight

Now create a folder where you want to place the mount. I have to wear/Tomy/pi.

\midnight
sudo mkdir /Volumes/pi
\midnight

Now create an assembly.

\midnight
sudo sshfs -o allow_other pi@192.168.1.183:/ /Woluminy/pi
"},null]}],"totalTime":"PT5M","mainEntityOfPage":{"@type":"WebPage","@id":"https://howchoo.com/pi/how-to- set-up-raspberry-pi-sin-teclado-monitor-mouse"},"headline":"Konfigurer Raspberry Pi i teclado, skærm eller mus","creator":{"@type": "Person", "nombre ":"John Galt","image":"https://howchoo.com/media/od/zh/mt/odzhmtfinmq.jpeg?width=80&crop=1:1&auto=webp&quality=70" ","url" : "https://howchoo.com/u/tyler"}}]

FAQs

How to set up a Raspberry Pi without a keyboard, monitor or mouse? ›

If you don't have an extra keyboard and monitor laying around, or if you generally prefer working on the command line, then you'll benefit from a headless Raspberry Pi setup. In this case, headless simply means that we'll set up and use the Raspberry Pi without any monitor or other GUI.

Can you set up Raspberry Pi without keyboard? ›

If you don't have an extra keyboard and monitor laying around, or if you generally prefer working on the command line, then you'll benefit from a headless Raspberry Pi setup. In this case, headless simply means that we'll set up and use the Raspberry Pi without any monitor or other GUI.

How do I connect my Raspberry Pi without a monitor? ›

On your PC:
  1. Download, install and launch VNC Viewer.
  2. Select New connection from the File menu.
  3. Enter the host name (ex: raspberrypi. ...
  4. Click Ok.
  5. Double-click on the connection icon to connect.
  6. Click Ok if you are shown a security warning.
  7. Enter the Pi's username and password when prompted.
Sep 16, 2022

How to enable SSH on Raspberry Pi without keyboard? ›

If you use your Raspberry Pi without a monitor and keyboard, then the only way to enable SSH in headless mode is to use a blank boot file. For this task, you need to create an empty ssh file on another machine. We will use this file on the Raspbian boot SD card to enable SSH.

Can you use phone as keyboard for Raspberry Pi? ›

Use your iOS device as a remote wireless keyboard and trackpad for your Raspberry Pi and Linux computers too! Send keystrokes and mouse events to Raspberry Pi computers over TCP/IP via a wired or wireless network.

Do you need a mouse for Raspberry Pi? ›

What do you want to do with the RPi? You can run it with only a text console, and then you don't need a mouse, even if you still can use one.

How to enable SSH in Raspberry Pi without monitor? ›

On Linux systems, you can typically open the terminal by pressing CTRL + ALT + T . 4. With the terminal open you can now navigate to your Raspberry Pi's boot directory so that you can enable SSH without a monitor. On Linux and Mac OS, you can navigate to the mounted boot partition using the cd command as shown below.

How do I find my Raspberry Pi IP address without a monitor? ›

One of the easiest ways of finding the IP address of your Raspberry Pi is to check your router's device list.
  1. Typically your router will sit on http://192.168.1.1 . ...
  2. You will now need to log in to your router. ...
  3. Once you are within your routers page, search for a list of connected devices.
Mar 16, 2023

How do I manually start SSH? ›

The procedure is as follows:
  1. Open the terminal application.
  2. You must log in as root.
  3. Use the following commands to start the sshd service: /etc/init.d/sshd start. OR (for modern Linux distro with systemd) ...
  4. In some cases, the actual script name is different. For example, it is ssh.service on a Debian/Ubuntu Linux.
Jan 20, 2023

Can you setup a Raspberry Pi with a Bluetooth keyboard? ›

Hence, it's possible to control the Raspberry Pi 4 without a mess of wires. To do so, you could opt for using a Bluetooth keyboard and mouse. With the Raspberry Pi's Bluetooth functionality, you can also control other Bluetooth devices, such as smart home devices or smartphones.

Will any USB keyboard work with Raspberry Pi? ›

Virtually any USB wired or wireless keyboard should work just fine with the Raspberry Pi. My go-to keyboards for the Raspberry Pi are the official Raspberry Pi Foundation red and white keyboard for desktop use, or the Rii i8+ for Kodi and RetroPie.

Can a Raspberry Pi work as a computer? ›

Living With a Raspberry Pi Isn't Easy Either

As mentioned earlier, a Raspberry Pi works just fine for everyday computing tasks such as web browsing and office applications. However, you're bound to find yourself in a spot of trouble if this is your only computing device.

Does Raspberry Pi need a monitor? ›

A TV or computer screen

To view the Raspberry Pi OS desktop environment, you need a screen, and a cable to link the screen and your Raspberry Pi. The screen can be a TV or a computer monitor. If the screen has built-in speakers, Raspberry Pi is able to use these to play sound.

What do I need to start Raspberry Pi? ›

What you will need
  1. A Raspberry Pi computer with an SD card or micro SD card.
  2. A monitor with a cable (and, if needed, an HDMI adaptor)
  3. A USB keyboard and mouse.
  4. A power supply.
  5. Headphones or speakers (optional)
  6. An ethernet cable (optional)

Is it safe to touch Raspberry Pi? ›

Avoid touching the Raspberry Pi when it is powered on. Hold it by the edges or the ports on top when it is time to pull the power plug out. There is no storage in a Raspberry Pi. Everything is on the SD card.

Can you access a Raspberry Pi from a laptop? ›

This can be done by using Raspberry Pi Wi-Fi. To access Raspberry Pi, we need to connect Raspberry Pi to a wifi network after boot so that we can access it on Laptop using wi-fi network. When Raspberry Pi is connected to the wifi network, we can access it on Laptop by finding its IP address.

How to connect USB to Raspberry Pi? ›

Blog Post
  1. Insert your USB storage device into your computer.
  2. Locate the device in the file explorer. ...
  3. Move any files you want to transfer to the Raspberry Pi into the USB storage device folder.
  4. Unmount the and remove the USB storage device from the computer and insert it into one of the USB ports of the Raspberry Pi.
Feb 11, 2023

Can Raspberry Pi run without HDMI? ›

Connecting to Raspberry-Pi becomes a tough task especially when we do not have an HDMI cable or ethernet cable. In such case we can make use of SSH(Secure Shell) through Putty and VNC viewer. Here is a step by step process of the same: Take a SD card and connect it with your computer.

Does Raspberry Pi need external hardware? ›

This set of IOT Multiple Choice Questions & Answers (MCQs) focuses on “Rasberry Pi”. 1. Does Raspberry Pi need external hardware? Explanation: The RPi can be used without additional hardware (except perhaps a power supply of some kind), it won't be much use as a general computer.

How do I enable HDMI on Raspberry Pi? ›

Enable and disable the HDMI port on the Raspberry Pi: `rpi-hdmi on` to turn on, `rpi-hdmi off` to turn off. X is properly reinitialized when re-enabling.

What can I use as Raspberry Pi screen? ›

Best Raspberry Pi screens
  1. Asus VP28UQG. ...
  2. SunFounder 13.3-inch Raspberry Pi Display. ...
  3. Raspberry Pi 7" Touch Screen Display - 800x480 portable display. ...
  4. UCTRONICS 5-Inch Touch Screen for Raspberry Pi 4. ...
  5. JUN-ELECTRON Raspberry Pi 4 Touch Screen with Case. ...
  6. UPERFECT 7-inch Touchscreen Display with Case.
Nov 14, 2022

Can Raspberry Pi connect to cell phone? ›

With a mobile data plan and an LTE HAT (Hardware Attached on Top) you will be able to connect your Raspberry Pi to a cellular network almost anywhere.

How do I turn my old tablet into a monitor? ›

Use a USB cable to connect your tablet to your PC. Open the app on your devices and select the option "Extend desktop to this display." Select the “Connect” option on your Android tablet to establish the connection between your PC and the tablet.

What does SSH stand for? ›

SSH or Secure Shell is a network communication protocol that enables two computers to communicate (c.f http or hypertext transfer protocol, which is the protocol used to transfer hypertext such as web pages) and share data.

What is a headless Raspberry Pi? ›

A Raspberry Pi is considered headless when you have no monitor or keyboard connected to it. A headless Raspberry Pi can be useful for any situation where you don't want or need access to a monitor and keyboard.

How do I start my Raspberry Pi without GUI? ›

Disable the Raspberry Pi Desktop
  1. Select “Boot / Auto Login”
  2. Select “Console”. The autologin options are a security risk.
  3. The tool will then take you back to the first menu. Select “Finish” and then restart you Pi. Shell back in to make sure everything is working and you're done.
Jan 8, 2022

How to connect to Raspberry Pi via SSH? ›

SSH Into Raspberry Pi From Windows

In the PuTTY dialog, select SSH as the connection type, enter the Raspberry Pi's IP address or hostname in the Host Name (or IP address) box, then click Open. You can also click Save to save the connection details in PuTTY.

What is the default password for Raspberry Pi? ›

Access your account by using the default username “pi” and the default password “raspberry” After logging in, use “passwd” command to change your passcode.

How to set up SSH on terminal? ›

You can start an SSH session in your command prompt by executing ssh user@machine and you will be prompted to enter your password. You can create a Windows Terminal profile that does this on startup by adding the commandline setting to a profile in your settings.json file inside the list of profile objects.

How to set up SSH remotely? ›

How to setup SSH keys
  1. Step 1: Generate SSH Keys. Open the terminal on your local machine. ...
  2. Step 2: Name your SSH keys. ...
  3. Step 3: Enter a passphrase (optional) ...
  4. Step 4: Move the public key to the remote machine. ...
  5. Step 5: Test your connection.
Jan 8, 2017

How to start SSH from command line Raspberry Pi? ›

To enable SSH via the terminal, open a terminal window and enter sudo raspi-config . Now with the arrows select Interfacing Options , navigate to and select SSH , choose Yes , and select Ok .

Can I use any mouse or keyboard on Raspberry Pi? ›

Can you use them with your Raspberry Pi? Wireless keyboards and mice can be used with the Raspberry Pi by simply inserting the USB dongle provided in one USB port on the Raspberry Pi.

How do I use my laptop as a keyboard for my Raspberry Pi? ›

Use a PC As Monitor + Keyboard for Raspberry Pi
  1. Step 1: Share Your PC Wifi Connection. right click over WINDOWS icon on bottom left corner, and select Network Connections. ...
  2. Step 2: Establish Ethernet Cable Connection Between Your PC and Raspberry. ...
  3. Step 3: Find Your Raspberry IP. ...
  4. Step 4: Connect to Raspberry.

How to setup Raspberry Pi step by step? ›

Put the SD card or USB drive you'll use to install Raspberry Pi OS.
  1. Run the Raspberry Pi Imager application. ...
  2. Choose Raspberry Pi OS Image on the Raspberry Pi. ...
  3. Choose the Storage. ...
  4. Write the Raspberry Pi OS image to the storage. ...
  5. Raspberry Pi OS image is being written to the USB storage.
  6. Raspberry Pi OS image is being verified.

What to do when you first get a Raspberry Pi? ›

  1. 1 Insert SD card. See page 3 for how to. ...
  2. 3 Connect input. Plug in a USB keyboard. ...
  3. 4 Connect network. Connect to your wired. ...
  4. 5 Power up. Plug in the micro USB. ...
  5. Download the Raspberry Pi operating system. ...
  6. Unzip the file that you just downloaded. ...
  7. Download the Win32DiskImager software. ...
  8. Writing Raspbian to the SD card.

How do I set up my Raspberry Pi 4 for the first time? ›

Get Started with Raspberry Pi 4 Model B
  1. Insert micro SD card.
  2. Connect mouse & keyboard.
  3. Connect screen.
  4. Connect network cable (optional)
  5. Connect power.
  6. Follow on-screen instructions.

How to start Raspberry Pi without HDMI? ›

  1. Put the SD card in the Raspberry-Pi and connect the Raspberry-Pi with USB cable for power supply.
  2. Connect your laptop with the same Wifi, whose credentials are given in wpa_supplicant file.
  3. We can check and verfiy that Rasperry-Pi gets automatically connected to the Wifi.

Do professionals use Raspberry Pi? ›

Raspberry Pi: 7 uses to consider

"For IT professionals, you can do a lot of coding and development with the Raspberry Pi, making it a great tool for when you want to make something and don't know where to start. Using a Raspberry Pi as the base, you can load everything that you would need on.

Can you configure a Raspberry Pi with a laptop? ›

Yes, you can use an Ethernet cable to connect your Raspberry Pi to your laptop. However, you will need to use a crossover Ethernet cable, and you will need to set up the connection between the two devices.

Can I use laptop screen for Raspberry Pi? ›

To connect a Raspberry Pi to a laptop display, you can simply use an Ethernet cable. The Raspberry Pi's desktop GUI (Graphical User Interface) can be viewed through the laptop display using a 100 Mbps Ethernet connection between the two.

Can Raspberry Pi replace laptop? ›

The Raspberry Pi 4 is a machine made to solve precise tasks. These types of DIY devices are great for retro gaming, robotics, etc. However, the Raspberry Pi 4 still lacks some necessary power to completely replace the personal computer.

References

Top Articles
Latest Posts
Article information

Author: Virgilio Hermann JD

Last Updated: 12/06/2023

Views: 6120

Rating: 4 / 5 (61 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Virgilio Hermann JD

Birthday: 1997-12-21

Address: 6946 Schoen Cove, Sipesshire, MO 55944

Phone: +3763365785260

Job: Accounting Engineer

Hobby: Web surfing, Rafting, Dowsing, Stand-up comedy, Ghost hunting, Swimming, Amateur radio

Introduction: My name is Virgilio Hermann JD, I am a fine, gifted, beautiful, encouraging, kind, talented, zealous person who loves writing and wants to share my knowledge and understanding with you.