CN117093317A - Remote control method and device for computer, electronic equipment and storage medium - Google Patents

Remote control method and device for computer, electronic equipment and storage medium Download PDF

Info

Publication number
CN117093317A
CN117093317A CN202311352799.6A CN202311352799A CN117093317A CN 117093317 A CN117093317 A CN 117093317A CN 202311352799 A CN202311352799 A CN 202311352799A CN 117093317 A CN117093317 A CN 117093317A
Authority
CN
China
Prior art keywords
remote control
computer
virtual machine
control type
target
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.)
Granted
Application number
CN202311352799.6A
Other languages
Chinese (zh)
Other versions
CN117093317B (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.)
Yuexin Semiconductor Technology Co ltd
Original Assignee
Yuexin Semiconductor Technology Co 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 Yuexin Semiconductor Technology Co ltd filed Critical Yuexin Semiconductor Technology Co ltd
Priority to CN202311352799.6A priority Critical patent/CN117093317B/en
Publication of CN117093317A publication Critical patent/CN117093317A/en
Application granted granted Critical
Publication of CN117093317B publication Critical patent/CN117093317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • G06F9/548Object oriented; Remote method invocation [RMI]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a remote control method, a remote control device, electronic equipment and a storage medium of a computer, and relates to the technical field of Internet, wherein the method comprises the following steps: determining a control type of the remote control; if the virtual machine is of the first remote control type, a virtual machine list is obtained in response to a virtual machine query instruction, connection between terminal equipment and a target virtual machine is established, and remote control is carried out on the target virtual machine through the terminal equipment; if the remote control type is the second remote control type, responding to a computer query instruction to acquire a computer list, establishing connection between terminal equipment and a target computer, and remotely controlling the target computer through the terminal equipment; and if the remote control type is the third remote control type, responding to the operation instruction to obtain a graphical interface automation script, automatically operating the target application software by using the graphical interface automation script, and performing remote control by using the target application software. By adopting the remote control method, the remote control device, the electronic equipment and the storage medium of the computer, the problem of low processing efficiency of the desktop problem of the user is solved.

Description

