A kind of method of supporting multi-language operation system
Technical field
The invention belongs to the computer information processing field, the method that realizes quick and convenient switching operating system language at the environment of multilingual user's coexistence down is provided.
Background technology
Majorities such as current computer information service place such as hotel concerning foreign affairs, external mechanism all are to adopt pure Chinese operating system computing machine.Minority adopts a computing machine that Chinese, English two operating systems are installed, and then switch between two systems, but because technology barrier, dual system is switched operations such as need restarting computing machine, complex steps, consuming time extremely long, in actual use, cause great inconvenience to the end user.And because shortage for the support of other languages, makes the international personage that the computing machine user demand is more arranged have no way of selecting.
Also have the minority service location to adopt many Computer Service, every computing machine is supported a kind of languages, though this language that solves and the problem of timeliness, the cost input for itself has caused huge waste undoubtedly.
The present invention relies on the language support to the existing absolute most of official in world languages, can be under the server/terminal structure, environment to multilingual user's coexistence is realized quick and convenient switching operating system language, use multilingual computing machine to manage business from all over the world people easily just as the country at oneself, this is for promoting industry concerning foreign affairs and national image will play an important role.
Summary of the invention
The user who the invention enables different language is by the same multilingual terminal device resource that just can use a computer with the operation interface of own languages, for example daily web page browsing, receiving and dispatching mail, work such as documents editing.The realization of this method is based on the network connection.The user uses multilingual terminal device to sign in to the multi-language system server that is in the network topology structure center by the network connection and with specific user identity.Can make multilingual terminal device support all languages operating systems that the multi-language system server is supported, the terminating machine user need not to restart and selects or switch to the operating system of the language form that oneself needs fast, and the operating system of presenting to terminal device is supported Multi-User Multi-Task.Be connected to the authority that the terminal user of server can give according to the keeper by multilingual terminal, management and use the software resource and the hardware resource of server.The operating system management instrument is consistent with the operation interface that the user uses the SOS of selected languages to present with application program is presented to the user at run duration operation interface, has very big dirigibility, practicality, controllability, security.
Utilize the dirigibility of terminal/server framework, providing and the use of operating system is separated with operating-system resources.Traditional PC notion is developed into a kind of new system architecture of " concentrating provides resource, distributes to use resource ".Under this pattern, PC user login notion develops into the notion of terminal Connection Service device.Logging off users promptly disconnects this connection.
The server/terminal framework concentrates on resource on the server, goes up the support file that a plurality of national languages are installed in server OS (a Multi-User Multi-Task system).And create the system account number corresponding with each language.Server has just had the multilingual environment condition of operation down.Its system language is also inequality when logining with different user account numbers.
On server, realize the service end of three kinds of agreements.
One: the file transfer protocol (FTP) service end is used for the file that the terminal device operation needs is passed in the terminal device internal memory.The communications protocol clients corresponding is the program that is solidificated in the terminal device storage chip therewith.Can utilize behind the starting terminal and operate in more high-rise program and service end communication.
Two: audio frequency and video and control information host-host protocol service end, user that the service end processing terminal receives operation, and make correspondingly, the result is transferred on the terminal device dynamically with program run.Thereby realized by terminal and user interactions.
Three: the control information host-host protocol.Be used for doing server and terminal synchronously, internal control information mutual.
Terminal is directly in the face of user's equipment, so must realize on terminal and the method for user interactions.On client, realize the client modules of above three kinds of agreements.Document transmission module is used for terminal device and starts transfer files between the file server of back and server end.The system interface module is used for realizing the graphical user interface when terminal device is in waiting status, has realized the client of internal control agreement in this inside modules.The terminal control module is used for receiving terminal user operation and operation is transferred to terminal server, simultaneously with the program run interface display of server end to local terminal.
Server started before terminal device, and above three kinds of services are provided, and the starting terminal process is as follows.
First step start is connected and fixed the server of the network address or uses the dynamic network agreement to obtain server address.
Second step was connected the download terminal operating file to local internal memory with the file service process.
The 3rd step terminal operating second step downloaded files, to the executive system interface module, so far terminal is in waiting status.Wait for that the user selects the operating system of required languages.
Terminal device is as follows with the step of cooperating of server:
Step (1) user selects the operating system that will enter by input equipment.
Create consumer process after the request of step (2) server response terminal equipment, this consumer process operates on the server, and the control of receiving terminal service processes.
The operation result of step (3) consumer process is passed to the Terminal Service process, the Terminal Service process becomes network data according to the regulation of ad hoc network agreement with this data processing and gives the network equipment of server end, data is passed to the terminal device that is associated with the consumer process that produces these data by it.
Step (4) is transferred to the data of terminal server process for terminal device, and the Terminal Service process will be implemented inverse operation, according to network protocol specifies network data be split into and can recognition data be sent to consumer process.
Description of drawings
Fig. 1 is the schematic diagram according to the embodiment of the invention.
Embodiment
This method can be divided into three according to the present invention and implement part:
First: server.Server software also should have the language pack that is supported in operation under the multiple national language environment except having operating system characteristic commonly used, select with which kind of language environment operation for terminal.Have terminal server, file server, control information service routine.Wherein terminal server is used for control terminal and connects session, the process that transmission session data and office terminal request produce.File server is used for monitoring the file transfer requests of self terminal.The control information service routine is non-program to be arranged, and is responsible for the control information between generation, reception, processing server and the terminal.
Second portion: terminal device.Terminal device is one and follows directly mutual instrument of user, has output devices such as display device and mouse-keyboard and be used for the actual user mutual on the hardware level.On the software level, has the software layer that drives hardware and united and coordinating program run.And the realization program of wanting required host-host protocol is used for producing, transmit, explain the network data between terminal and the server.
Third part: procotol part.Procotol is the set of data transmission series of rules, is mainly used to data correctly are transferred to the destination.The final functional unit of the agreement that this method is used has, file transfer, and image information and user's operation information transmission, their realization has very strong washability.Underlying protocol can be used existing TCP/IP protocol suite fully.No matter be to select existing protocol or customized voluntarily new protocol rule, all should have two functional units of above requirement.
More than three funtion parts in multi-language system, cooperate with each other and just can realize the function of multi-language system.Two duties are arranged: terminal wait state and terminal connection status after the startup of terminal device.Just be in waiting status after the normal startup of terminal, this moment, terminal showed the operating system tabulation of support and wait user's selection.The terminal that is in waiting status does not connect the operating system service of yet not asking multilingual server to provide with multilingual server.After the user selected the operating system of a certain language, terminal just request server provided service, and transmitted parameters such as user name, password, color scheme according to user's selection and give server.After successfully landing, the operation system interface after the login of terminal meeting explicit user.Terminal works is in connection status at this moment, and user's operation can be given server and be handled.If the active user nullifies or close current operation system, terminal can automatic cutout and being connected and turning back to waiting status of server, and the display operation system list is selected the operating system of another kind of languages for the user.So the multilanguage operating system that this method realizes when switching languages not institute's classic method restart machine, and just disconnect the process that an existing net connection rebulids another connection.
Support multi-language operation system method realization as shown in fig. 1, multilingual server (310) follows many multilingual terminals to couple together by network (420), the terminal device inner structure is an example with multilingual terminal (320).As mentioned above, multilingual terminal (320) is shown to display (430) from needed data of file server (332) downloading-running and startup with operation system interface.The user selects the operating system that will enter by input equipment (440).Pass through after a series of processes, in the last demonstration of terminal display (430) is the operation system interface that the operating system server provides.The terminal user operates by input equipment (440), and request runs application.Create consumer process (360) after the request of server response terminal equipment (320), consumer process (360) operates on the server as shown in the figure, and the control of receiving terminal service processes.Terminal Service process (340) is management terminal device (320) requesting users process (360) process of also managing other terminal device request not only.
The process that all terminal users ask to set up is at run duration, their the employed driver of input and output request is not the driver that the server OS operation drives local hardware, the operation result of consumer process neither be outputed to local output device, pass to terminal server process (331) but convert special data mode to, send to terminal device (320) by Terminal Service process (331).After Terminal Service process (331) receives the operation that terminal device transmits, consumer process (360) is submitted in user's operation, received the user with consumer process from local input equipment and operate the same.
The effect of Terminal Service process (331) in total system is processing and explains network data, the Terminal Service process becomes network data with this data processing and gives the network equipment (350) that server (310) is held according to the regulation of ad hoc network agreement, data is passed to the terminal device (320) that is associated with the consumer process (360) that produces these data by it.Be transferred to the data of terminal server process (331) for terminal device (320), Terminal Service process (331) will be implemented inverse operation, according to network protocol specifies network data be split into and can recognition data be sent to consumer process (360).
The related network equipment (350) of above content is mounted in the entity of server end.Direct serviced device operating system kernel drives and management.Terminal Service process (331) is the user space processes that directly is operated system core control with file server process (332).They are that with terminal user's process difference of shape such as consumer process (360) their input and output are directly to realize by operation system driver operation local hardware.
Terminal device (320) be multilingual terminal group one of them, the network equipment (380) by terminal this locality on Physical layer connects with server (310).Terminal device (320) logically is connected with file service process (332) and control protocol service processes (333) with the Terminal Service process (331) of server, be solidificated in the data file of the program of storage chip on the terminal device (320) from the operation of file service process (332) download terminal, terminal is normal start after, three modules of client process (390) are responsible for respectively safeguarding and being connected and transmitting data of terminal server (331).Client process is monitored the data from the network equipment (380), receives that the data that terminal server (331) sends are interpreted as graphical information with it afterwards, give output device interface (410) and output to display.Output device interface (410) is the hardware interface that is integrated in the terminal device (320) with input equipment interface (400), is responsible for being connected to the input and output of the local peripheral hardware of terminal.As display (430), mouse-keyboard (440).
Client process (390) is monitored the input information of input equipment interface, comprises mouse moving, click action, users' such as keyboard scancode input information.The network data that becomes terminal server (340) to explain these information processings is sent to server (310).
Use the user of multilingual terminal and the reciprocal process of operating system, come down to the procotol reciprocal process of client process (390) and Terminal Service process (330).In the whole process that terminal is cooperated with server, add the internal control agreement and make two ends can automatically finish operation for terminal, for example modification of configuration information, terminal or the like is restarted in the coordination of file transfer.
The above is the cooperation mode between terminal device (320) each functional unit when being operated in connection status.Terminal (320) duty has two kinds during languages operating system that the user selects oneself to want, a kind of is that terminal device (320) is in waiting status, another kind is that terminal device (320) is in connection status, if terminal device (320) is in first kind of state at this moment, the selective listing of display (430) meeting display operation system, corresponding option in the direct clicking operation system list of user then, terminal device (320) can be created a client process (390) and by this process connecting terminal service processes (331), enter the system operation interface that server (310) provides then.If terminal device (320) is in connection status at this moment, the process that then needs a system to switch, user's (320) current operating system that provides of will nullifying or close a terminal at first, this moment, client process (390) active request disconnected and being connected of terminal server (340).And client process (390) withdraws from automatically, and terminal turns back to waiting status by connection status.Perhaps because of surpassing the tie-time restriction, Terminal Service process (331) active disconnection is connected with client process (390), and terminal device (320) turns back to waiting status.After terminal is got back to waiting status, can be on display (430) display operation system list again, after the operating system that the user oneself need to select, terminal can rebulid a client process (390), and this process rebulids connection with Terminal Service process (331), and parameters such as the user profile of new languages and terminal displaying scheme are passed to Terminal Service process (331), the Terminal Service process allows after the new user login just the operation interface with the operating system of newspeak type to be transferred to terminal (320) to go up and show, thus the switching of complete operation system.