CN113076113B - Method, host and system for installing operating system - Google Patents

Method, host and system for installing operating system Download PDF

Info

Publication number
CN113076113B
CN113076113B CN202110388913.5A CN202110388913A CN113076113B CN 113076113 B CN113076113 B CN 113076113B CN 202110388913 A CN202110388913 A CN 202110388913A CN 113076113 B CN113076113 B CN 113076113B
Authority
CN
China
Prior art keywords
client
server application
configuration
operating system
interface
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.)
Active
Application number
CN202110388913.5A
Other languages
Chinese (zh)
Other versions
CN113076113A (en
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.)
Wuhan Deepin Technology Co ltd
Original Assignee
Wuhan Deepin Technology Co ltd
Filing date
Publication date
Application filed by Wuhan Deepin Technology Co ltd filed Critical Wuhan Deepin Technology Co ltd
Priority to CN202110388913.5A priority Critical patent/CN113076113B/en
Publication of CN113076113A publication Critical patent/CN113076113A/en
Application granted granted Critical
Publication of CN113076113B publication Critical patent/CN113076113B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a method for installing an operating system, which is suitable for being executed in a client and comprises the following steps: sending a detection message to a host, wherein the host runs a server application, and the server application is suitable for installing a target operating system in the host; receiving a response message returned by the server application in response to the detection message; responding to the response message, acquiring a configuration item of the target operating system from the server application, and displaying the configuration item; receiving configuration parameters related to configuration items input by a user; the configuration parameters are sent to the server application so that the server application can generate a configuration file based on the configuration parameters; and instructing the server application to install the target operating system based on the configuration file. The embodiment of the invention also discloses a corresponding client, a server application, a system, a computing device and a readable storage medium.

Description