Remote control method and device for computer, electronic equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and apparatus for remotely controlling a computer, an electronic device, and a storage medium.
Background
With the development of internet technology, remote control of a computer has become a common computer technology, and the remote control technology is widely applied to the fields of remote work, remote learning, technical support, remote maintenance and the like. Different remote control methods can implement different functions and services, such as screen sharing, remote control, etc.
However, in the intranet environment of the company, the non-uniformity of the remote connection technology method may reduce the efficiency of the help desk (Helpdesk) for handling the user desktop problem, and increase the workload and cost of the help desk.
Disclosure of Invention
Accordingly, the present application is directed to a method, apparatus, electronic device and storage medium for remote control of a computer, so as to solve the problem of low efficiency in processing the desktop problem of a user.
In a first aspect, an embodiment of the present application provides a remote control method for a computer, where the remote control method is applied to a remote control system, and the remote control system includes a front-end service and a back-end service, and the remote control method includes:
determining a control type for performing remote control on a computer, wherein the control type comprises a first remote control type, a second remote control type and a third remote control type, the first remote control type is a control type for performing remote control by utilizing a provided control interface, the second remote control type is a control type for performing remote control on a computer connected with a virtual network console server, and the third remote control type is a control type for performing remote control by utilizing application software not provided with a control interface;
if the virtual machine is of the first remote control type, a virtual machine list is obtained in response to a virtual machine query instruction, and connection between terminal equipment and a target virtual machine in the virtual machine list is established so as to remotely control the target virtual machine through the terminal equipment;
if the remote control type is the second remote control type, responding to a computer query instruction to acquire a computer list, and establishing connection between terminal equipment and a target computer in the computer list so as to remotely control the target computer through the terminal equipment;
and if the remote control type is the third remote control type, responding to an operation instruction aiming at the target application software to obtain a graphical interface automation script, automatically operating the target application software by using the graphical interface automation script, and performing remote control by using the target application software.
Optionally, the remote control system further comprises a desktop cloud cluster, the terminal device is provided with a browser, and the browser comprises an auxiliary program expansion module; the method for obtaining the virtual machine list in response to the virtual machine query instruction, and establishing connection between the terminal equipment and the target virtual machine in the virtual machine list comprises the following steps: responding to a virtual machine query instruction, and acquiring a virtual machine list from a back-end service by the front-end service; the front-end service sends the virtual machine list to a browser of the terminal equipment for display; responding to a virtual machine connection instruction aiming at a target virtual machine in a virtual machine list, and sending a virtual machine connection request to an auxiliary program expansion module by a front-end service; and the auxiliary program expansion module responds to the virtual machine connection request, acquires a token from the desktop cloud cluster, and establishes connection with the target virtual machine in the desktop cloud cluster by utilizing the token and virtual machine information of the target virtual machine.
Optionally, the remote control system further comprises a NoVNC service; responding to the computer inquiry command to obtain a computer list, establishing connection between the terminal equipment and a target computer in the computer list, and comprising the following steps: responding to the computer query instruction, the front-end service obtains a computer list from the back-end service, and sends the computer list to the terminal equipment for display; responding to a computer connection instruction aiming at a target computer in a computer list, and sending a computer connection request to a NoVNC service by a front-end service; the NoVNC service receives a computer connection request, converts WebSockets and TCP Sockets, and establishes connection between the terminal equipment and the target computer.
Optionally, the terminal device is provided with a browser, and the browser comprises an auxiliary program expansion module; the method for automatically operating the target application software by using the graphical interface automation script comprises the following steps of: responding to the operation instruction, and transmitting the connection information to an auxiliary program expansion module by the front-end service; the auxiliary program expansion module acquires a graphical interface automation script from the back-end service according to the connection information, and runs the graphical interface automation script returned by the back-end service; and operating the target application software by using the graphic interface automation script to realize remote control.
Optionally, the method further comprises: the front-end service receives a login instruction to generate a login request, and sends the login request to the back-end service; after receiving the login request, the back-end service initiates authentication to the active directory server; if the login request passes the authentication, determining whether the login request is the first authentication; if the user information is authenticated for the first time, storing the user information in a back-end service database, and adding the user information into the visitor group by default.
Optionally, the method further comprises: and synchronizing virtual machine information with the desktop cloud cluster according to the set interval by the back-end service timing.
Optionally, the backend service is a web service.
In a second aspect, an embodiment of the present application further provides a remote control device for a computer, where the remote control device is applied to a remote control system, and the remote control system includes a front-end service, a back-end service, and a terminal device, and the remote control device includes:
the type determining module is used for determining a control type for performing remote control on a computer, wherein the control type comprises a first remote control type, a second remote control type and a third remote control type, the first remote control type is a control type for performing remote control by using a provided control interface, the second remote control type is a control type for performing remote control on the computer connected with a virtual network console server, and the third remote control type is a control type for performing remote control by using application software not provided with a control interface;
the first remote control module is used for responding to a virtual machine query instruction to acquire a virtual machine list if the first remote control type is adopted, and establishing connection between the terminal equipment and a target virtual machine in the virtual machine list so as to remotely control the target virtual machine through the terminal equipment;
the second remote control module is used for responding to the computer query instruction to acquire a computer list if the second remote control type is adopted, and establishing connection between the terminal equipment and a target computer in the computer list so as to remotely control the target computer through the terminal equipment;
and the third remote control module is used for responding to the operation instruction aiming at the target application software to acquire the graphic interface automation script if the type is the third remote control type, automatically operating the target application software by using the graphic interface automation script and remotely controlling by using the target application software.
In a third aspect, an embodiment of the present application further provides an electronic device, including: the system comprises a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, the processor and the memory are communicated through the bus when the electronic device runs, and the machine-readable instructions are executed by the processor to execute the steps of the remote control method of the computer.
In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of a method for remote control of a computer as described above.
The embodiment of the application has the following beneficial effects:
the remote control method, the remote control device, the electronic equipment and the storage medium of the computer can judge the control types of different remote controls of the computer, adopt a modularized control mode, take different remote control technologies as different modules, and remotely control the control types through the calling and the combination of programs aiming at each control type.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for remotely controlling a computer according to an embodiment of the present application;
fig. 2 shows a flowchart for establishing a connection between a terminal device and a target virtual machine according to an embodiment of the present application;
fig. 3 shows a flowchart for establishing a connection between a terminal device and a target computer according to an embodiment of the present application;
FIG. 4 illustrates a flow chart for automatically running target application software using an automation script provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of a remote control device of a computer according to an embodiment of the present application;
fig. 6 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. Based on the embodiments of the present application, every other embodiment obtained by a person skilled in the art without making any inventive effort falls within the scope of protection of the present application.
It should be noted that, before the present application is put forward, with the development of the internet technology, the remote control computer has become a common computer technology, and the remote control technology is widely applied to the fields of remote work, remote learning, technical support, remote maintenance, and the like. Different remote control methods can implement different functions and services, such as screen sharing, remote control, etc. However, in a corporate intranet environment, the non-uniformity of the remote connection technology method may reduce the efficiency of the help desk (Helpdesk) to handle the user desktop problem, increasing the workload and cost of the help desk. For example: when the desktop cloud (Virtual Desktop Infrastructure, VDI) of the user is connected, the user needs to search the work number of the user in the ten desktop cloud clusters to find the corresponding VDI, and long time is required to do repeated work to connect to the user computer.
Based on the above, the embodiment of the application provides a remote control method of a computer, so as to improve the efficiency of processing the desktop problem of a user.
Referring to fig. 1, fig. 1 is a flowchart of a remote control method of a computer according to an embodiment of the application. As shown in fig. 1, the remote control method of a computer provided by the embodiment of the present application is applied to a remote control system, where the remote control system includes a front-end service and a back-end service, and the remote control method includes:
step S101, determining a control type for performing remote control on the computer.
The control type may refer to a manner of remotely controlling a computer.
The control types include a first remote control type, a second remote control type, and a third remote control type.
In the embodiment of the application, the remote control system is developed in a website mode, the front-end service is developed by tdesign for vue next, the back-end service is developed by django matched with mysql, and a browser Chrome or Edge Extension is used as a presentation form of a help desk helpdesk. The front-end service, the back-end service, and the NoVNC service may be deployed in three different servers, or may be deployed in the same server.
The help desk page is displayed on the browser, a user can display corresponding computers in the list interface by inquiring after inputting a work number in the help desk page, and can be connected with the controlled computer by clicking a connection button after selecting the controlled computer so as to carry out remote control. Wherein, the user refers to a user who performs remote control.
Before connecting the computer, it is first necessary to determine what type of remote control is performed, that is, determine the type of remote control, where the type of remote control may be determined before the user inputs the employee's job number and login password, or may be determined after the user inputs the employee's job number and login password. The method of determining the control type may be to determine a control type to be selected in response to a click operation of the user on the control type. The remote control system integrates three remote control modes, and can remotely control the computer through a first remote control mode, a second remote control mode and a third remote control mode after determining the control type.
Step S102, if the first remote control type is adopted, a virtual machine list is obtained in response to a virtual machine query instruction, and connection between the terminal equipment and a target virtual machine in the virtual machine list is established so as to remotely control the target virtual machine through the terminal equipment.
The first remote control type is a control type for remote control by using a provided control interface, namely, the first remote control type is a type for remote control by first remote control software, and the first remote control software refers to remote control software of a remote control protocol providing an interface or a method which can be called. The remote control system can directly use the first type of remote control software for remote control.
The first type of remote control software may be VDI (Virtual Desktop Infrastructure) or Microsoft Remote Desktop, for example. The VDI and Microsoft Remote Desktop both provide control interfaces, which can be directly used for remote control.
In the embodiment of the application, if the first remote control type is used, after the work number and the login password of the staff are input and verified, a user enters a first search page corresponding to the first remote control type, the content to be searched is input in the first search page, a search button is clicked to generate a virtual machine query instruction, the virtual machine query instruction is sent to a back-end service to obtain response information, the back-end service returns the response information corresponding to the virtual machine query instruction to a front-end page, and the response information comprises but is not limited to: VDI number, VDI name, and cluster address (IP address of physical machine computer). And generating a virtual machine list according to the returned response information, displaying the virtual machine list on the terminal equipment, and then establishing connection between the browser on the terminal equipment and the desktop cloud cluster so as to open a remote control page on the browser.
Step S103, if the second remote control type is adopted, a computer list is obtained in response to a computer query instruction, and connection between the terminal equipment and a target computer in the computer list is established so as to remotely control the target computer through the terminal equipment.
The second remote control type is a control type for performing remote control on a computer connected with the virtual network console server, namely, the computer to be controlled in the second remote control type is connected with the VNC (Virtual Network Console) server.
In the embodiment of the application, if the computer is of the second remote control type, a user enters a second search page corresponding to the second remote control type after the work number and the login password of the staff are input and verified, the content to be searched is input in the second search page, a search button is clicked to generate a computer query instruction, a queried computer list can be obtained through the computer query instruction, the computer to be queried in the computer query instruction is displayed in the computer list, and then the connection between the browser and a target computer in the computer list is established to remotely control the target computer.
Step S104, if the third remote control type is adopted, the graphical interface automation script is obtained in response to the operation instruction aiming at the target application software, the target application software is automatically operated by utilizing the graphical interface automation script, and the remote control is carried out by utilizing the target application software.
The third remote control type is a control type for remote control by using application software which does not provide a control interface, namely, the third remote control type is control by second type remote control software (third party remote connection tool), and the second type remote control software is remote control software of a remote control protocol which does not provide an interface or a method which can be called.
The second type of remote control software may be sunflower remote control software or Todesk remote control software, for example.
In the embodiment of the application, if the remote control type is a third remote control type, the user enters a third search page corresponding to the third remote control type after the work number and the login password of the staff are input and verified, and then the user can acquire a graphical interface automation script after inputting a APP (Application) name and a connection credential in the third search page, and the acquired graphical interface automation script is utilized to automatically run the APP corresponding to the APP name so as to remotely control the target computer.
Fig. 2 shows a flowchart for establishing a connection between a terminal device and a target virtual machine according to an embodiment of the present application.
The remote control system further comprises a desktop cloud cluster, the terminal equipment is provided with a browser, and the browser comprises an auxiliary program expansion module. As shown in fig. 2, obtaining a virtual machine list in response to a virtual machine query instruction, and establishing a connection between a terminal device and a target virtual machine in the virtual machine list, including:
in step S201, in response to the virtual machine query instruction, the front-end service acquires a virtual machine list from the back-end service.
Taking VDI connection as an example, the first search interface is used for searching the virtual machine, and after entering the first search page, the user inputs keywords to be searched in the first search page, for example: the part VDI identification is input, and after the search button is clicked, a virtual machine query instruction comprising the part VDI identification is generated, and the front-end service sends the virtual machine query instruction to the back-end service.
In step S202, the front-end service sends the virtual machine list to the browser of the terminal device for display.
The back-end service responds to the virtual machine query instruction, generates a virtual machine list matched with part of the VDI identifiers, returns the virtual machine list to the front-end service, and sends the virtual machine list to the browser for display. For example: and if the partial VDI mark is 12, displaying a virtual machine list formed by a plurality of virtual machine names such as EDT1204CT_e01204, QAE0812CT, FIET01203 CT_e01111 and the like on the browser, and displaying a cluster address and a VDI_ID corresponding to each virtual machine in the virtual machine list, wherein the VDI_ID is the number of the virtual machine in the VDI system, and the number is unique.
In step S203, in response to the virtual machine connection instruction for the target virtual machine in the virtual machine list, the front-end service sends a virtual machine connection request to the auxiliary program extension module.
In the virtual machine list, a corresponding remote assistance button is arranged beside each virtual machine, a user can select a target virtual machine which is expected to be connected from the virtual machine list, a virtual machine connection instruction is generated after the remote assistance button is clicked, and the front-end service sends a virtual machine connection request to an auxiliary program expansion module Extension according to the virtual machine connection instruction.
In step S204, the auxiliary program expansion module responds to the virtual machine connection request, acquires a token from the desktop cloud cluster, and establishes connection with the target virtual machine in the desktop cloud cluster by using the token and virtual machine information of the target virtual machine.
After the auxiliary program expansion module receives the virtual machine connection request, the auxiliary program expansion module carries virtual machine information such as a VDI name, a VDI_ID, a cluster address and the like, sends the virtual machine connection request to the desktop cloud cluster to obtain a token so as to open a remote control interface of the desktop cloud cluster, establishes connection between a browser and the desktop cloud cluster by using the token and the virtual machine information of the target virtual machine after obtaining the token, can enter the VDI control interface of a designated user, and connects the browser with the desktop cloud cluster, so that the remote control interface of the target virtual machine can be opened in the browser. The token is used for identity verification, interface abuse is prevented, and the token with authority can be used for remote control operation.
In an alternative embodiment, the method further comprises: and synchronizing virtual machine information with the desktop cloud cluster according to the set interval by the back-end service timing.
Specifically, the back-end service synchronizes virtual machine information with the desktop cloud cluster at regular intervals each day, so as to keep the front-end service to obtain the latest virtual machine information from the back-end service. The setting interval may be daily or every several hours, and the present application is not limited in particular herein.
Fig. 3 shows a flowchart for establishing a connection between a terminal device and a target computer according to an embodiment of the present application.
The remote control system further includes a NoVNC server, as shown in fig. 3, for obtaining a computer list in response to a computer query command, and establishing a connection between the terminal device and a target computer in the computer list, including:
s301, responding to a computer query instruction, the front-end service obtains a computer list from the back-end service, and sends the computer list to the terminal equipment for display.
After entering the second search page, the user inputs keywords to be searched in the second search page, for example: after inputting the computer identifier and clicking the search button, a computer query instruction comprising the computer identifier is generated, and the front-end service sends the computer query instruction to the back-end service.
The back-end service responds to the virtual machine query instruction, generates a computer list matched with the computer identifier, returns the computer list to the front-end service, and the front-end service sends the computer list to the browser for display. Wherein the computer identifier is at least a portion of the computer identifier, such as: the computer identifier may be a part of the computer name or may be the complete computer name. In addition, the computer list displays the IP address of each computer in addition to the computer identification.
S302, responding to a computer connection instruction aiming at a target computer in a computer list, and sending a computer connection request to a NoVNC service by a front-end service.
The user can select a target computer which is expected to be connected from the computer list, after clicking a remote assistance button, a computer connection instruction is generated, the front-end server directly sends a computer connection request to the NoVNC server, and connection between the front-end server and the NoVNC server is established.
S303, the NoVNC service receives a computer connection request, converts WebSockets and TCP Sockets, and establishes connection between the terminal equipment and the target computer.
The NoVNC service receives a computer connection request, converts the WebSockets protocol and the TCP Sockets protocol, and establishes connection between the NoVNC and the target computer, so that connection between the browser and the target computer can be realized. The NoVNC and the controlled computer adopt a TCP socket protocol, but the browser cannot directly use the protocol, connection of the browser is converted into a Tcp socket protocol through the Websocket protocol to be communicated, and the function of the NoVNC service is to actually convert the two protocols.
FIG. 4 illustrates a flow chart for automatically running target application software using an automation script provided by an embodiment of the present application.
The terminal device is provided with a browser, the browser comprises an auxiliary program expansion module, as shown in fig. 4, a graphical interface automation script is obtained in response to an operation instruction aiming at target application software, the target application software is automatically operated by using the graphical interface automation script, and the method comprises the following steps:
s401, responding to the operation instruction, the front-end service sends the connection information to the auxiliary program expansion module.
After entering the third search interface, the user inputs the name and the connection code of the APP to be used in the third search interface, clicks the remote assistance button, generates a connection instruction comprising the input APP name and connection code, and the front-end service sends the connection instruction to the auxiliary program expansion module Extension. The APP name and the connection code are connection information, and the APP name may be sunflower, for example.
S402, the auxiliary program expansion module acquires the graphical interface automation script from the back-end service according to the connection information, and runs the graphical interface automation script returned by the back-end service.
The auxiliary program Extension module Extension receives the connection information, generates an automatic script acquisition request according to the connection information, sends the automatic script acquisition request to the back-end service, and returns a graphical interface automatic script to the auxiliary program Extension module Extension after the back-end service receives the automatic script acquisition request. The graphical interface automation script may refer to a GUI automation script, i.e., a graphical user interface automation script.
S403, the target application software is operated by utilizing the graphic interface automation script, and remote control is realized.
And the auxiliary program Extension module Extension stores the GUI automatic script returned by the back-end service into a temporary folder of the computer and operates the GUI automatic script automatically operates the sunflower APP, automatically identifies APP window information and automatically operates the APP to operate remote connection. For example: the GUI automation script first detects whether sunflower is running or not, and if not, automatically turns on the sunflower. The GUI automation script would then loop detecting the computer window handle until sunflower is found. After finding the sunflower, the control object of the identification code (target computer) in the sunflower window is searched and the control code is inserted. Finally, search for the connection button object in the sunflower window, transmit click signal, in order to realize the remote connection.
In an alternative embodiment, the method further comprises: the front-end service receives a login instruction, generates a login request and sends the login request to the back-end service; after receiving the login request, the back-end service initiates authentication to the active directory server; if the login request passes the authentication, determining whether the login request is the first authentication; if the user information is authenticated for the first time, storing the user information in a back-end service database, and adding the user information into the visitor group by default.
Specifically, when a user logs in a help desk page, a login instruction is generated after clicking a login button by the user, a front-end service generates a login request in response to the login instruction, the login request is sent to a back-end service, the back-end service sends a user name and a password to an Active Directory (AD) server to perform AD authentication, and if the AD authentication is successful, the login is determined to be successful.
After the first authentication is successful, the user is added into a back-end service database for management, and is added into a visitor group by default, the user in the visitor group has no authority, and the user is required to be set into other security groups in the background service for normal use.
In an alternative embodiment, the backend service is a web service.
Specifically, the terminal device displays each page through a browser, the back-end service is implemented by using a web service, and if the back-end service is separately set in one server, the server is a web server.
In the prior art, if the controlled computer is a desktop cloud virtual machine, searching in each desktop cloud cluster is needed when the remote connection is performed, and the controlled computer cannot be connected until the controlled computer is searched. If the user uses the physical machine, the user needs to inquire the IP address or the computer name of the controlled computer, and then input the IP or the computer name and the password after operating the VNC Viewer.
Compared with the remote control method of the computer in the prior art, the remote control method of the computer can judge the control types of different remote controls of the computer, adopts a modularized control mode, takes different remote control technologies as different modules, carries out remote control on the control types through the calling and the combination of programs aiming at each control type, and solves the problem of low efficiency of processing the desktop problem of a user.
Based on the same inventive concept, the embodiment of the application also provides a remote control device of a computer corresponding to the remote control method of the computer, and because the principle of solving the problem of the device in the embodiment of the application is similar to that of the remote control method of the computer in the embodiment of the application, the implementation of the device can refer to the implementation of the method, and the repetition is omitted.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a remote control device for a computer according to an embodiment of the application. As shown in fig. 5, the remote control apparatus 500 of the computer is applied to a remote control system, the remote control system includes a front-end service, a back-end service, and a terminal device, and the apparatus includes:
the type determining module 501 is configured to determine a control type for performing remote control on a computer, where the control type includes a first remote control type, a second remote control type, and a third remote control type, where the first remote control type is a control type for performing remote control using a provided control interface, the second remote control type is a control type for performing remote control on a computer connected to a virtual network console server, and the third remote control type is a control type for performing remote control using application software that does not provide a control interface;
the first remote control module 502 is configured to, if the first remote control type is used, obtain a virtual machine list in response to a virtual machine query instruction, and establish a connection between the terminal device and a target virtual machine in the virtual machine list, so as to remotely control the target virtual machine through the terminal device;
the second remote control module 503 is configured to, if the second remote control type is used, obtain a computer list in response to a computer query instruction, and establish a connection between the terminal device and a target computer in the computer list, so as to remotely control the target computer through the terminal device;
and the third remote control module 504 is configured to, if the third remote control type is used, obtain a graphical interface automation script in response to an operation instruction for the target application software, automatically operate the target application software using the graphical interface automation script, and perform remote control using the target application software.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the application. As shown in fig. 6, the electronic device 600 includes a processor 610, a memory 620, and a bus 330.
The memory 620 stores machine-readable instructions executable by the processor 610, when the electronic device 600 is running, the processor 610 communicates with the memory 620 through the bus 630, and when the machine-readable instructions are executed by the processor 610, the steps of the remote control method of the computer in the method embodiment shown in fig. 1 can be executed, and the specific implementation is referred to the method embodiment and will not be described herein.
The embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the remote control method of the computer in the embodiment of the method shown in fig. 1 can be executed, and the specific implementation manner can refer to the embodiment of the method and will not be described herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above examples are only specific embodiments of the present application, and are not intended to limit the scope of the present application, but it should be understood by those skilled in the art that the present application is not limited thereto, and that the present application is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (10)

