harmony 鸿蒙Setting Up the Ubuntu Environment
Setting Up the Ubuntu Environment
In embedded development, Windows-based tools, such as Visual Studio Code, are widely used in code editing. Yet, because the source code of most development boards, such as Hi3861 and Hi3516, cannot be built in Windows, these development boards require the Ubuntu build environment.
In the Windows+Ubuntu hybrid build environment, you can enjoy the benefits of both DevEco Device Tool for Windows and DevEco Device Tool for Ubuntu (where Visual Studio Code is optional).
The following describes how to set up the Ubuntu environment.
NOTE
If the Ubuntu system has not been set up yet, set it up on a virtual machine running Windows. For details, see Ubuntu Installation Guide. Then, configure the Ubuntu basic environment.
System Requirements
Ubuntu: Ubuntu 18.04 to 21.10; version 20.04 with 16 GB or larger memory and a 100 GB or larger hard disk is recommended
User name (Ubuntu): cannot contain Chinese characters
DevEco Device Tool: latest and same version installed on both Ubuntu and Windows
NOTE
The following uses DevEco Device Tool of the 3.1 Release version as an example. The supported features and operations vary according to the DevEco Device Tool version. For details, see the User Guide.
Procedure
Make sure the Ubuntu shell environment is bash.
- Run the following command and check whether the command output is bash. If the command output is not bash, go to step 2.
ls -l /bin/sh
- Start the command-line tool, run the following command, enter your password, and select No to set Ubuntu shell to bash.
sudo dpkg-reconfigure dash
Download the latest version of DevEco Device Tool for Linux.
Decompress the DevEco Device Tool software package and assign permission on the folder obtained from the decompression.
- Go to the directory where the DevEco Device Tool software package is stored and run the following command to decompress the software package. In the command, devicetool-linux-tool-{Version}.zip indicates the software package name.
unzip devicetool-linux-tool-{Version}.zip
- Open the folder of the decompressed software package and run the following command to grant the execute permission on the installation file. In the command, devicetool-linux-tool-{Version}.sh indicates the installation file name.
chmod u+x devicetool-linux-tool-{Version}.sh
Run the following command to install DevEco Device Tool, where devicetool-linux-tool-{Version}.sh indicates the installation file name.
sudo ./devicetool-linux-tool-{Version}.sh
- On the page for agreeing to the user agreement and privacy statement, read and agree to the user agreement and privacy statement. You can scroll through the options by pressing the up and down arrow keys on the keyboard.
Wait until the “DevEco Device Tool successfully installed.” message is displayed.
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Getting Started with the Standard System with Hi3516 (IDE Mode)
harmony 鸿蒙Getting Started with the Standard System with Hi3516 (CLI Mode)
harmony 鸿蒙Hi3516 Development Board
harmony 鸿蒙Hi3861 Development Board
harmony 鸿蒙RK3568 Development Board
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