Keep processes running after ending ssh session

  1. Create a ssh connection to your linux station.
  2. Type screen and then start the process you want. (assumption, screen is installed)
  3. Press Ctrl-a and then Ctrl-Shift-D.
  4. You can now log out of the ssh session.
  5. In case you can come-back later you can type screen -r. This will resume your screen session and you can see the output of your processes.

Headless Raspberry Pi

Step 1. Download a lite Raspbian image

Download the version you need. As we want to install a headless version download the Raspian XXXXX Lite version.

Step 2. Copy the image

From a Linux terminal use the following command to find your SD Card:

sudo fdisk -l

This will show you something like

Disk /dev/sdc 14.86 Gib ......

Ensure you select here the correct disk.

Afterwards copy the image with the following comand. Replace /dev/sdX by the correct path.

sudo dd bs=4M if=2019-07-10-raspbian-buster.img of=/dev/sdX conv=fsync

Step 3. Enable ssh

To activate ssh at the first start you just have to create a file ssh in the boot folder.

touch /run/media/your_username/boot/ssh

The path above might be different on your system.

Step 4. Add network info

Create a file in /run/media/your_username/boot/ called: wpa_supplicant.conf.

sudo nano /run/media/your_username/boot/wpa_supplicant.conf

Then paste the following into it (replace your country code, SSID and Password):

ctrl_interface=DIR=/var/run/wpa_supplicantĀ GROUP=netdev 
{ ssid="network SSID" 
  psk="network password" 

Step 5. Find your Raspberry Pi in your network

One solution is to login to your router.

In case you do not have access to your router you can scan your ip range with nmap. Use the following command and search for your Raspberry Pi:

sudo nmap -sP

Adjust to your ip range. In many cases it is or

Step 6. Login to your Raspberry Pi

Use the following command to login:

ssh pi@

Password by default: raspberry