# Prerequisites

Complete these preconditions before running the Python-based sample applications.

- In the terminal of the target device, run the following commands in a shell to create a directory:

mount -o remount,rw /usr
        Copy to clipboard

mkdir -p /etc/media/
        Copy to clipboard
- Ensure that the model and label files are available on the device. For instructions, see [Prerequisites](https://docs.qualcomm.com/doc/80-70029-50/topic/download-model-and-label-files.html).
- Rename the model and label files according to the application in use.
- In the terminal of the target device, run the following command to activate the display:

export XDG_RUNTIME_DIR=/dev/socket/weston && export WAYLAND_DISPLAY=wayland-1
        Copy to clipboard
- In the terminal of the host computer, run the following command to push the files from the host computer to the target device:

scp <video.mp4> root@<IP address of target device>:/etc/media/
        Copy to clipboard

If you face issues with camera or display, see [Camera troubleshooting](https://docs.qualcomm.com/bundle/publicresource/topics/80-70029-17/troubleshooting.html) and [Display troubleshooting](https://docs.qualcomm.com/bundle/publicresource/topics/80-70029-18/debug.html).

## See also

- [Camera Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-70029-17/camera-overview.html)
- [Video Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-70029-20/overview.html)
- [Audio Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-70029-16/overview.html)

Last Published: Apr 02, 2026

[Previous Topic
Run Python-based applications](https://docs.qualcomm.com/bundle/publicresource/80-70029-50/topics/python-sample-applications.md) [Next Topic
Camera encoding](https://docs.qualcomm.com/bundle/publicresource/80-70029-50/topics/camera-encode.md)