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
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
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.
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\midnightAfter 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:
\midnightcd /Woluminy/boot
\midnightNow create an empty file named "ssh":
\midnighttokar ssh
\midnightThis 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.
\midnightGo to the startup folder:
\midnightcd /Woluminy/boot
\midnightAnd create a file called wpa_supplicant.conf. Add the following to this file:
\midnightTil RaspbianJessie:\midnight
network={\n ssid="DIT_NETWORK_NAME"\n psk="DIT_PASSWORD"\n key_mgmt=WPA-PSK\n}
\midnightFor 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}
\midnightYou must add your wireless network name and password.
\midnightAgain, 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.
\midnightraspberry ping
\midnightIf you have multiple Pis, you may need to scan the network with nmap and locate the Pis.
\midnightnmap-sn 192.168.1.0/24
\midnightYou 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:
\midnightssh pi@192.168.1.183
\midnightYou 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\midnightNow create a folder where you want to place the mount. I have to wear/Tomy/pi.
\midnightsudo mkdir /Volumes/pi
\midnightNow create an assembly.
\midnightsudo 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? ›- Download, install and launch VNC Viewer.
- Select New connection from the File menu.
- Enter the host name (ex: raspberrypi. ...
- Click Ok.
- Double-click on the connection icon to connect.
- Click Ok if you are shown a security warning.
- Enter the Pi's username and password when prompted.
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? ›- Typically your router will sit on http://192.168.1.1 . ...
- You will now need to log in to your router. ...
- Once you are within your routers page, search for a list of connected devices.
- Open the terminal application.
- You must log in as root.
- Use the following commands to start the sshd service: /etc/init.d/sshd start. OR (for modern Linux distro with systemd) ...
- In some cases, the actual script name is different. For example, it is ssh.service on a Debian/Ubuntu Linux.
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.
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.
- A Raspberry Pi computer with an SD card or micro SD card.
- A monitor with a cable (and, if needed, an HDMI adaptor)
- A USB keyboard and mouse.
- A power supply.
- Headphones or speakers (optional)
- An ethernet cable (optional)
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? ›- Insert your USB storage device into your computer.
- Locate the device in the file explorer. ...
- Move any files you want to transfer to the Raspberry Pi into the USB storage device folder.
- Unmount the and remove the USB storage device from the computer and insert it into one of the USB ports of the Raspberry Pi.
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? ›
- Asus VP28UQG. ...
- SunFounder 13.3-inch Raspberry Pi Display. ...
- Raspberry Pi 7" Touch Screen Display - 800x480 portable display. ...
- UCTRONICS 5-Inch Touch Screen for Raspberry Pi 4. ...
- JUN-ELECTRON Raspberry Pi 4 Touch Screen with Case. ...
- UPERFECT 7-inch Touchscreen Display with Case.
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? ›- Select “Boot / Auto Login”
- Select “Console”. The autologin options are a security risk.
- 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.
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.
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? ›- Step 1: Generate SSH Keys. Open the terminal on your local machine. ...
- Step 2: Name your SSH keys. ...
- Step 3: Enter a passphrase (optional) ...
- Step 4: Move the public key to the remote machine. ...
- Step 5: Test your connection.
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? ›- Step 1: Share Your PC Wifi Connection. right click over WINDOWS icon on bottom left corner, and select Network Connections. ...
- Step 2: Establish Ethernet Cable Connection Between Your PC and Raspberry. ...
- Step 3: Find Your Raspberry IP. ...
- Step 4: Connect to Raspberry.
- Run the Raspberry Pi Imager application. ...
- Choose Raspberry Pi OS Image on the Raspberry Pi. ...
- Choose the Storage. ...
- Write the Raspberry Pi OS image to the storage. ...
- Raspberry Pi OS image is being written to the USB storage.
- Raspberry Pi OS image is being verified.
- 1 Insert SD card. See page 3 for how to. ...
- 3 Connect input. Plug in a USB keyboard. ...
- 4 Connect network. Connect to your wired. ...
- 5 Power up. Plug in the micro USB. ...
- Download the Raspberry Pi operating system. ...
- Unzip the file that you just downloaded. ...
- Download the Win32DiskImager software. ...
- Writing Raspbian to the SD card.
- Insert micro SD card.
- Connect mouse & keyboard.
- Connect screen.
- Connect network cable (optional)
- Connect power.
- Follow on-screen instructions.
- Put the SD card in the Raspberry-Pi and connect the Raspberry-Pi with USB cable for power supply.
- Connect your laptop with the same Wifi, whose credentials are given in wpa_supplicant file.
- We can check and verfiy that Rasperry-Pi gets automatically connected to the Wifi.
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.
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.