# 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 / 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-70030-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 - Run the following command on your Ubuntu device to ensure that the `weston-autostart` is installed: > > > > > > > > sudo apt install weston-autostart > > Copy to clipboard > > > > Uninstall the `weston-autostart` package after you've completed running the sample applications to restore the default desktop environment > > > > > > > > > sudo apt remove weston-autostart > > Copy to clipboard > > > > > > Note > > > > > > Sample applications with GNOME display will be enabled in a later release. - 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 If you face issues with camera or display, see [Camera troubleshooting](https://docs.qualcomm.com/bundle/publicresource/topics/80-70030-17/troubleshooting.html) and [Display troubleshooting](https://docs.qualcomm.com/bundle/publicresource/topics/80-70030-18/debug.html). ## See also - [Camera Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-70030-17/camera-overview.html) - [Video Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-70030-20/overview.html) - [Audio Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-70030-16/overview.html) Last Published: Oct 06, 2026 [Previous Topic Run Python-based applications](https://docs.qualcomm.com/bundle/publicresource/80-70030-50/topics/python-sample-applications.md) [Next Topic Camera encoding](https://docs.qualcomm.com/bundle/publicresource/80-70030-50/topics/camera-encode.md)