Method, host and system for installing operating system
Technical Field
The present invention relates to the field of operating systems, and in particular, to a method for installing an operating system, a client, a server application, and a system.
Background
The installation process of an Operating System (OS) is a time consuming process, particularly in the context of a production line for mass installation of operating systems. Because typically the user needs to enter various parameters to be configured, such as disk formatting policies, time zone settings, language selections, etc., all around the host computer during the installation process when installing the operating system. This aspect requires a display to be configured for each host, which is costly; on the other hand, the user needs to input parameters one by one and check the installation progress of the operating system, so that the operation is complex and the efficiency is low.
Accordingly, there is a need to provide a more advanced operating system installation scheme.
Disclosure of Invention
To this end, embodiments of the present invention provide a method, client, server application, and system for installing an operating system in an effort to solve or at least alleviate at least one of the problems presented above.
According to an aspect of an embodiment of the present invention, there is provided a method of installing an operating system, adapted to be executed in a client having a graphical user interface therein, the method comprising: sending a detection message to one or more hosts, wherein the hosts are provided with a server application, and the server application is suitable for installing a target operating system in the hosts; receiving a response message returned by the server application in response to the detection message; responding to the response message, acquiring the configuration item of the target operating system from the server application, and displaying the configuration item in a graphical user interface; receiving configuration parameters related to configuration items input by a user in a graphical user interface; the configuration parameters are sent to the server application so that the server application can generate a configuration file based on the configuration parameters; and instructing the server application to install the target operating system based on the configuration file.
Optionally, in a method according to an embodiment of the present invention, sending a probe message to one or more hosts includes: in the case where the client and the host are located on the same local area network, the server application is adapted to communicate with the client via the designated network port by sending probe messages according to the designated network port.
Optionally, in a method according to an embodiment of the present invention, sending a probe message to one or more hosts includes: in the case where the client and the host are not located in the same local area network, the server application is adapted to communicate with the client via the specified network address and the specified network port by sending a probe message according to the specified network address and the specified network port.
Optionally, in the method according to the embodiment of the present invention, before the configuration item of the target operating system is acquired from the server application in response to the response message, the method further includes: and verifying the response message.
Optionally, in the method according to the embodiment of the present invention, obtaining, from the server application, a configuration item of the target operating system includes: and calling a configuration interface provided by the server application, and acquiring a configuration item of a target operating system corresponding to the configuration interface from the server application.
Optionally, in a method according to an embodiment of the present invention, the configuration item includes at least one of: language; a time zone; the keyboard type; a network; partitioning a hard disk; a user account; and (3) an assembly.
Optionally, in the method according to the embodiment of the present invention, the sending the configuration parameters to the server-side application so that the server-side application generates the configuration file based on the configuration parameters includes: and calling a setting interface provided by the server application, and sending the configuration parameters to the server application so that the server application generates a configuration file based on the configuration parameters.
Optionally, in the method according to the embodiment of the present invention, instructing the server application to install the target operating system based on the configuration file includes: and calling an installation starting interface provided by the server application, and indicating the server application to install the target operating system based on the configuration file.
Optionally, in the method according to an embodiment of the present invention, further includes: and acquiring the installation progress of the target operating system in the host from the server application by subscribing the installation progress message or calling the progress acquisition interface, and displaying the acquired installation progress in the graphical user interface.
Optionally, in a method according to an embodiment of the present invention, the client and the server application communicate based on gRPC protocols.
According to another aspect of an embodiment of the present invention, there is provided a method of installing an operating system, adapted to be executed in a server application, the server application running in a host, the method including: receiving a detection message sent by a client with a graphical user interface; responding to the detection message, and returning a response message to the client; responding to a call request of a client to a configuration interface provided by a server application, and sending a configuration item of a target operating system corresponding to the configuration interface to the client so that the client displays the configuration item in a graphical user interface; responding to a call request of a client for a setting interface provided by a server application, and generating a configuration file based on configuration parameters related to configuration items carried by the call request; and in response to receiving a call request of the client to an installation starting interface provided by the server application, installing a target operating system in the host based on the configuration file.
Optionally, in the method according to an embodiment of the present invention, further includes: and storing the binding relation between the client side sending the detection message and the server side application for the detection message received for the first time.
Optionally, in the method according to an embodiment of the present invention, before responding to the call request of the client to the configuration interface, the setting interface and the installation start interface, the method further includes: judging whether the client has a binding relation with the server application or not; if the client has no binding relation, the call request of the client to the configuration interface, the setting interface and the installation starting interface is not responded.
Optionally, in the method according to an embodiment of the present invention, further includes: and in response to receiving a call request of the client to the progress acquisition interface, sending the installation progress of the target operating system in the host to the client so that the client displays the installation progress in the graphical user interface.
Optionally, in the method according to an embodiment of the present invention, further includes: and sending the installation progress of the target operating system in the host to the client in response to the subscription of the client to the message of the installation progress, so that the client displays the installation progress in the graphical user interface.
According to another aspect of an embodiment of the present invention, there is provided a client having a graphical user interface, including: the detection module is suitable for sending detection information to one or more hosts, the hosts are provided with server-side applications in running, and the server-side applications are suitable for installing target operating systems in the hosts; receiving a response message returned by the server application in response to the detection message; the configuration module is suitable for responding to the response message, acquiring the configuration items of the target operating system from the server application and displaying the configuration items in the graphical user interface; the method comprises the steps that configuration parameters related to configuration items, which are input by a user in a graphical user interface, are sent to a server application, so that the server application generates a configuration file based on the configuration parameters; indicating the server application to install the target operating system based on the configuration file; and the interaction module is suitable for receiving configuration parameters related to the configuration items, which are input by a user in the graphical user interface.
According to another aspect of an embodiment of the present invention, there is provided a server application, including: the response module is suitable for receiving the detection message sent by the client with the graphical user interface; responding to the detection message, and returning a response message to the client; the call response module is suitable for responding to a call request of the client to a configuration interface provided by the server application, and sending a configuration item of a target operating system corresponding to the configuration interface to the client so that the client can display the configuration item in a graphical user interface; responding to a call request of a client for a setting interface provided by a server application, and generating a configuration file based on configuration parameters related to configuration items carried by the call request; and in response to receiving a call request of the client to an installation starting interface provided by the server application, installing a target operating system in the host based on the configuration file.
According to another aspect of an embodiment of the present invention, there is provided an operating system installation system including a client according to an embodiment of the present invention and a server application according to an embodiment of the present invention.
According to another aspect of an embodiment of the present invention, there is provided a computing device including: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing any of the methods of installing an operating system according to embodiments of the present invention.
According to yet another aspect of embodiments of the present invention, there is provided a readable storage medium storing a program comprising instructions that, when executed by a computing device, cause the computing device to perform any of the methods of installing an operating system according to embodiments of the present invention.
According to the operating system installation scheme provided by the embodiment of the invention, the client is used for carrying out interface interaction with the user, the client is used for installing the operating system for the host by communicating with the server application running in the host, on one hand, a display is not required to be equipped for the host, the hardware cost is reduced, the interaction effect of the client is better, on the other hand, the remote installation and installation progress monitoring of the operating system of one or more hosts is realized, the operation is greatly simplified, the installation efficiency is improved, and the efficiency and cost advantages are very obvious under the scene of installing the operating system in a large scale on a production line.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which set forth the various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to fall within the scope of the claimed subject matter. The above, as well as additional objects, features, and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Like reference numerals generally refer to like parts or elements throughout the present disclosure.
FIG. 1 illustrates a schematic diagram of an operating system installation system 100, according to one embodiment of the invention;
FIG. 2 shows a schematic diagram of a computing device 200 according to one embodiment of the invention;
FIG. 3 illustrates a flow chart of a method 300 of installing an operating system according to one embodiment of the invention;
FIG. 4 illustrates a flow chart of a method 400 of installing an operating system in accordance with one embodiment of the invention;
FIG. 5 shows a schematic diagram of a server application 110 according to one embodiment of the invention; and
Fig. 6 shows a schematic diagram of a client 120 according to one embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 illustrates a schematic diagram of an operating system installation system 100, according to one embodiment of the invention. As shown in fig. 1, operating system installation system 100 includes a server application 110 and a client 120. In other embodiments, operating system installation system 100 may also include different and/or additional modules.
A user may install a target operating system for one or more hosts via operating system installation system 100. The target operating system may be Linux, windows or the like, for example, which includes program instructions for handling basic system services and performing hardware-dependent tasks. Wherein each host of the target operating system to be installed has a server application 110 running therein. In some embodiments, the server application 110 may be a process in the installer of the target operating system that is launched upon launching the installer.
The server application 110 may be coupled to the client 120 through one or more networks 130, such as a Local Area Network (LAN) or a Wide Area Network (WAN) such as the internet. In some embodiments, the server application 110 may typically monitor a designated network port of its host and communicate with the client 120 at least via the designated network port. Here, a network port is designated as a network port that does not conflict with other functions, such as a private network port.
The client 120 may be implemented as various computing devices or as an application (e.g., browser) located in various computing devices. The computing device may be, for example, a desktop computing device, a laptop computing device, a tablet computing device, a mobile phone computing device, a vehicle computing device, a wearable apparatus including a computing device, or a home apparatus including a computing device.
Client 120 may communicate with one or more server applications over network 130, such as invoking various interfaces provided by server application 110. The client 120 may also interact with the user via a graphical user interface, such as receiving configuration parameters entered by the user in the graphical user interface. In some embodiments, the client 120 communicates with the server application 110 based on gRPC protocols, e.g., the client 120 invokes various interfaces provided by the server application 110 based on gRPC protocols.
The specific structure of each component in the operating system installation system 100 and the method performed in each component will be described below with reference to the accompanying drawings. According to an embodiment of the invention, the components of the operating system installation system 100 may be implemented by a computing device 200 as described below.
FIG. 2 shows a schematic diagram of a computing device 200 according to one embodiment of the invention. As shown in FIG. 2, in a basic configuration 202, computing device 200 typically includes a system memory 206 and one or more processors 204. A memory bus 208 may be used for communication between the processor 204 and the system memory 206.
Depending on the desired configuration, processor 204 may be any type of processor including, but not limited to: a microprocessor (μp), a microcontroller (μc), a digital information processor (DSP), or any combination thereof. Processor 204 may include one or more levels of cache, such as a first level cache 210 and a second level cache 212, a processor core 214, and registers 216. The example processor core 214 may include an Arithmetic Logic Unit (ALU), a Floating Point Unit (FPU), a digital signal processing core (DSP core), or any combination thereof. The example memory controller 218 may be used with the processor 204, or in some implementations, the memory controller 218 may be an internal part of the processor 204.
Depending on the desired configuration, system memory 206 may be any type of memory including, but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. The system memory 206 may include an operating system 220, one or more applications 222, and program data 224. In some implementations, the application 222 may be arranged to execute instructions on an operating system by the one or more processors 204 using the program data 224.
Computing device 200 also includes a storage device 232, where storage device 232 includes removable storage 236 and non-removable storage 238, where removable storage 236 and non-removable storage 238 are each connected to storage interface bus 234.
Computing device 200 may also include an interface bus 240 that facilitates communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to basic configuration 202 via bus/interface controller 230. The example output device 242 includes a graphics processing unit 248 and an audio processing unit 250. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 252. The example peripheral interface 244 may include a serial interface controller 254 and a parallel interface controller 256, which may be configured to facilitate communication via one or more I/O ports 258 and external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.). The example communication device 246 may include a network controller 260 that may be arranged to facilitate communication with one or more other computing devices 262 over a network communication link via one or more communication ports 264.
The network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media in a modulated data signal, such as a carrier wave or other transport mechanism. A "modulated data signal" may be a signal that has one or more of its data set or changed in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or special purpose network, and wireless media such as acoustic, radio Frequency (RF), microwave, infrared (IR) or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
Computing device 200 may be implemented as a server, such as a database server, an application server, a WEB server, etc., or as a personal computer including desktop and notebook computer configurations. Of course, computing device 200 may also be implemented as part of a small-sized portable (or mobile) electronic device.
In an embodiment in accordance with the present invention, computing device 200 may be configured to perform methods 300 and/or 400 of installing an operating system in accordance with embodiments of the present invention (described in detail below). Wherein the application 222 of the computing device 200 includes a plurality of instructions for performing the method 300 and/or 400 of installing an operating system according to an embodiment of the present invention.
FIG. 3 illustrates a schematic diagram of a method 300 of installing an operating system, according to one embodiment of the invention. As shown in fig. 3, a method 300 of installing an operating system is adapted to be executed in a client 120 having a graphical user interface therein, the method 300 beginning at step S310.
In step S310, a probe message is sent to one or more hosts. Each host is running a server application 110, which server application 110 is adapted to install a target operating system in the host.
In accordance with the foregoing description, the server application 110 communicates with the client 120 via a designated network port. In some embodiments, if the client 120 is located in the same lan as the one or more hosts, the client 120 may send the probe message according to the designated network port, that is, broadcast the probe message to the designated network port, so that the server application 110 running in each host in the same lan may receive the probe message by listening to the designated network port.
In other embodiments, if the client 120 is not located on the same lan as the one or more hosts, the client 120 may send the probe message according to the specified network address (i.e., the network address of the host on which the server application is located) and the specified network port. The server application 110 communicates with the client 120 via the specified network address and the specified network port.
After receiving the probe message sent by the client 120, the server application 110 may return a response message to the client 120 in response to the probe message. Meanwhile, the server application 110 may also store a binding relationship between the client 120 and the server application 110, so as to allow the client 120 to call a corresponding interface provided by the server application 110 to instruct the server application 110 to install the target operating system. It should be noted that when the server application 110 receives probe messages sent by a plurality of clients 120, it may be determined that the server application 110 receives the probe message for the first time, and only stores the binding relationship between the client 120 that sent the probe message and the server application, that is, only allows the client 120 to call the corresponding interface provided by the server application 110 to instruct the server application 110 to install the target operating system.
The client 120 receives a response message returned by the one or more server applications 110 in response to the probe message in step S320, and then obtains a configuration item of the target operating system from the server application 110 in response to the response message and displays the configuration item in the graphical user interface in step S330.
In some embodiments, before the configuration item is obtained from the server application 110, the client 120 may further verify the reply message returned by the server application 110, and step S320 is performed after the verification is passed.
Specifically, the client 120 may invoke a configuration interface provided by the server application 110, obtain configuration items of the target operating system from the server application 110, and display via a graphical user interface.
Then, the client 120 receives the configuration parameters related to the configuration items input by the user in the gui in step S340, and sends the configuration parameters to the server application 110 in step S350, so that the server application 110 generates a configuration file based on the configuration parameters. Specifically, the client 120 may invoke a setup interface provided by the server application 110 to send configuration parameters to the server application 110, so that the server application 110 generates a configuration file based on the configuration parameters.
It should be noted that the client 120 may repeat steps S330 to S350 until the server application 110 obtains all the configuration parameters. In some embodiments, the configuration item includes at least one of:
Language; a time zone; the keyboard type; a network; partitioning a hard disk; a user account; and (3) an assembly.
According to one embodiment of the present invention, the client 120 may obtain the language types supported by the target operating system through the GetLanguage interface provided by the server application 110, and display the language types to the user in the graphical user interface. After user selection, the client 120 may send the selected language to the server application 110 through the SetLanguage interface provided by the server application 110 to set the language of the target operating system.
The client 120 may obtain the time zone supported by the target operating system through the GetTimezone interface provided by the server application 110 and display it to the user in a graphical user interface. After the user selects, the client 120 may send the selected time zone to the server application 110 through the SetTimezone interface provided by the server application 110 to set the time zone of the target operating system.
The client 120 may obtain the keyboard types supported by the target operating system through the GetAllKeyBoardSupport interface provided by the server application 110 and display to the user in a graphical user interface. After the user selects, the client 120 may send the selected keyboard to the server application 110 through the SetKeyBoard interface provided by the server application 110 to set the keyboard type of the target operating system.
The client 120 may obtain the keyboard types supported by the target operating system through the GetAllKeyBoardSupport interface provided by the server application 110 and display to the user in a graphical user interface. After the user selects, the client 120 may send the selected keyboard to the server application 110 through the SetKeyBoard interface provided by the server application 110 to set the keyboard type of the target operating system.
Client 120 may obtain the network adapter supported by the target operating system through GetNetworkAdapter interface provided by server application 110 and display to the user in a graphical user interface. After user selection, the client 120 may send the selected network configuration to the server application 110 through the SetNetwork interface provided by the server application 110 to set up the network of the target operating system.
The client 120 may obtain the network information of the target operating system through the GetNetworkAdapter interface provided by the server application 110, and display the network information to the user in a graphical user interface. After user selection, the client 120 may send the selected network configuration to the server application 110 through the SetNetwork interface provided by the server application 110 to set up the network of the target operating system.
The client 120 may obtain the hard disk device information of the target operating system through the GETDISKDEVICE interface provided by the server application 110, obtain the partition information of the target operating system through the GetPartitionInfo interface, and display the partition information to the user in the graphical user interface. After user selection, client 120 may send the selected partition configuration to server application 110 via SetPartition interface provided by server application 110 to set the partition of the target operating system.
Then, the client 120 may instruct the server application 110 to install the target operating system based on the configuration file in step S360. Specifically, an installation initiation interface provided by the server application 110 may be invoked, instructing the server application 110 to install the target operating system based on the configuration file. For example, the client 120 may invoke STARTINSTALLSYSTEM an interface to instruct the server application 110 to install the target operating system based on the configuration file. Once the STARTINSTALLSYSTEM interface call is successful, the server application 110 no longer receives a request to call the setup interface.
The server application 110, upon receiving a call from the client 120 to install the boot interface, installs the target operating system based on the configuration file. In the installation process, the configuration parameters of each configuration item in the configuration file can be read and correspondingly configured.
It should be noted that the client 120 may send the same configuration parameters to the plurality of server applications 110, so that each server application 110 generates a configuration file based on the configuration parameters and performs installation of the target operating system under the direction of the client.
According to an embodiment of the present invention, the client 120 may further obtain the installation progress of the host to the target operating system from the server application 110, and display the obtained installation progress in the graphical user interface thereof. For example, the client 120 may invoke a progress-acquisition interface, such as the GetInstallProcess interface, to acquire the installation progress at predetermined intervals. For another example, the client 120 may subscribe to the server application 110 for a message of the installation progress, so that the server application 110 may automatically report the installation progress to the client 120.
According to another embodiment of the present invention, when the client 120 is implemented as a browser in a computing device, the client 120 may convert data acquired from the server application 110 so that the client 120 displays the converted data and may also convert data transmitted to the server application 110.
FIG. 4 illustrates a schematic diagram of a method 400 of installing an operating system, according to one embodiment of the invention. The method 400 of installing an operating system is performed in a server application 110, the server application 110 running in a host in which a target operating system is to be installed and being adapted to install the target operating system in the host.
As shown in fig. 4, a method 400 of installing an operating system begins at step S410. In step S410, a probe message sent by the client 120 having a graphical user interface is received. In accordance with the foregoing description, the server application 110 communicates with the client 120 via a designated network port.
Then, a response message may be returned to the client 120 in response to the probe message in step S420. Meanwhile, the server application 110 may also store a binding relationship between the client 120 and the server application 110, so as to allow the client 120 to call a corresponding interface provided by the server application 110 to instruct the server application 110 to install the target operating system. It should be noted that when the server application 110 receives probe messages sent by a plurality of clients 120, it may be determined that the server application 110 receives the probe message for the first time, and only stores the binding relationship between the client 120 that sent the probe message and the server application, that is, only allows the client 120 to call the corresponding interface provided by the server application 110 to instruct the server application 110 to install the target operating system.
Then, in step S430, in response to receiving the call request from the client 120 for the configuration interface provided by the server application 110, the server application 110 sends the configuration item of the target operating system corresponding to the configuration interface to the client 120, so that the client 120 displays the configuration item in the graphical user interface. In step S440, in response to receiving the call request of the client 120 for the setting interface provided by the server application 110, a configuration file is generated based on the configuration parameters related to the configuration items carried by the call request.
In some embodiments, the configuration item may include at least one of: language, time zone, keyboard category, network, hard disk partition, user account and components.
Then, in step S450, the server application 110 installs the target operating system in the host based on the configuration file in response to receiving the call request of the client 120 to the installation start interface provided by the server application 110. In the installation process, the configuration parameters of each configuration item in the configuration file can be read and correspondingly configured. It should be noted that after accepting the call of the client 120 to the installation start interface provided by the server application 110, the server application 110 no longer accepts the call of the client 120 to the configuration interface, the setup interface, and the installation start interface described above.
In some embodiments, before responding to a call request from the client 120 to configure an interface, set an interface, and/or install a startup interface, the server application 110 may further determine whether the client 120 has a binding relationship with the server application 110 itself, and if not, not accept the call from the client to the interface, and if so, accept the call.
In other embodiments, the server application 110 may also send the installation progress of the current target operating system in the host to the client 120 in response to receiving a call request from the client 120 to the progress acquisition interface, so that the client 120 displays the installation progress in the graphical user interface. The server application 110 may also receive a subscription of the client 120 to the installation progress message, thereby occasionally sending the installation progress of the current target operating system in the host to the client 120 so that the client 120 displays the installation progress in the graphical user interface.
It should be noted that the client 120 need not have a binding relationship with the server application 110 to obtain the installation progress from the server application. For example, the server application 110 does not determine whether the client 120 has a binding relationship with the server application 110 itself before responding to a call request from the client 120 for a progress acquisition interface.
The respective processes in the steps of the method 400 of installing an operating system have been explained in detail above in the detailed description of the operating system installation system 100 and the method 300 of installing an operating system described in connection with fig. 1 to 3, and the repetition is not repeated here.
Fig. 5 shows a schematic diagram of a client 120 with a graphical user interface according to one embodiment of the invention. As shown in fig. 5, the client 120 includes a probe module 121, a configuration module 122, and an interaction module 123. The probe module 121 is adapted to send probe messages to one or more hosts, each host running a server application adapted to install a target operating system in the host. The probe module 121 is further adapted to receive a reply message returned by the server application in response to the probe message.
The configuration module 122 is adapted to obtain configuration items of the target operating system from the server application 110 in response to the reply message and display the configuration items in the graphical user interface. The interaction module 123 is adapted to receive said configuration parameters related to the configuration item entered by a user in the graphical user interface. The configuration module 122 is further adapted to send configuration parameters related to the configuration item, which are input by a user in the graphical user interface, to the server application 110, so that the server application 110 generates a configuration file based on the configuration parameters, and is further adapted to instruct the server application 110 to install the target operating system based on the configuration file.
The corresponding processes in the modules of the client 120 have been explained in detail in the detailed descriptions of the operating system installation system 100 and the methods 300 and 400 for installing an operating system described above in connection with fig. 1 to 4, and the repetition is not repeated here.
Fig. 6 shows a schematic diagram of a server application 110 according to one embodiment of the invention. As shown in fig. 6, the server application 110 includes a reply module 111 and a call response module 112.
The reply module 111 is adapted to receive the probe message sent by the client 120 with the graphical user interface and to return a reply message to the client 120 in response to the probe message. The call response module 112 is adapted to send a configuration item of a target operating system corresponding to a configuration interface provided by the service application 110 to the client 120 in response to receiving a call request of the client 120 for the configuration interface provided by the service application 110, generate a configuration file based on configuration parameters related to the configuration item carried by the call request in response to receiving a call request of the client 120 for the configuration interface provided by the service application 110, and install the target operating system in a host based on the configuration file in response to receiving a call request of the client 120 for an installation start interface provided by the service application 110.
The corresponding processes in the modules of the server application 110 have been explained in detail in the detailed descriptions of the operating system installation system 100 and the methods 300 and 400 for installing an operating system described above in conjunction with fig. 1 to 4, and the repetition is not repeated here.
In summary, according to the operating system installation scheme provided by the embodiment of the invention, the client is used for interacting with the user, and the server application running in the host is used for installing the operating system for the host, so that on one hand, the host is not required to be provided with a display, the hardware cost is reduced, the interaction effect of the client is better, on the other hand, the remote installation and installation progress monitoring of the operating system of one or more hosts are realized, the operation is greatly simplified, and the installation efficiency is improved.
According to the operating system installation scheme provided by the embodiment of the invention, the interaction with the interface of the user and the business logic for installing the operating system are decoupled, so that an interface developer can concentrate on the optimization of the interaction and the optimization of the interface without excessively considering performance problems; the back-end development does not need to care the display of interfaces, only business logic can be considered, and development efficiency and quality of each developer can be brought into play to a greater extent.
It should be understood that the various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions of the methods and apparatus of the present invention, may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to perform the various methods of the present invention in accordance with instructions in the program code stored in the memory.
By way of example, and not limitation, computer readable media comprise computer storage media and communication media. Computer-readable media include computer storage media and communication media. Computer storage media stores information such as computer readable instructions, data structures, program modules, or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of computer readable media.
It should be appreciated that in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into a plurality of sub-modules.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
Furthermore, some of the embodiments are described herein as methods or combinations of method elements that may be implemented by a processor of a computer system or by other means of performing the functions. Thus, a processor with the necessary instructions for implementing the described method or method element forms a means for implementing the method or method element. Furthermore, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is for carrying out the functions performed by the elements for carrying out the objects of the invention.
As used herein, unless otherwise specified the use of the ordinal terms "first," "second," "third," etc., to describe a general object merely denote different instances of like objects, and are not intended to imply that the objects so described must have a given order, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of the above description, will appreciate that other embodiments are contemplated within the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention, which is defined by the appended claims.

