Installing and Logging In to the Kunpeng DevKit
- The root user has all the operation permissions. Logging in to the server as the root user may pose security risks. Therefore, you are advised to log in to the server as a common user and then switch to the root user to perform subsequent deployment operations. In addition, it is a good practice to disable the SSH login of the root user to further enhance system security. Configuration procedure:
Log in to the server as a common user, switch to the root user, and check the value of PermitRootLogin in the /etc/ssh/sshd_config file. If the value of PermitRootLogin is no, the root user is not allowed to log in to the server. If the value is yes, change it to no.
- Reserve at least 3 GB for storing the extracted Kunpeng DevKit installation package.
- Before the installation, ensure that the tool installation directory has a sufficient space. At least 15 GB is required for installing the full package.
- During the installation, a system running user (devkit) and an execution user (devkitworkerX) will be created. These users are only used for running Kunpeng DevKit programs, and are locked and cannot log in to the system.
- When using the Porting Advisor in the Kunpeng DevKit for code porting, you need to run the rpm and deb commands in Linux to complete scanning and porting tasks. These commands and logic must be run in the Linux backend.
- To prevent system security problems caused by password leakage or other users accessing your account, do not configure a remote server or select Remember password during login on a public network or public computer.
You can install the Kunpeng DevKit in either of the following ways:
- Use the Kunpeng DevKit plugin installation method to install the Kunpeng DevKit online or offline.
- Online installation: The system automatically downloads the Kunpeng DevKit installation package. Ensure that the installation server is connected to the Internet.
- Offline installation: Download the Kunpeng DevKit offline installation package and upload it for the installation.
To reduce the impact on the operating environment, you are advised to install the tool on a VM or in a container in the operating environment and isolate it from the host environment.
- Manually download the Kunpeng DevKit installation package and use an SSH tool to install it on the server.
Prerequisites
Before installing the tool, ensure that the OS of the remote server is on the compatibility list.
Procedure
The following uses the Kunpeng DevKit plugin installation as an example. After the Kunpeng DevKit plugin is installed, click
in the left menu bar to open the Kunpeng DevKit plugin. The configuration guide page is displayed.
- If the Kunpeng DevKit has been installed, go to 2. If the Kunpeng DevKit has not been installed on the server, click Start Installation on the configuration guide page, or choose
> Install Kunpeng DevKit in the upper right corner. On the displayed Before You Start window, select I have read the above information and click OK. The window of installing the Kunpeng DevKit appears.- Check Environment
Set remote server parameters based on Table 1. After the setting is complete, click Next to check the server. If the server check is successful, click Next to go to the Select Tools page. If a message is displayed indicating that the connection check fails, reset the parameters as prompted.
Figure 1 Installing the Kunpeng DevKit
A server check includes server connection, server information check, and TAR tool check. If the TAR tool is not found on the server, install it.
Table 1 Parameters for installing the Kunpeng DevKit Parameter
Description
IP Address
IP address of the server where the tool is to be deployed.
SSH Port
SSH port of the server where the tool is to be deployed. The default port is 22.
SSH Connection Mode
The options are:
- Password authentication
- Key authentication
NOTE:- If you select Key authentication, import the id_rsa private key file. For details, see Configuring Public and Private Keys on Windows.
- After importing the private key file, enter the passphrase of the private key file.
Server User Name
User name for logging in to the server OS. The default user name is root.
Server Password
Password for logging in to the server OS.
- Select Tools
In the Select Tools screen, select an installation mode and required tools according to Table 2, and click Next.
Table 2 Parameter description Parameter
Description
Installation Mode
You can install the tool in the following modes:
- Online installation: The remote server is connected to the Internet. In this mode, the DevKit framework and selected tools are automatically obtained and installed online.
- Offline installation: The remote server is isolated from the Internet. You need to manually upload the DevKit framework installation package.
Install Tools
Currently, the Kunpeng DevKit provides the following tools:
- Porting Advisor
- Affinity Analyzer
- Development Assistant
- Compiler and Debugger
- System Profiler
- Java Profiler
- System Diagnosis
- Install Tools
- Enter the password of the root user of the server to deploy the tool.
- Set the tool deployment directory, which is /opt by default.
- Set the web server IP address.
- Set the HTTPS port number, which is 8086 by default.
If the firewall has been enabled on the server, ensure that the HTTPS port (8086 by default) has been opened on the firewall of the server OS. For details, see (Optional) Enabling the Firewall Port.
- Get Started
After the tools are installed, you can select the server that you deployed just now or configure another one that has already been deployed. Then click Log In.
- Check Environment
- (Optional) If the Kunpeng DevKit has been deployed on the remote server, click Get Started on the Configuration Guide page. The page shown in Figure 2 appears. Table 3 describes the parameters. Set the parameters and click OK.
Table 3 Parameters for configuring a remote server Parameter
Description
IP Address
IP address of the remote server where the tool is to be configured.
HTTPS Port
HTTPS port for the configuration.
NOTE:If the firewall has been enabled on the server, ensure that the HTTPS port (8086 by default) has been opened on the firewall of the server OS.
Service Certificate
- Before selecting Specify root certificate, ask the administrator to obtain the CSR file from the Server Certificates page, use the CSR file to generate a standard X.509 certificate through a CA system or self-signed certificate system, sign the certificate, and import the certificate. Then, set up a secure connection using the specified root certificate.
NOTE:
If you select Specify root certificate, choose Uses > Application > Proxy in VS Code and set Proxy Support to a non-override option.
- If you select Trust the current service certificate, you trust the connection to the server.
- Before selecting Specify root certificate, ask the administrator to obtain the CSR file from the Server Certificates page, use the CSR file to generate a standard X.509 certificate through a CA system or self-signed certificate system, sign the certificate, and import the certificate. Then, set up a secure connection using the specified root certificate.
- After the tool is deployed, click Log In. The pages shown in Figure 3 and Figure 4 are displayed. Table 4 describes the parameters. Enter the user name and password, and click Log In. Before login, read the usage statement, select I have read and agree, and click OK. The Kunpeng DevKit homepage is displayed.
Table 4 Parameters for logging in to the Kunpeng DevKit Parameter
Description
User Name
User name for logging in to the tool. The default administrator is devadmin.
Password
Password for logging in to the tool.
Upon the first login after the tool is deployed, specify the administrator password. The password must meet the following complexity requirements:
- Contain 8 to 32 characters.
- Contain at least two types of the following characters: uppercase letters, lowercase letters, digits, and special characters `~!@#$%^&*()-_=+\|[{}];:'",<.>/?
- Cannot contain any spaces.
- Cannot be the same as the user name or the user name spelled in reverse order.
- Cannot contain more than two consecutive characters of the user name.
- Cannot be a password in the weak password dictionary.
NOTICE:- Common users are prompted to change their default passwords upon the first login.
- Change this password periodically for security purposes.
Confirm Password
Password re-entered for confirmation.
Remember password
- If you select Remember password, you only need to enter the user name for next logins. The system automatically fills in the password when you click the password text box.
- Do not select Remember password when logging in using a public network or public computer.
Auto login
If you select both Remember password and Auto login, you do not need to enter the user name or password after the plugin is restarted. After you log in, you can click the setting button in the upper right corner to go to the Login Settings page and change the login status.
After the tool is deployed, you can click
in the upper right corner and choose Configure Remote Server to switch to another server that has the Kunpeng DevKit deployed.
After you log in to the Kunpeng DevKit, if you open a new VS Code window for another login, the previous login becomes invalid.


