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 ...
scruss's user avatar
  • 9,038
130 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....
Yahor's user avatar
  • 1,401
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 ...
aibrahim's user avatar
  • 757
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 ...
raphael's user avatar
  • 298
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 ...
jake's user avatar
  • 1,347
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 ( ...
Mike Redrobe's user avatar
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 ...
Ian Zurutuza's user avatar
12 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 ...
Jim Danner's user avatar
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 ...
sonofusion82's user avatar
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
Ned McClain's user avatar
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 ...
Milliways's user avatar
  • 59.5k
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 ...
bomben's user avatar
  • 309
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 ...
MrWorldWide's user avatar
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.
Dan's user avatar
  • 71
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 ...
Thor Schueler's user avatar
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.
Ingo's user avatar
  • 42k
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 ...
Steve Robillard's user avatar
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.
Christian's user avatar
  • 259
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 ...
techraf's user avatar
  • 4,319
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 ...
larsks's user avatar
  • 656
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, ...
Philip Couling's user avatar
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 ...
JRI's user avatar
  • 475
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 ...
Ciro Santilli OurBigBook.com's user avatar
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/...
rynop's user avatar
  • 151
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 ...
gerryamurphy's user avatar
4 votes
Accepted

Wireless issues headlessly setting up Pi Zero

169.254.0.0/16 is a fallback address range which hosts can use when they don't get a reply from the DHCP server. If you force the pi to use 169.254.1.1, you'll have to add a 169.254.x.x address to ...
John La Rooy's user avatar
  • 11.9k
4 votes

Is it possible to access pi on my laptop through wifi?

You shouldn't need to do anything different to use wifi. As long as you set up your wifi correctly, VNC and SSH will work exactly the same as they did with ethernet.
Patrick Cook's user avatar
  • 6,365
4 votes

I failed to remote connect to Raspberry Pi 3 from Ubuntu

The main problem is that the Raspberri Pi runs RealVnc as server. Lots of answers suggest to connect using RealVncViewer. But RealVnc is not really free, it has a free version, and uses special ...
Roland's user avatar
  • 238
4 votes

SSH connection refused even though ssh file is in /boot

I had the same issue, I just renamed my SSH file to ssh (all small). and yes you've to do this before your first boot
Arkil Shaikh's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible