# Prerequisites Source: [https://docs.qualcomm.com/doc/80-70020-50/topic/prerequisites-for-python-sample-applications.html](https://docs.qualcomm.com/doc/80-70020-50/topic/prerequisites-for-python-sample-applications.html) 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 /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-70020-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: - For Qualcomm Linux: export XDG_RUNTIME_DIR=/dev/socket/weston && export WAYLAND_DISPLAY=wayland-1Copy to clipboard - For Ubuntu Server: export XDG_RUNTIME_DIR=/run/user/$(id -u ubuntu)/ && export WAYLAND_DISPLAY=wayland-1Copy 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 root@:/etc/media/Copy to clipboard - To activate camera, run `setenforce 0` in the target device shell. If you face issues with camera or display, see [Camera troubleshooting](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-17/troubleshooting.html) and [Display troubleshooting](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-18/debug.html). ## See also - [Camera Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-17/camera-overview.html) - [Video Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-20/overview.html) - [Audio Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-70020-16/overview.html) **Parent Topic:** [Python applications](https://docs.qualcomm.com/doc/80-70020-50/topic/python-sample-applications.html) Last Published: Jan 30, 2026 [Previous Topic Python applications](https://docs.qualcomm.com/bundle/publicresource/80-70020-50/topics/python-sample-applications.md) [Next Topic Camera encoding](https://docs.qualcomm.com/bundle/publicresource/80-70020-50/topics/camera-encode.md)