# Exported app on a headless Pi 4 with television connected to HDMI port – how to set display?

**URL:** <https://discourse.processing.org/t/exported-app-on-a-headless-pi-4-with-television-connected-to-hdmi-port-how-to-set-display/43438>\
**Category:** Processing for Pi\
**Created:** [December 10, 2023, 9:51pm UTC](https://discourse.processing.org/t/exported-app-on-a-headless-pi-4-with-television-connected-to-hdmi-port-how-to-set-display/43438 "2023-12-10T21:51:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![antti404](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@antti404](https://discourse.processing.org/u/antti404)\
**Post date:** [December 10, 2023, 9:51pm UTC](https://discourse.processing.org/t/exported-app-on-a-headless-pi-4-with-television-connected-to-hdmi-port-how-to-set-display/43438/1 "2023-12-10T21:51:08Z")

</div>

Hello! Is there a way to define an external display for an exported Processing app?

My scenario: I have a headless Raspberry Pi 4 I use as a video player connected to a 4K television. The Pi does not have a keyboard or a mouse and does not have any GUI system installed. I have exported a Raspberry Pi Processing app on another computer and transferred it to the Pi.

When I run the app on my Pi in an SSH session (the only way to access the Pi) I get the following:

_Cannot run sketch without a display. Read this for possible solutions:_  
_[Running without a Display · processing/processing Wiki · GitHub](https://github.com/processing/processing/wiki/Running-without-a-Display)_

Is there a way to have the sketch use the television connected to one of the HDMI ports on the Pi as the display?
