@@ -67,6 +67,7 @@ In the Windows+Ubuntu hybrid development environment, you can enjoy the benefits
...
@@ -67,6 +67,7 @@ In the Windows+Ubuntu hybrid development environment, you can enjoy the benefits
> During the installation, the page for agreeing to the user agreement and privacy statement is displayed. Read and agree to the user agreement and privacy statement.
> During the installation, the page for agreeing to the user agreement and privacy statement is displayed. Read and agree to the user agreement and privacy statement.
>
>
> If this page is not displayed and the installation exits, run the apt-get install whiptail command, then the installation command.
> If this page is not displayed and the installation exits, run the apt-get install whiptail command, then the installation command.
Wait until the "Deveco Device Tool successfully installed." message is displayed.
Wait until the "Deveco Device Tool successfully installed." message is displayed.
@@ -12,13 +12,13 @@ In the Ubuntu environment, perform the following steps to obtain the OpenHarmony
...
@@ -12,13 +12,13 @@ In the Ubuntu environment, perform the following steps to obtain the OpenHarmony
3. Install the git client and git-lfs if they are unavailable.
3. Install the git client and git-lfs if they are unavailable.
Update the software source:
Update the software source:
```
```
sudo apt-get update
sudo apt-get update
```
```
Run the following command to install the tools:
Run the following command to install the tools:
```
```
sudo apt-get install git git-lfs
sudo apt-get install git git-lfs
...
@@ -34,14 +34,23 @@ In the Ubuntu environment, perform the following steps to obtain the OpenHarmony
...
@@ -34,14 +34,23 @@ In the Ubuntu environment, perform the following steps to obtain the OpenHarmony
5. Run the following commands to install the **repo** tool:
5. Run the following commands to install the **repo** tool:
In this example, **~/bin** is used as an example installation directory. You can change the directory as needed.
```
```
curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 -o /usr/local/bin/repo # If you do not have the access permission to this directory, download the tool to any other accessible directory and configure the directory to the environment variable.
> Download the master code if you want to get quick access to the latest features for your development. Download the release code, which is more stable, if you want to develop commercial functionalities.
> Download the master code if you want to get quick access to the latest features for your development. Download the release code, which is more stable, if you want to develop commercial functionalities.
@@ -12,13 +12,13 @@ In the Ubuntu environment, perform the following steps to obtain the OpenHarmony
...
@@ -12,13 +12,13 @@ In the Ubuntu environment, perform the following steps to obtain the OpenHarmony
3. Install the git client and git-lfs.
3. Install the git client and git-lfs.
Update the software source:
Update the software source:
```
```
sudo apt-get update
sudo apt-get update
```
```
Run the following command to install the tools:
Run the following command to install the tools:
```
```
sudo apt-get install git git-lfs
sudo apt-get install git git-lfs
...
@@ -34,14 +34,23 @@ In the Ubuntu environment, perform the following steps to obtain the OpenHarmony
...
@@ -34,14 +34,23 @@ In the Ubuntu environment, perform the following steps to obtain the OpenHarmony
5. Run the following commands to install the **repo** tool:
5. Run the following commands to install the **repo** tool:
In this example, **~/bin** is used as an example installation directory. You can change the directory as needed.
```
```
curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 -o /usr/local/bin/repo # If you do not have the access permission to this directory, download the tool to any other accessible directory and configure the directory to the environment variable.
> Download the master code if you want to get quick access to the latest features for your development. Download the release code, which is more stable, if you want to develop commercial functionalities.
> Download the master code if you want to get quick access to the latest features for your development. Download the release code, which is more stable, if you want to develop commercial functionalities.
6. Wait for the DevEco Device Tool setup wizard to automatically install DevEco Device Tool. After the installation is complete, click **Finish** to close the setup wizard.
6. Read the user agreement and privacy statement carefully, select I accept the licenses, and click **Next**.
7. Wait for the DevEco Device Tool setup wizard to automatically install DevEco Device Tool. After the installation is complete, click **Finish** to close the setup wizard.
> During the installation, the setup wizard automatically checks whether Python 3.8 or 3.9 is installed. If Python 3.8 or 3.9 is not installed, the setup wizard displays the "Do you want to continue?" message; enter **Y** to allow the setup wizard to automatically install Python.
> During the installation, the setup wizard automatically checks whether Python 3.8 or 3.9 is installed. If Python 3.8 or 3.9 is not installed, the setup wizard displays the "Do you want to continue?" message; enter **Y** to allow the setup wizard to automatically install Python.
>
> During the installation, the page for agreeing to the user agreement and privacy statement is displayed. Read and agree to the user agreement and privacy statement.
>
> If this page is not displayed and the installation exits, run the apt-get install whiptail command, then the installation command.
Wait until the "Deveco Device Tool successfully installed." message is displayed.
Wait until the "Deveco Device Tool successfully installed." message is displayed.
After the connection is successful, the plug-in is automatically installed in the .vscode-server folder on the remote computer. After the installation is complete, reload Visual Studio Code in Windows as prompted. Then you can develop, compile, and burn source code in DevEco Device Tool on Windows.
After the connection is successful, the plug-in is automatically installed in the .vscode-server folder on the remote computer. After the installation is complete, reload Visual Studio Code in Windows as prompted. Then you can develop, compile, and burn source code in DevEco Device Tool on Windows.
### Registering the Public Key for Accessing the Ubuntu Environment
After the preceding operations are complete, you can remotely connect to the Ubuntu environment through Windows for development. However, you need to frequently enter the remote connection password. To eliminate this need, you can use the SSH public key.
1. Open the Git bash CLI and run the following command to generate an SSH public key. During command execution, perform operations as prompted. Set **username** and **ip** to the user name and IP address you use for connecting to the Ubuntu system.
In the Ubuntu environment, perform the following steps to obtain the OpenHarmony source code:
In the Ubuntu environment, perform the following steps to obtain the OpenHarmony source code:
...
@@ -249,13 +235,13 @@ In the Ubuntu environment, perform the following steps to obtain the OpenHarmony
...
@@ -249,13 +235,13 @@ In the Ubuntu environment, perform the following steps to obtain the OpenHarmony
3. Install the git client and git-lfs. (Skip this step if these tools have been installed in Installing Required Libraries and Tools. )
3. Install the git client and git-lfs. (Skip this step if these tools have been installed in Installing Required Libraries and Tools. )
Update the software source:
Update the software source:
```
```
sudo apt-get update
sudo apt-get update
```
```
Run the following command to install the tools:
Run the following command to install the tools:
```
```
sudo apt-get install git git-lfs
sudo apt-get install git git-lfs
...
@@ -271,22 +257,32 @@ In the Ubuntu environment, perform the following steps to obtain the OpenHarmony
...
@@ -271,22 +257,32 @@ In the Ubuntu environment, perform the following steps to obtain the OpenHarmony
5. Run the following commands to install the **repo** tool:
5. Run the following commands to install the **repo** tool:
In this example, **~/bin** is used as an example installation directory. You can change the directory as needed.
```
```
curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 -o /usr/local/bin/repo # If you do not have the access permission to this directory, download the tool to any other accessible directory and configure the directory to the environment variable.
> Download the master code if you want to get quick access to the latest features for your development. Download the release code, which is more stable, if you want to develop commercial functionalities.
> Download the master code if you want to get quick access to the latest features for your development. Download the release code, which is more stable, if you want to develop commercial functionalities.
-**Obtaining OpenHarmony master code**
-**Obtaining OpenHarmony master code**
Method 1 \(recommended\): Use the **repo** tool to download the source code over SSH. \(You must have registered an SSH public key for access to Gitee.\)
Method 1 \(recommended\): Use the **repo** tool to download the source code over SSH. \(You must have registered an SSH public key for access to Gitee.\)
> When downloading source code under the OpenHarmony_v1.x branches or tags, perform the operation procedure described in this section to install LLVM 9.0.0.
> When downloading source code under the OpenHarmony_v1.x branches or tags, perform the operation procedure described in this section to install LLVM 9.0.0.
6. Wait for the DevEco Device Tool setup wizard to automatically install DevEco Device Tool. After the installation is complete, click **Finish** to close the setup wizard.
6. Read the user agreement and privacy statement carefully, select I accept the licenses, and click **Next**.
7. Wait for the DevEco Device Tool setup wizard to automatically install DevEco Device Tool. After the installation is complete, click **Finish** to close the setup wizard.
> During the installation, the setup wizard automatically checks whether Python 3.8 or 3.9 is installed. If Python 3.8 or 3.9 is not installed, the setup wizard displays the "Do you want to continue?" message; enter **Y** to allow the setup wizard to automatically install Python.
> During the installation, the setup wizard automatically checks whether Python 3.8 or 3.9 is installed. If Python 3.8 or 3.9 is not installed, the setup wizard displays the "Do you want to continue?" message; enter **Y** to allow the setup wizard to automatically install Python.
>
> During the installation, the page for agreeing to the user agreement and privacy statement is displayed. Read and agree to the user agreement and privacy statement.
>
> If this page is not displayed and the installation exits, run the apt-get install whiptail command, then the installation command.
Wait until the "Deveco Device Tool successfully installed." message is displayed.
Wait until the "Deveco Device Tool successfully installed." message is displayed.
...
@@ -186,7 +193,7 @@ To remotely access the Ubuntu environment through Windows to perform operations
...
@@ -186,7 +193,7 @@ To remotely access the Ubuntu environment through Windows to perform operations
2. In the **Enter SSH Connection Command** text box, enter **ssh *username@ip_address***, where *ip_address* indicates the IP address of the remote computer to be connected and *username* indicates the account name used for logging in to the remote computer.
2. In the **Enter SSH Connection Command** text box, enter **ssh *ssh _username_\@_ip_address_***, where *ip_address* indicates the IP address of the remote computer to be connected and *username* indicates the account name used for logging in to the remote computer.
After the connection is successful, the plug-in is automatically installed in the .vscode-server folder on the remote computer. After the installation is complete, reload Visual Studio Code in Windows as prompted. Then you can develop, compile, and burn source code in DevEco Device Tool on Windows.
After the connection is successful, the plug-in is automatically installed in the .vscode-server folder on the remote computer. After the installation is complete, reload Visual Studio Code in Windows as prompted. Then you can develop, compile, and burn source code in DevEco Device Tool on Windows.
### Registering the Public Key for Accessing the Ubuntu Environment
After the preceding operations are complete, you can remotely connect to the Ubuntu environment through Windows for development. However, you need to frequently enter the remote connection password. To eliminate this need, you can use the SSH public key.
1. Open the Git bash CLI and run the following command to generate an SSH public key. During command execution, perform operations as prompted. Set **username** and **ip** to the user name and IP address you use for connecting to the Ubuntu system.
In the Ubuntu environment, perform the following steps to obtain the OpenHarmony source code:
In the Ubuntu environment, perform the following steps to obtain the OpenHarmony source code:
...
@@ -238,13 +227,13 @@ In the Ubuntu environment, perform the following steps to obtain the OpenHarmony
...
@@ -238,13 +227,13 @@ In the Ubuntu environment, perform the following steps to obtain the OpenHarmony
3. Install the git client and git-lfs. (Skip this step if these tools have been installed in Installing Required Libraries and Tools. )
3. Install the git client and git-lfs. (Skip this step if these tools have been installed in Installing Required Libraries and Tools. )
Update the software source:
Update the software source:
```
```
sudo apt-get update
sudo apt-get update
```
```
Run the following command to install the tools:
Run the following command to install the tools:
```
```
sudo apt-get install git git-lfs
sudo apt-get install git git-lfs
...
@@ -260,21 +249,30 @@ In the Ubuntu environment, perform the following steps to obtain the OpenHarmony
...
@@ -260,21 +249,30 @@ In the Ubuntu environment, perform the following steps to obtain the OpenHarmony
5. Run the following commands to install the **repo** tool:
5. Run the following commands to install the **repo** tool:
In this example, **~/bin** is used as an example installation directory. You can change the directory as needed.
```
```
curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 -o /usr/local/bin/repo # If you do not have the access permission to this directory, download the tool to any other accessible directory and configure the directory to the environment variable.
> Download the master code if you want to get quick access to the latest features for your development. Download the release code, which is more stable, if you want to develop commercial functionalities.
> Download the master code if you want to get quick access to the latest features for your development. Download the release code, which is more stable, if you want to develop commercial functionalities.
-**Obtaining OpenHarmony master code**
-**Obtaining OpenHarmony master code**
Method 1 \(recommended\): Use the **repo** tool to download the source code over SSH. \(You must have registered an SSH public key for access to Gitee.\)
Method 1 \(recommended\): Use the **repo** tool to download the source code over SSH. \(You must have registered an SSH public key for access to Gitee.\)