CN110888648A - Method for generating custom linux image through interactive interface - Google Patents

Method for generating custom linux image through interactive interface Download PDF

Info

Publication number
CN110888648A
CN110888648A CN201811043583.0A CN201811043583A CN110888648A CN 110888648 A CN110888648 A CN 110888648A CN 201811043583 A CN201811043583 A CN 201811043583A CN 110888648 A CN110888648 A CN 110888648A
Authority
CN
China
Prior art keywords
mirror image
file
image
interactive interface
steps
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201811043583.0A
Other languages
Chinese (zh)
Inventor
周书田
刘金健
李培坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Net Letter Mdt Infotech Ltd
Original Assignee
Qingdao Net Letter Mdt Infotech Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Net Letter Mdt Infotech Ltd filed Critical Qingdao Net Letter Mdt Infotech Ltd
Priority to CN201811043583.0A priority Critical patent/CN110888648A/en
Publication of CN110888648A publication Critical patent/CN110888648A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a method for generating a custom linux image by an interactive interface, and belongs to the technical field of operating system installation. The invention comprises the following steps: 1. after uploading the official mirror image, automatically decompressing the mirror image into a directory form, analyzing the directory architecture and judging which system the mirror image is; 2. setting a new mirror image name by a user; 3. acquiring a setting parameter write ks.cfg file selected by a user clicking on an interactive interface; 4. adding a software package which is desired to be installed; 5. storing the generated ks.cfg file to a designated folder, and adding a file path of ks.cfg to the mirror image decompression directory; 6. automatically compressing the mirror image; 7. the method and the system have the advantages that the image file is generated, the image file MD5 is automatically checked, the disadvantages that writing in a customized user-defined linux system is complex, and many files are modified are solved, and the problem that English and technical basic are poor and cannot be successfully written is solved through an interactive interface.

Description

