# 前提条件

Source: [https://docs.qualcomm.com/doc/80-70022-50SC/topic/mm_sample_apps_prerequisites.html](https://docs.qualcomm.com/doc/80-70022-50SC/topic/mm_sample_apps_prerequisites.html)

- 针对 Qualcomm Linux 1.6 或 Ubuntu Server，可参考[开始使用 Qualcomm IM SDK](https://docs.qualcomm.com/bundle/publicresource/topics/80-70022-51/install-sdk.html)。
- 在您的 Qualcomm Linux 或 Ubuntu 上激活 SSH，以便使用 SSH 登录并连接到目标设备。有关说明，请参阅：
    - [使用 SSH 登录](https://docs.qualcomm.com/bundle/publicresource/topics/80-70022-254/how_to.html#use-ssh) Qualcomm Linux
    - [使用 SSH 登录](https://docs.qualcomm.com/bundle/publicresource/topics/80-90441-1/Use_Ubuntu_on_RB3_Gen2_3.html#sign-in-to-the-rb3-gen-2-console-using-ssh) Ubuntu Server

Note: 如果已设置 SSH 并连接 Wi-Fi，请跳过此步骤。
- 使用 HDMI 端口将显示器连接到设备。有关说明，请参见[设置 HDMI 显示器](https://docs.qualcomm.com/bundle/publicresource/topics/80-70022-18/samples.html)。
- 使用 SSH 登录目标设备。
- 在目标设备的终端中，从目标设备的 SSH shell 运行以下命令以激活主机上的显示器：
    - 对于 Linux：

            export XDG_RUNTIME_DIR=/dev/socket/weston && export WAYLAND_DISPLAY=wayland-1Copy to clipboard
    - 对于 Ubuntu Server：

            export XDG_RUNTIME_DIR=/run/user/$(id -u ubuntu)/ && export WAYLAND_DISPLAY=wayland-1 Copy to clipboard
- 连接扬声器以激活目标设备上的音频。有关说明，请参见[设置音频硬件](https://docs.qualcomm.com/bundle/publicresource/topics/80-70022-16/enable-audio.html)。
    如果您遇到摄像头或显示器问题，请参阅[摄像头问题排查](https://docs.qualcomm.com/bundle/publicresource/topics/80-70022-17/troubleshooting.html)和[显示问题排查](https://docs.qualcomm.com/bundle/publicresource/topics/80-70022-18/debug.html)。

**Parent Topic:** [运行多媒体示例应用程序](https://docs.qualcomm.com/doc/80-70022-50SC/topic/multimedia-sample-applications.html)

Last Published: Nov 05, 2025

[Previous Topic
运行多媒体示例应用程序](https://docs.qualcomm.com/bundle/publicresource/80-70022-50SC/topics/multimedia-sample-applications.md) [Next Topic
运行摄像头的示例应用程序](https://docs.qualcomm.com/bundle/publicresource/80-70022-50SC/topics/camera-sample-applications.md)