Headless Raspbian Setup

Wireless

After flashing Raspbian to the SD Card, but before installing into the Raspberry Pi, create a new file called wpa_supplicant.conf with the following content:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
    ssid="SSID"
    psk="WIFI_PASSWORD"
    key_mgmt=WPA-PSK
}

SSH

To enable ssh, create a new file called ssh on the root of the SD Card. The file can be blank.

VNC

To enable VNC Server

sudo raspi-config

Select interfaces -> enable vnc

To change the VNC Resolution you will need to edit /boot/config.txt and change the framebuffer_width and framebuffer_height.

framebuffer_width=1900
framebuffer_height=1024

One Reply to “Headless Raspbian Setup”

  1. Hello Matt,
    I tried this out with a raspi4, which should become a server in my home network. It does not work for me. Raspi is still waiting to get configured with a terminal. With raspi 0 this does work quite fine. I tried it also with raspi3, same result as raspi4, the raspi waits that installation is completed by hand using a terminal and keyboard.
    Thx a lot
    Yours
    Walter

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.