Rate This Document
Findability
Accuracy
Completeness
Readability

Uploading a Large File

If the file to be uploaded is greater than 1 GB or the file size after decompression is greater than half of the remaining drive space, you need to free up some drive space or manually upload the file to the server. In other cases, you can simply use the upload function on the WebUI.

The following uses /opt/DevKit as an example tool installation directory. Replace it with the actual directory.

  1. Obtain the file to be uploaded.
  2. Save the file to be uploaded in a subdirectory of the created user's directory. (Table 1 lists the possible directories.) The following describes how to use the devadmin user to upload the source file.
    1. Use an SFTP tool (for example WinSCP) to log in to the server OS as the root user.
    2. Copy the source file to be scanned to the /opt/DevKit/workspace/devadmin/porting/sourcecode/ directory.
      Table 1 Directories to which files are manually uploaded

      Feature

      Directory

      Software porting assessment

      /opt/DevKit/workspace/devadmin/porting/package/

      Source code porting

      /opt/DevKit/workspace/devadmin/porting/sourcecode/

      Software package rebuild

      /opt/DevKit/workspace/devadmin/porting/packagerebuild/

      If a feature directory does not exist, manually create it. For example, upload source code porting files as devadmin:

      mkdir -p /opt/DevKit/workspace/devadmin/porting/sourcecode/
      chown -R devkit:devkit /opt/DevKit/workspace/devadmin/porting/
      chmod -R 700 /opt/DevKit/workspace/devadmin/porting/

      /opt/DevKit/ is the default installation directory. Replace it with the actual one.

    3. Decompress the file. If the file does not need to be decompressed, skip this step.
      1. Use an SSH tool to remotely log in to the OS CLI as the root user.
      2. Switch to the directory where the file is located.
        1
        cd /opt/DevKit/workspace/devadmin/porting/sourcecode/
        
      3. Decompress the file. For example, if the file is in TAR.GZ format, run the following command:
        1
        tar -zxvf xxx.tar.gz
        
      4. Change the owner group of the folder and modify the permission on the folder.
        1
        2
        chown devkit:devkit xxx
        chmod 700 xxx
        
    4. Change the owner group of the file as well as the execute permission on the file. (xxx indicates the extracted file or the installation package uploaded by the user.)
      1
      2
      chown -R devkit:devkit xxx
      chmod -R 600 xxx
      

      If you want to use the chmod command instead of chown, run the following command:

      1
      chmod -R o+rw xxx