Method for generating custom linux image through interactive interface
Technical Field
The invention relates to a method for generating a custom linux image by an interactive interface, and belongs to the technical field of operating system installation.
Background
The existing operating system is complex in installation and operation steps, manual operation is needed, trouble and labor are wasted, if places needing to be changed for manually writing the self-defined operating system mirror image are many, the interface of the self-defined operating system is a pure code interface, careless mistakes often occur in manual writing, after packaging, whether normal use can be detected, and the steps are quite complex.
Disclosure of Invention
The invention aims to overcome the defects in the installation process of the existing operating system and provides a method for generating a custom linux image by an interactive interface.
The invention is realized by adopting the following technical scheme:
a method for generating a custom linux image through an interactive interface comprises the following steps:
the method comprises the following steps: after uploading the official mirror image, automatically decompressing the mirror image into a directory form, analyzing a directory architecture, judging which system the mirror image is, and automatically creating an interactive interface of a 'self-defined mirror image';
step two: setting a new mirror image name on the interactive interface by a user;
step three: acquiring setting parameters selected by a user on the interactive interface and writing the setting parameters into a ks.cfg file;
step four: adding a software package which is desired to be installed;
step five: storing the generated ks.cfg file to a designated folder, and adding a file path of ks.cfg to the mirror image decompression directory;
step six: automatically compressing the mirror image and setting the mirror image as the name in the second step;
step seven: and generating an image file and automatically checking the image file MD 5.
An apparatus for generating a custom linux image for an interactive interface comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method when executing the computer program.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
Further, a step of automatically uploading the script is further included between the third step and the fourth step, the script is automatically uploaded to the decompressed mirror image directory, fields are added into the ks.cfg file, and the preinstalled script is associated.
Further, the process of generating the associated software tree by the software package in the step four is also included.
Further, the process of generating the associated software tree is realized by the following steps:
the method comprises the following steps: uploading the software package to be installed and the associated software package together;
step two: writing the software package name into an xml file to generate a software group and generate an associated file;
step three: writing the software group name into a ks.cfg file.
Further, the setting parameters in step three include: the system partition, the swap memory size, the file system type, the time zone, the system password, the firewall setting and the network card configuration.
The invention has the beneficial effects that:
(1) the method solves the disadvantages of complicated writing and more modified files in the customized user-defined linux system, and solves the problem that English and the technical basis are poor and cannot be smoothly written through an interactive interface;
(2) the system installation file is automatically generated, so that the operation that manual installation is needed during system installation can be avoided, the mirror image can be directly recorded into the optical disk for use, and the optical disk can be automatically installed only by inserting the optical disk into a machine and then restarting the machine to start from the optical disk;
(3) through the software tree of the system, the name of the software package required by the software to be installed can be known at a glance, and whether the name exists or not can be known, so that the defects that the associated software packages are installed one by one manually, errors are easy to occur, and time is wasted are overcome.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
The invention will be further explained with reference to the drawings.
As shown in FIG. 1, the method for generating the custom linux image by the interactive interface of the present invention comprises the following steps:
1. after uploading the official mirror image, automatically decompressing the mirror image into a directory form, analyzing a directory architecture, judging which system the mirror image is, and automatically creating an interactive interface of a 'self-defined mirror image';
2. setting a new mirror image name on the interactive interface by a user;
3. obtaining setting parameters selected by a user on the interactive interface, writing the setting parameters into a ks.cfg file, wherein the setting parameters comprise: the system partition, the swap memory size, the file system type, the time zone, the system password, the firewall setting, the network card configuration and the like.
4. And if the user has the preinstalled script, automatically uploading the script to the decompressed mirror image directory, adding a% post field into the ks.cfg file, and associating the preinstalled script.
5. A software package that is desired to be installed is added,
if the software does not need to be associated with the software, only the software package needing to be installed is uploaded, the uploaded software package is automatically uploaded to a packages folder in a decompressed mirror image directory, the name of the software package is written into a repoda.
If the software needs the support of the associated software, an associated software tree is generated, and the process of generating the associated software tree is realized by the following steps:
the method comprises the following steps: uploading the software package to be installed and the associated software package together;
step two: writing the software package name into a repoda.xml file to generate a software group and generate an associated file, wherein repoda.xml is an index file of a software package directory;
step three: the software group name is written into the% packages field of ks.cfg files, and the% packages goes to the replay data.xml file to see where the software package file is.
6. Storing the generated ks.cfg file to a designated folder, and adding a file path of ks.cfg to the mirror image decompression directory;
7. automatically compressing the mirror image and setting the mirror image as the name in the second step;
8. and generating an image file and automatically checking the image file MD 5.
An apparatus for generating a custom linux image for an interactive interface comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method when executing the computer program.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
Of course, the foregoing is only a preferred embodiment of the invention and should not be taken as limiting the scope of the embodiments of the invention. The present invention is not limited to the above examples, and equivalent changes and modifications made by those skilled in the art within the spirit and scope of the present invention should be construed as being included in the scope of the present invention.

Claims (7)

1. A method for generating a custom linux image by an interactive interface is characterized by comprising the following steps: the method comprises the following steps:
the method comprises the following steps: after uploading the official mirror image, automatically decompressing the mirror image into a directory form, analyzing a directory architecture, judging which system the mirror image is, and automatically creating an interactive interface of a 'self-defined mirror image';
step two: setting a new mirror image name on the interactive interface by a user;
step three: acquiring setting parameters selected by a user on the interactive interface and writing the setting parameters into a ks.cfg file;
step four: adding a software package which is desired to be installed;
step five: storing the generated ks.cfg file to a designated folder, and adding a file path of ks.cfg to the mirror image decompression directory;
step six: automatically compressing the mirror image and setting the mirror image as the name in the second step;
step seven: and generating an image file and automatically checking the image file MD 5.
2. The method for generating the custom linux image through the interactive interface according to claim 1, wherein the method comprises the following steps: and a step of automatically uploading the script is further included between the third step and the fourth step, the script is automatically uploaded to the decompressed mirror image directory, fields are added into the ks.cfg file, and the preinstalled script is correlated.
3. The method for generating the custom linux image through the interactive interface according to claim 1, wherein the method comprises the following steps: and the process of generating the associated software tree by the software package in the step four is also included.
4. The method for generating the custom linux image through the interactive interface according to claim 3, wherein the method comprises the following steps: the process of generating the associated software tree is realized by the following steps:
the method comprises the following steps: uploading the software package to be installed and the associated software package together;
step two: writing the software package name into an xml file to generate a software group and generate an associated file;
step three: writing the software group name into a ks.cfg file.
5. The method for generating the custom linux image through the interactive interface according to claim 1, wherein the method comprises the following steps: step three, the setting parameters comprise: the system partition, the swap memory size, the file system type, the time zone, the system password, the firewall setting and the network card configuration.
6. An apparatus for generating a custom linux image for an interactive interface, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method of claim 1 when executing the computer program.
7. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method as set forth in claim 1.
CN201811043583.0A 2018-09-07 2018-09-07 Method for generating custom linux image through interactive interface Withdrawn CN110888648A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811043583.0A CN110888648A (en) 2018-09-07 2018-09-07 Method for generating custom linux image through interactive interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811043583.0A CN110888648A (en) 2018-09-07 2018-09-07 Method for generating custom linux image through interactive interface