Claims (7)

1. A method of installing an operating system adapted to be executed in a server application, the server application running in a host, the method comprising:
receiving a detection message sent by a client with a graphical user interface;
responding to the detection message, and returning a response message to the client;
responding to a call request of the client to a configuration interface provided by the server application, and sending a configuration item of a target operating system corresponding to the configuration interface to the client so that the client can display the configuration item in a graphical user interface;
Responding to a call request of the client to a setting interface provided by the server application, and generating a configuration file based on configuration parameters related to the configuration items carried by the call request; and
Responding to a call request of the client to an installation starting interface provided by the server application, and installing a target operating system in the host based on the configuration file;
the method further comprises the steps of: for the first received detection message, storing the binding relation between the client side sending the detection message and the server side application;
before responding to the call request of the client to the configuration interface, the setting interface and the installation starting interface, the method further comprises the following steps:
judging whether the client has a binding relation with the server application or not;
and if the client does not have the binding relationship, not responding to the call requests of the client to the configuration interface, the setting interface and the installation starting interface.
2. The method of claim 1, further comprising:
And in response to receiving a call request of the client to the progress acquisition interface, sending the installation progress of the target operating system in the host to the client so that the client displays the installation progress in the graphical user interface.
3. The method of claim 1, further comprising:
and sending the installation progress of the target operating system in the host to the client in response to the subscription of the client to the message of the installation progress, so that the client displays the installation progress in a graphical user interface.
4. A host in which a server application runs, the server application comprising:
The response module is suitable for receiving the detection message sent by the client with the graphical user interface; responding to the detection message, and returning a response message to the client;
The call response module is suitable for responding to the call request of the client to the configuration interface provided by the server application and sending the configuration item of the target operating system corresponding to the configuration interface to the client so that the client can display the configuration item in the graphical user interface; responding to a call request of the client to a setting interface provided by the server application, and generating a configuration file based on configuration parameters related to the configuration items carried by the call request; responding to a call request of the client to an installation starting interface provided by the server application, and installing a target operating system in the host based on the configuration file;
The server application is further adapted to: for the first received detection message, storing the binding relation between the client side sending the detection message and the server side application;
before responding to the call request of the client to the configuration interface, the setting interface and the installation starting interface, the method further comprises the following steps:
judging whether the client has a binding relation with the server application or not;
and if the client does not have the binding relationship, not responding to the call requests of the client to the configuration interface, the setting interface and the installation starting interface.
5. An operating system installation system comprising a client having a graphical user interface and a server application adapted to run in the host of claim 4, the client comprising:
The detection module is suitable for sending detection information to one or more hosts, wherein the hosts are operated with server-side applications, and the server-side applications are suitable for installing target operating systems in the hosts; receiving a response message returned by the server application in response to the detection message;
The configuration module is suitable for responding to the response message, acquiring the configuration item of the target operating system from the server application and displaying the configuration item in a graphical user interface; the configuration parameters related to the configuration items, which are input by a user in a graphical user interface, are sent to the server application, so that the server application generates a configuration file based on the configuration parameters; indicating the server application to install the target operating system based on the configuration file; and
And the interaction module is suitable for receiving the configuration parameters related to the configuration items, which are input by a user in a graphical user interface.
6. A computing device, comprising:
one or more processors;
A memory; and
One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing any of the methods of installing an operating system of claims 1-3.
7. A readable storage medium storing a program comprising instructions that, when executed by a computing device, cause the computing device to perform any of the methods of installing an operating system of claims 1-3.
CN202110388913.5A 2021-04-12 Method, host and system for installing operating system Active CN113076113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110388913.5A CN113076113B (en) 2021-04-12 Method, host and system for installing operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110388913.5A CN113076113B (en) 2021-04-12 Method, host and system for installing operating system

