# Setting Up the Environment - [Environment Requirements](#section179175261196) - [Hardware](#section5840424125014) - [Software](#section965634210501) - [Installing Linux Build Tools](#section182916865219) - [Changing Linux Shell to Bash](#section1715027152617) - [Installing Basic Software Used for Compilation and Building \(Required Only for Ubuntu 20+\)](#section45512412251) - [Installing File Packing Tools and JVM](#section16199102083717) ## Environment Requirements ### Hardware - Hi3516D V300 IoT camera development board - USB-to-serial cable and network cable \(The Windows workstation is connected to the Hi3516D V300 development board through the USB-to-serial cable and network cable.\) The following figure shows the hardware connections. **Figure 1** Hardware connections ![](figures/矩形备份-292.png) ### Software >![](public_sys-resources/icon-notice.gif) **NOTICE:** >This section describes how to use an installation package to set up the compilation and development environment. If you are going to use Docker to set up the environment, skip this section and [Installing Linux Build Tools](#section182916865219). The following table describes the tools required for setting up the general environment for a Linux server of the Hi3516 development board and how to obtain these tools. **Table 1** Development tools and obtaining methods

Development Tool

Description

How to Obtain

bash

Processes CLI commands.

System configuration

Basic software package for compilation and building (required only for Ubuntu 20+)

Provides a basic software package for compilation and building.

Internet

dosfstools, mtools, and mtd-utils

Pack files.

apt-get install

Java virtual machine (JVM)

Compiles, debugs, and runs Java programs.

apt-get install

## Installing Linux Build Tools >![](public_sys-resources/icon-notice.gif) **NOTICE:** >- If you acquire the source code using an HPM component or HPM CLI tool, you do not need to install compilation tools like **LLVM** and **hc-gen**. >- \(Recommended\) If you obtain the source code via the mirror site or code repository, install **hc-gen**. When installing the compilation tool, ensure that its environment variable path is unique. ### Changing Linux Shell to Bash Check whether bash is used as the shell. ``` ls -l /bin/sh ``` If **/bin/sh -\> bash** is not displayed, do as follows to change shell to bash. **Method 1:** Run the following command on the device and then click **No**. ``` sudo dpkg-reconfigure dash ``` **Method 2:** Run the first command to delete **sh** and then run the second command to create a new soft link. ``` sudo rm -rf /bin/sh sudo ln -s /bin/bash /bin/sh ``` ### Installing Basic Software Used for Compilation and Building \(Required Only for Ubuntu 20+\) Install the software. ``` sudo apt-get install build-essential gcc g++ make zlib* libffi-dev ``` ### Installing File Packing Tools and JVM 1. Start a Linux server. 2. Install the dosfstools, mtools, mtd-utils, Java Runtime Environment \(JRE\), and Java SDK. ``` sudo apt-get install dosfstools mtools mtd-utils default-jre default-jdk ```