Publications (1)

Publication Number Publication Date
CN110888648A true CN110888648A (en) 2020-03-17

Family

ID=69744535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811043583.0A Withdrawn CN110888648A (en) 2018-09-07 2018-09-07 Method for generating custom linux image through interactive interface

Country Status (1)

Country Link
CN (1) CN110888648A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651172A (en) * 2020-05-28 2020-09-11 成都安恒信息技术有限公司 Automatic generation method and system based on containerized ISO
CN113568628A (en) * 2021-07-16 2021-10-29 成都安恒信息技术有限公司 ISO automatic production method based on debian system
CN114443687A (en) * 2021-12-23 2022-05-06 苏州浪潮智能科技有限公司 Software package self-defining system and application method for constructing operating system image

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651172A (en) * 2020-05-28 2020-09-11 成都安恒信息技术有限公司 Automatic generation method and system based on containerized ISO
CN111651172B (en) * 2020-05-28 2023-06-30 成都安恒信息技术有限公司 Automatic generation method and system based on containerized ISO
CN113568628A (en) * 2021-07-16 2021-10-29 成都安恒信息技术有限公司 ISO automatic production method based on debian system
CN113568628B (en) * 2021-07-16 2024-03-15 成都安恒信息技术有限公司 ISO automated production method based on debrian system
CN114443687A (en) * 2021-12-23 2022-05-06 苏州浪潮智能科技有限公司 Software package self-defining system and application method for constructing operating system image
CN114443687B (en) * 2021-12-23 2024-02-27 苏州浪潮智能科技有限公司 Software package custom system for constructing operating system image and application method

Similar Documents

Publication Publication Date Title
US8949799B2 (en) Program log record optimization
CN105045663B (en) The method and system of rapid deployment virtual machine
CN110888648A (en) Method for generating custom linux image through interactive interface
US20150067671A1 (en) Information processing apparatus, control method, and storage medium
CN104750527A (en) Embedded system upgrading method and system
CN109960517B (en) Method, device and system for manufacturing mirror image file and storage medium
CN107066377B (en) Page element obtaining method based on Android system and terminal equipment
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
CN107800730B (en) Capacity expansion method and device for virtual disk
CN115658529A (en) Automatic testing method for user page and related equipment
US20070255762A1 (en) System and method for synchronization of configuration values between a data base and its input utility
CN110659197B (en) Application test case generation method and device and software test system
CN113031944B (en) Business opening device and method based on template
WO2016165461A1 (en) Automated testing method and apparatus for network management system software of telecommunications network
CN111078529B (en) Client writing module testing method and device and electronic equipment
CN112214231A (en) CI-based virtualized software upgrade package generation method and system
US20120144136A1 (en) Restoration of data from a backup storage volume
CN113485746B (en) Method and device for generating application program interface document
CN112463042B (en) Data volume import data verification method, device, terminal and storage medium
JP2010198479A (en) System for automatically executing application test
US20140006865A1 (en) System and method for capturing and using web page views in a test environment
WO2017096889A1 (en) Method and device for upgrading and downgrading system
CN101488877B (en) Method for on-line downloading monoboard programme
CN111897557A (en) Method, device, equipment and storage medium for updating service system
WO2018171335A1 (en) Set-top box upgrade data selection method and system, and set-top box

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200317