Publications (2)

Publication Number Publication Date
CN113076113A CN113076113A (en) 2021-07-06
CN113076113B true CN113076113B (en) 2024-05-14

Family

ID=

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1916846A (en) * 2005-08-17 2007-02-21 联想(北京)有限公司 Method for automatic deploying operate system
CN101344852A (en) * 2008-09-02 2009-01-14 华为技术有限公司 Method, device and system for allocating WINDOWS enterprise edition operating system
CN105791362A (en) * 2014-12-24 2016-07-20 联想(北京)有限公司 Server operating system deployment method and server
CN106789305A (en) * 2016-12-30 2017-05-31 中科同德(北京)生态科技有限公司 The intelligent gateway and control method of a kind of long-range adjusting parameter
CN107526618A (en) * 2017-09-04 2017-12-29 深圳互联先锋科技有限公司 system installation method and device
CN108418806A (en) * 2018-02-05 2018-08-17 新华三信息安全技术有限公司 A kind of processing method and processing device of message
CN108519887A (en) * 2018-04-02 2018-09-11 青岛宇硕云联信息科技有限公司 A large amount of linux servers method for rapidly mounting, device, computer readable storage medium and terminal device
CN109041216A (en) * 2018-09-21 2018-12-18 广州万物信息科技股份有限公司 Equipment localization method, device, computer equipment and storage medium
CN109165024A (en) * 2018-07-26 2019-01-08 天讯瑞达通信技术有限公司 A kind of method of operation platform automatic deployment and monitoring server system
CN112256288A (en) * 2020-10-23 2021-01-22 苏州浪潮智能科技有限公司 Linux system batch installation method, device and medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1916846A (en) * 2005-08-17 2007-02-21 联想(北京)有限公司 Method for automatic deploying operate system
CN101344852A (en) * 2008-09-02 2009-01-14 华为技术有限公司 Method, device and system for allocating WINDOWS enterprise edition operating system
CN105791362A (en) * 2014-12-24 2016-07-20 联想(北京)有限公司 Server operating system deployment method and server
CN106789305A (en) * 2016-12-30 2017-05-31 中科同德(北京)生态科技有限公司 The intelligent gateway and control method of a kind of long-range adjusting parameter
CN107526618A (en) * 2017-09-04 2017-12-29 深圳互联先锋科技有限公司 system installation method and device
CN108418806A (en) * 2018-02-05 2018-08-17 新华三信息安全技术有限公司 A kind of processing method and processing device of message
CN108519887A (en) * 2018-04-02 2018-09-11 青岛宇硕云联信息科技有限公司 A large amount of linux servers method for rapidly mounting, device, computer readable storage medium and terminal device
CN109165024A (en) * 2018-07-26 2019-01-08 天讯瑞达通信技术有限公司 A kind of method of operation platform automatic deployment and monitoring server system
CN109041216A (en) * 2018-09-21 2018-12-18 广州万物信息科技股份有限公司 Equipment localization method, device, computer equipment and storage medium
CN112256288A (en) * 2020-10-23 2021-01-22 苏州浪潮智能科技有限公司 Linux system batch installation method, device and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
不依赖IP路由的软件升级设计与实现;蒋元兵等;《通信技术》;20180910;2247-2251 *