1. A remote control method for a computer, the remote control method being applied to a remote control system, the remote control system including a front-end service and a back-end service, the remote control method comprising:
determining a control type for performing remote control on a computer, wherein the control type comprises a first remote control type, a second remote control type and a third remote control type, the first remote control type is a control type for performing remote control by utilizing a provided control interface, the second remote control type is a control type for performing remote control on a computer connected with a virtual network console server, and the third remote control type is a control type for performing remote control by utilizing application software not provided with a control interface;
if the virtual machine is of the first remote control type, a virtual machine list is obtained in response to a virtual machine query instruction, and connection between terminal equipment and a target virtual machine in the virtual machine list is established so as to remotely control the target virtual machine through the terminal equipment;
if the remote control type is the second remote control type, a computer list is obtained in response to a computer query instruction, and connection between the terminal equipment and a target computer in the computer list is established so as to remotely control the target computer through the terminal equipment;
and if the remote control type is the third remote control type, responding to an operation instruction aiming at the target application software to obtain a graphical interface automation script, automatically operating the target application software by using the graphical interface automation script, and performing remote control by using the target application software.
2. The method of claim 1, wherein the remote control system further comprises a desktop cloud cluster, the terminal device is installed with a browser, and the browser comprises an auxiliary program extension module;
the method for obtaining the virtual machine list in response to the virtual machine query instruction, and establishing connection between the terminal equipment and the target virtual machine in the virtual machine list comprises the following steps:
responding to the virtual machine query instruction, and acquiring a virtual machine list from the back-end service by the front-end service;
the front-end service sends the virtual machine list to a browser of terminal equipment for display;
responding to a virtual machine connection instruction aiming at a target virtual machine in the virtual machine list, and sending a virtual machine connection request to the auxiliary program expansion module by the front-end service;
and the auxiliary program expansion module responds to the virtual machine connection request, acquires a token from the desktop cloud cluster, and establishes connection with a target virtual machine in the desktop cloud cluster by utilizing the token and virtual machine information of the target virtual machine.
3. The method of claim 1, wherein the remote control system further comprises a NoVNC service;
the computer list is obtained in response to a computer query instruction, and the connection between the terminal equipment and a target computer in the computer list is established, and the method comprises the following steps:
responding to a computer query instruction, the front-end service obtains a computer list from the back-end service, and sends the computer list to terminal equipment for display;
responding to a computer connection instruction aiming at a target computer in the computer list, and sending a computer connection request to the NoVNC service by the front-end service;
and the NoVNC service receives the computer connection request, converts WebSockets and TCP Sockets and establishes connection between the terminal equipment and the target computer.
4. The method according to claim 1, wherein the terminal device is installed with a browser, the browser including an auxiliary program extension module;
the method for automatically operating the target application software by using the graphical interface automation script comprises the following steps of:
responding to the operation instruction, the front-end service sends connection information to the auxiliary program expansion module;
the auxiliary program expansion module acquires a graphical interface automation script from the back-end service according to the connection information, and runs the graphical interface automation script returned by the back-end service;
and operating the target application software by using the graphical interface automation script to realize remote control.
5. The method according to claim 1, wherein the method further comprises:
the front-end service receives a login instruction to generate a login request, and sends the login request to the back-end service;
after receiving the login request, the back-end service initiates authentication to an active directory server;
if the login request passes the authentication, determining whether the login request is the first authentication;
if the user information is authenticated for the first time, storing the user information in a back-end service database, and adding the user information into the visitor group by default.
6. The method according to claim 2, wherein the method further comprises:
and synchronizing virtual machine information with the desktop cloud cluster according to the set interval by the back-end service timing.
7. The method of claim 1, wherein the backend service is a web service.
8. A remote control device for a computer, the remote control device being applied to a remote control system, the remote control system including a front-end service and a back-end service, the remote control device comprising:
the type determining module is used for determining a control type for performing remote control on a computer, wherein the control type comprises a first remote control type, a second remote control type and a third remote control type, the first remote control type is a control type for performing remote control by utilizing a provided control interface, the second remote control type is a control type for performing remote control on the computer connected with a virtual network console server, and the third remote control type is a control type for performing remote control by utilizing application software not provided with a control interface;
the first remote control module is used for responding to a virtual machine query instruction to acquire a virtual machine list if the first remote control type is adopted, and establishing connection between terminal equipment and a target virtual machine in the virtual machine list so as to remotely control the target virtual machine through the terminal equipment;
the second remote control module is used for responding to a computer query instruction to obtain a computer list if the second remote control type is adopted, and establishing connection between the terminal equipment and a target computer in the computer list so as to remotely control the target computer through the terminal equipment;
and the third remote control module is used for responding to the operation instruction aiming at the target application software to acquire a graphical interface automation script, automatically operating the target application software by using the graphical interface automation script and remotely controlling by using the target application software if the third remote control type is the third remote control type.
9. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the method of remote control of a computer as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the remote control method of a computer according to any of claims 1 to 7.
CN202311352799.6A 2023-10-19 2023-10-19 Remote control method and device for computer, electronic equipment and storage medium Active CN117093317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311352799.6A CN117093317B (en) 2023-10-19 2023-10-19 Remote control method and device for computer, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311352799.6A CN117093317B (en) 2023-10-19 2023-10-19 Remote control method and device for computer, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117093317A true CN117093317A (en) 2023-11-21
CN117093317B CN117093317B (en) 2024-01-30

