307
votes
Accepted
Prepare SD card for Wifi on Headless Pi
There are some great answers here, but many are out of date. Even this one has aged somewhat. There are now (at least) two ways of doing this:
1: Raspberry Pi Imager
The Raspberry Pi Foundation's ...
131
votes
Enabling SSH on RPi without screen - keystrokes for raspi-config?
All you need is to place an empty file named 'ssh' onto the boot (FAT) partition of your SD card (no need to mount ext3). Tested with 2016-11-25-raspbian-jessie-lite.img.
Source: https://www....
19
votes
I failed to remote connect to Raspberry Pi 3 from Ubuntu
later I found out another solution to make it work for Remmina 0.9.99.1. You can change the security authentication for the VNC server to be VNC Password instead of Unix password and create an admin ...
17
votes
Prepare for ssh without a screen
Following massive botnet attacks in 2016 due to IoT devices being easily hacked with default passwords, Raspbian once again comes with SSH turned off by default (source).
The fix is pretty easy, you ...
16
votes
Standard Passwort not Accepted – Headless Setup
There is no standard user and password anymore in the new Raspberry Pi OS image.
https://www.raspberrypi.com/news/raspberry-pi-bullseye-update-april-2022/
To create one a file named userconf has to be ...
15
votes
Prepare SD card for Wifi on Headless Pi
Since November 2016 SSH has been disabled by default in standard Raspbian images for security reasons.
To re-enable it, create a blank file called either ssh or ssh.txt on the sd card boot folder ( ...
14
votes
Accepted
How do I set up wireless connections to Raspbian Stretch?
Raspberry Pi 3 (kernel 4.14.30-v7+)
This post is a collection of notes and tutorials I have used for setting up wireless connections to the Raspberry Pi.
Please let me know if you experience any ...
12
votes
I failed to remote connect to Raspberry Pi 3 from Ubuntu
I've just encountered the issue too.
As an alternative to aibrahim's method if you are doing it remotely via ssh, here's my steps to VNC to display :0.
Setup password using sudo vncpasswd -service
...
11
votes
Use /boot/cmdline.txt for creating first-boot script
For those who prefer a solution involving only scripts dropped into the FAT32 boot partition, here is how to do that. [Edit: The files are now available in a project pi-boot-script.]
As mentioned in ...
10
votes
Accepted
Use /boot/cmdline.txt for creating first-boot script
I created a lightly modified version of Raspberian-light that addresses this need - it executes your custom /boot/firstboot.sh script on first boot:
https://github.com/nmcclain/raspberian-firstboot
8
votes
Accepted
Pi 4B Won't boot without HDMI cable plugged to Monitor
The most likely scenario is that the Pi has booted, but you have asked it to do the impossible i.e. boot to Desktop when there is no default Desktop (an examination of the boot logs would probably ...
8
votes
Accepted
How to install radicale (CardDAV & CalDAV) on a headless RaspberryPi?
Most of this is from the Radicale installation instruction, but I had some troubles getting it right.
Also, this is a good practice for setting up a systemd service and using htpasswd. First, ssh into ...
8
votes
How to change host name before first boot?
If someone is still looking in this thread,
you are now able to change the hostname (among other initial settings) from the Pi Imager before writing your boot drive.
To enable Pi Imager advanced ...
7
votes
Enabling SSH on RPi without screen - keystrokes for raspi-config?
For headless setup, SSH can be enabled by placing a file named 'ssh', without any extension, onto the boot partition of the SD card.
7
votes
Accepted
Is it worth it to upgrade to Jessie on a headless Pi2?
It's important to clarify something about Raspbian for people who aren't otherwise aware: Raspbian is Debian, a GNU/Linux distribution that's been around for ~20 years and is currently on its 8th ...
7
votes
Pi 4B Won't boot without HDMI cable plugged to Monitor
This in fact is a known problem with the Sense-Hat. See https://github.com/astro-pi/python-sense-hat/issues/96 for detail.
Apparently, the Sense-Hat interferes with the resolution auto-detection if ...
7
votes
Accepted
How to change host name before first boot?
To translate the script from Milliways in his answer, change the name in /etc/hostname as you already have done and add or change the entry 127.0.1.1 raspberrypi in /etc/hosts to the new hostname.
6
votes
I failed to remote connect to Raspberry Pi 3 from Ubuntu
The simplest solution is to install RealVNC Viewer. You can download it from here, and it is available for Linux, MacOS and Windows. The issue is with the encryption schemes used by different VNC ...
5
votes
Pi Headless: How to confirm that the Pi is shut down
In Raspberry Pi 3 you can trun off the PWR LED with
echo 0 | sudo tee /sys/class/leds/led0/brightness
If the Pi is shut down, the LED will turn on again.
5
votes
Is the Raspberry Pi suitable for running continuously, 24/7?
As concern over long-term SD card reliability is frequently mentioned (and is a valid concern, especially for low-quality SD cards), there is another approach: initramfs (or initrd).
This requires a ...
5
votes
Accepted
How to connect a headless Raspberry Pi 3 to a Mac?
Assuming you have no hardware connectors, your only point of control is the SD card.
Depending on your current state you might need all or some of the below steps:
You need to take it out of the Pi ...
5
votes
Accepted
How can I troubleshoot kernel panics?
Is there a way to view the entire logs...?
Your Raspberry Pi typically has a serial console enabled (or can be configured to have a serial console) on one of the built-in UARTs, exposed on GPIO pins ...
5
votes
Accepted
Remote full reset (re-install) of a Raspberry
Firstly: doing this by remote is inadvisable especially if, like me, you happen to be 70+ miles from your remote pi. It's a very long drive if you screw it up. When you do this fir the first time, ...
5
votes
Accepted
mDNS for Pi stopped working
nslookup won't be able to find your RPi3 because it uses a DNS lookup, rather than mDNS. i.e. it queries whatever DNS server your laptop is set up to use, which won't be likely to know about your ...
4
votes
Prepare for ssh without a screen
No router + no screen + regular Ethernet cable + RPI 2 + Raspbian Lite 2018-11-13 + Ubuntu 18.10 host
First we must enable the SSH server on the Pi, which is disabled by default for security.
If you ...
4
votes
Prepare SD card for Wifi on Headless Pi
As of RASPBIAN STRETCH you must include ctrl_interface and update_config in wpa_supplicant.conf
To get wifi with ssh on boot do these simple steps on your SD card:
touch /<sd mount point>/boot/...
4
votes
Accepted
How to troubleshoot a headless Pi that boots into emergency mode
I believe an aspect of emergency mode is that the root filesystem is mounted read-only, which is a complication...keep reading.
Connecting a keyboard to the device and running suggested command is ...
4
votes
Accepted
My password doesn't work over ssh
The response you are getting is telling you the answer. You are not providing the correct password. This means one of the following has occurred:
When you attempted to change the password, you did ...
4
votes
My password doesn't work over ssh
This could be related to the default UK keyboard used on the RPi. I used a special character in my password and this converted to " on the default UK keyboard and Locale. Make sure you set the Locale ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
headless × 317ssh × 81
raspbian × 68
wifi × 42
networking × 26
boot × 21
vnc × 19
pi-3 × 17
pi-zero-w × 17
remote × 16
usb × 15
setup × 15
ethernet × 14
pi-4 × 13
raspbian-stretch × 12
pi-zero × 12
hdmi × 11
noobs × 10
raspberry-pi-os × 10
connection × 9
pi-3b+ × 8
server × 8
python × 7
pi-2 × 7
gui × 7