Similar Documents

Publication Publication Date Title
CN108520454B (en) Method and system for calling back orders in real time
US10511482B2 (en) Dynamic activation of web applications
US10187445B2 (en) System, method and browser client for enabling browser data synchronization
CN107688538B (en) Script execution method and device and computing equipment
CN108197034B (en) Application testing method, server and system
CN112615822B (en) Message processing method and device, computing equipment and readable storage medium
US9990214B2 (en) Dynamic agent delivery
US10404568B2 (en) Agent manager for distributed transaction monitoring system
EP2985730A1 (en) Method and device for partially-upgrading
US11064078B2 (en) Information processing system, user terminal, and electronic apparatus
CN111563024A (en) Method and device for monitoring container process on host machine and computing equipment
CN110795343A (en) Test system, test method and computing device
CN110806928A (en) Job submitting method and system
CN111221793A (en) Data mining method, platform, computer equipment and storage medium
CN107528854B (en) Connection method, system, client and server based on workload certification
CN113076113B (en) Method, host and system for installing operating system
CN110717992B (en) Method, apparatus, computer system and readable storage medium for scheduling model
CN111949275A (en) Script deployment method, request processing method and device
CN113691618B (en) Message notification method, device, message center and storage medium
CN113076113A (en) Method, client, server application and system for installing operating system
WO2018121652A1 (en) Method and device for connecting wireless access point through application in user equipment
JP6285579B2 (en) Long polling processing method and system, and recording medium
CN115576711A (en) Method and system for simulating returned data and computing equipment
CN113821264B (en) Operating system installation control method, installation control system and computing device
KR20180125387A (en) Server for providing software platform and operating method for the same

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20210706

Assignee: Tongxin Software Technology Co.,Ltd.

Assignor: WUHAN DEEPIN TECHNOLOGY Co.,Ltd.

Contract record no.: X2021980010212

Denomination of invention: Method for installing operating system, client, server application and system

License type: Common License

Record date: 20210929

GR01 Patent grant