Family

ID=88773858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311352799.6A Active CN117093317B (en) 2023-10-19 2023-10-19 Remote control method and device for computer, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117093317B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020069276A1 (en) * 2000-07-28 2002-06-06 Matsushita Electric Industrial Company, Ltd. Remote control system and home gateway apparatus
US6505238B1 (en) * 1999-08-19 2003-01-07 International Business Machines Corporation Method and system for implementing universal login via web browser
CN1642101A (en) * 2004-01-15 2005-07-20 英业达股份有限公司 Omnirange remote control system and method
CN104283879A (en) * 2014-10-09 2015-01-14 广州杰赛科技股份有限公司 Virtual machine remote connection method and system
CN107809441A (en) * 2017-12-12 2018-03-16 国网湖南省电力有限公司 The long-range connection method of power system computation machine equipment based on multiwindow and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6505238B1 (en) * 1999-08-19 2003-01-07 International Business Machines Corporation Method and system for implementing universal login via web browser
US20020069276A1 (en) * 2000-07-28 2002-06-06 Matsushita Electric Industrial Company, Ltd. Remote control system and home gateway apparatus
CN1642101A (en) * 2004-01-15 2005-07-20 英业达股份有限公司 Omnirange remote control system and method
CN104283879A (en) * 2014-10-09 2015-01-14 广州杰赛科技股份有限公司 Virtual machine remote connection method and system
CN107809441A (en) * 2017-12-12 2018-03-16 国网湖南省电力有限公司 The long-range connection method of power system computation machine equipment based on multiwindow and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王桐等: "多网络和Linux代理的Android无线远程控制系统", 单片机与嵌入式系统应用, no. 12, pages 60 - 63 *

