> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up the environment for running sample applications

To successfully run the sample applications provided by the QIR SDK, you must complete the following settings on the host environment and the device to ensure proper running of the subsequent steps.

## Set up the device

Get the device ready for running sample applications by completing the following configurations:

<Tabs>
  <Tab title="IQ-9075 EVK">
    1. Navigate to [Set up the device](../../Linux/devices/iq9075-evk/set-up-the-device) of IQ-9075 documentation.
    2. Complete the following settings:

       a. [Set up the debug UART](../../Linux/devices/iq9075-evk/set-up-the-device#set-up-the-debug-uart).

       b. Connect the device to a network according to [Connect to the network](../../Linux/devices/iq9075-evk/set-up-the-device#connect-to-the-network).

       c. Connect to the device SSH shell according to [Connect over SSH](../../Linux/devices/iq9075-evk/set-up-the-device#connect-over-ssh).
  </Tab>

  <Tab title="IQ-8275 EVK">
    1. Navigate to [Set up the device](../../Linux/devices/iq8275-evk/set-up-the-device) of IQ-8275 documentation.
    2. Complete the following settings:

       a. [Set up the debug UART](../../Linux/devices/iq8275-evk/set-up-the-device#set-up-the-debug-uart).

       b. Connect the device to a network according to [Connect to the network](../../Linux/devices/iq8275-evk/set-up-the-device#connect-to-the-network).

       c. Connect to the device SSH shell according to [Connect over SSH](../../Linux/devices/iq8275-evk/set-up-the-device#connect-over-ssh).
  </Tab>
</Tabs>

## Set up the host computer

Ensure that the Ubuntu host and the device are in the same network by running `ping <device IP address>` on both the host computer and device.

```python theme={null}
ping <device/host IP address>
```

## **Set up the host Docker**

The sample applications use ROS 2 Jazzy for communication on the host. To isolate the impact of the host's Ubuntu version on ROS communication, perform the following steps to configure the Ubuntu 24.04 Docker environment.

1. Download `qrb_ros_simulation` and the mesh files.
   ```powershell theme={null}
   mkdir -p ~/qrb_ros_simulation_ws
   cd ~/qrb_ros_simulation_ws
   git clone https://github.com/qualcomm-qrb-ros/qrb_ros_simulation.git
   cd qrb_ros_simulation
   git checkout -b ef09f5e55afd7ca856d4c095e5ace9fd66124c76
   ```
2. Build the local Docker image.

   ```python theme={null}
   chmod +x scripts/docker_build.sh
   bash ./scripts/docker_build.sh
   ```

   <Note>
     **Note**

     If you encounter issues with Docker, see [Troubleshoot common issues](./troubleshoot).
   </Note>
3. Start a Docker container.
   ```python theme={null}
   chmod +x scripts/docker_run.sh
   bash ./scripts/docker_run.sh
   ```
4. Enable SSH service in the Docker container.
   ```powershell theme={null}
   # Set the password of user root
   (docker) passwd
   # Enable SSH service
   (docker) service ssh start
   ```
5. Open a new terminal and sign in to the Docker container using SSH.
   ```python theme={null}
   # The host IP where Docker is running
   ssh -X -p 222 root@YOUR_HOST_IP
   ```
6. Set the `DISPLAY` variable.
   ```python theme={null}
   # YOUR_HOST_IP is the IP address of the Host where you want to view the sample output.
   (ssh) source /opt/ros/jazzy/setup.bash
   (ssh) export DISPLAY=YOUR_HOST_IP:0
   (ssh) export ROS_DOMAIN_ID=123
   (ssh) rqt
   ```

You have now built the Docker environment for ROS 2 Jazzy. If everything goes well, you can see the `rqt` window on your display.

<Note>
  **Note**

  For how to use `rqt` to view the running effect of the sample applications, see the steps of each sample application.
</Note>
