Tested on:Raspberry Pi 2; Raspberry Pi B+; Python 2.7; Raspbian pre Jessie
Prerequisites:Raspberry Pi with Raspbian Jessie and internet connection (see steps 1-7 in the Introduction)
Hardware:Host Computer

Headless: A Raspberry Pi without peripherals over Ethernet

Making experiments and developing applications is way more comfortable if the Raspberry Pi is stripped of unnecessary peripherals:

A headless Raspberry Pi

A headless Raspberry Pi

Headless setup
Plug in the ethernet cable between host and Raspberry Pi. If the host is a router, no configuration should be necessary. If the host is a computer, it must have a wired connection configured as shared connection with DHCP. The Raspberry Pi still needs to be connected to the peripherals.

Now, boot the Raspberry Pi. Only the ip address is required for remote access, so type

in the terminal and note the ip after inet.
Alternatively, installing the Angry IP Scanner on the host machine and scanning for the Raspberry Pis’ IP allows dismissing peripherals from the start.

Shutdown the Raspberry again and unplug all peripherals besides ethernet and power.
Boot it, wait a few seconds, then log in via ssh:

Now, it’s possible to use scp to copy from the host to the Raspberry Pi and back, exchange SSH keys to enable passwordless login/copy or use a Sublime Text 3 plugin for automating scp file transfer.

Assigning an IP manually(optional)
The IP taken from the DHCP router is assigned randomly out of the IP range. It is comfortable to assign a static IP.
Open the file interfaces with sudo nano /etc/network/interfaces and replace the line containing


with X.Y.Z being the first three parts of the hosts IP address. X.Y.Z.50 is now the IP of the Raspberry Pi.

Raspbian Jessie

For setting up a static IP in Raspbian Jessie, follow this tutorial instead.

Angry IP Scanner usage: http://www.knight-of-pi.org/sniff-a-raspberry-angry-ip-scanner
Remote access with SSH: http://www.knight-of-pi.org/remote-control-your-raspberry-pi/
File transfer with SCP: http://www.knight-of-pi.org/scp-copy-linux-raspberry/
SSH key exchange: http://www.knight-of-pi.org/password-free-login-exchange-ssh-keys
Sublime Text 3 configuration: http://www.knight-of-pi.org/basic-sublime-text-3-configuration
Sublime Text 3 scp plugin: http://www.knight-of-pi.org/using-a-host-computer-for-coding-on-the-raspberry-pi
Raspbian Jessie static IP over Ethernet: http://www.knight-of-pi.org/raspbian-jessie-assign-a-static-ip-in-dhcpd-conf-ethernet/
Raspbian Jessie static IP over Ethernet: http://www.knight-of-pi.org/raspbian-jessie-assign-a-static-ip-in-dhcpd-conf-ethernet/

Knight of Pi

Johannes Bergs aka Knight of Pi. Diploma in Bioinformatics, some Webdesign and Python coding then. Living in the beautiful city of Vienna.


Time limit is exhausted. Please reload CAPTCHA.