Also Published As

Publication number Publication date
CN117093317B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
CN106874389B (en) Data migration method and device
US20200213403A1 (en) Information transmission method and device
US8856906B2 (en) Authentication processing method and system
US9524133B2 (en) Printing server group including a print service of transferring a print job to a printer via a network
US9253128B2 (en) Instant messaging with browser collaboration
CN104618622A (en) Method and system for binding user account and image forming device by mobile terminal
CN103051646A (en) Information synchronization method and device
CN102483733A (en) Synchronizing User And Machine Data During Tracking Of Products On A User Computer
CN103391307A (en) Off-line transparent-transmitting and display method, device and system for off-line data
JP2008287614A (en) Screen output setting method, information processor and information processing system
CN103401883A (en) Single sign-on method and system
US20060168079A1 (en) System and method for automatically connecting a client computer to a server
CN111460356A (en) Automatic login method, device, medium and equipment
US10257254B2 (en) Method and associated server for providing user-friendly operation
CN111880858A (en) Document processing and instant messaging method, device, electronic equipment and storage medium
CN103546492A (en) Unattended operation installation system and method
CN102664756B (en) Device access method, device and system
US20150358428A1 (en) Information processing system, information processing method, information processing apparatus, and control methods and control programs thereof
CN117093317B (en) Remote control method and device for computer, electronic equipment and storage medium
WO2015136582A1 (en) Information device identification system, information device identification method, information device, and program
CN112187718A (en) Remote access cloud terminal and system of IDV cloud desktop
TW201005546A (en) System and method for using virtual IP addresses in a multi-user server system
WO2022121492A1 (en) File transmission method and apparatus, computer device, and storage medium
CN112306591A (en) Remote debugging method and device based on page
CN104468645A (en) Control method, electronic equipment, and information transmission method and device

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
GR01 Patent grant
GR01 Patent grant