CN103368953B - A kind of Mongolian installation method based on (SuSE) Linux OS - Google Patents
A kind of Mongolian installation method based on (SuSE) Linux OS Download PDFInfo
- Publication number
- CN103368953B CN103368953B CN201310269701.0A CN201310269701A CN103368953B CN 103368953 B CN103368953 B CN 103368953B CN 201310269701 A CN201310269701 A CN 201310269701A CN 103368953 B CN103368953 B CN 103368953B
- Authority
- CN
- China
- Prior art keywords
- mongolian
- bag
- server
- linux
- suse
- 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
Links
Landscapes
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention discloses a kind of Mongolian installation method based on (SuSE) Linux OS, the method includes:Build the server of the Mongolian bag that is stored with;When client request installs Mongolian, detect whether current (SuSE) Linux OS has installed Mongolian, if testing result is no, Mongolian bag described in the server to the client push;The cryptographic Hash of the Mongolian bag in the server in the cryptographic Hash of Mongolian bag and the client is obtained and compare, if the two cryptographic Hash is consistent, Mongolian bag is installed, otherwise, status of fail code is returned to notify user.The Mongolian installation method of the present invention, it is achieved that a kind of by network (SuSE) Linux OS Mongolian installation method, the method is simple to operate, reduces the time that user oneself configures Mongolian.And due to also detecting the cryptographic Hash of Mongolian bag in a pre-installation, so relatively accurately the Mongolian bag for acquiring can be relatively safe installed.
Description
Technical field
The present invention relates to a kind of software installation technical field, more particularly to a kind of Mongolian based on (SuSE) Linux OS
Installation method.
Background technology
As the technology of information age develops, Mongolian system and software industry are also being enriched step by step.However, due to covering
The writing of the particularity of ancient Chinese prose, i.e. same Mongolian character(Manifest form), position of the meeting according to which in word is different, list
The attributes such as the part of speech of word are different and change so that it is form after the character change to be presented in face of people(Referred to as show
Existing font), and do not take in Mongolian in ISO/IEC10646 standard and manifest character, therefore, need when Mongolian is shown
Based on context the nominal character of Mongolian is mapped to which and manifests character accordingly, this needs special Mongolian word and draws
Hold up and in addition process is done, the Mongolian font after enabling mongolian character normally to show deformation.
At present, there is no any Mongolian installation method for being applied to (SuSE) Linux OS, certainly will so influence whether
The informationalized development of Mongolian.Therefore, a solution is needed badly to solve the above problems.
Content of the invention
One of the technical problem to be solved is to need to provide a kind of Mongolian Wenan based on (SuSE) Linux OS
Dress method, the method can be applied to (SuSE) Linux OS.
In order to solve above-mentioned technical problem, the invention provides a kind of Mongolian installation side based on (SuSE) Linux OS
Method, the method include:Step is built, the server of the Mongolian bag that is stored with is built, the Mongolian bag is included using pango mould
Block processes the Substitution Rules of Mongolian character and the Mongolian word engine of Mongolian Character deformation;Detecting step, in client
When Mongolian is installed in request, detect whether current (SuSE) Linux OS has installed Mongolian, if testing result is no, institute
State Mongolian bag described in server to the client push;Comparison step, obtains and compares Mongolian bag in the server
Cryptographic Hash and the client in Mongolian bag cryptographic Hash, if the two cryptographic Hash is consistent, Mongolian bag is installed, no
Then, status of fail code is returned to notify user, wherein, the cryptographic Hash is Mongolian bag to be calculated using hash algorithm
The value for arriving.
In one embodiment, if testing result has installed Mongolian for current (SuSE) Linux OS, relatively more current
The version of the version of Mongolian bag and Mongolian bag in the server in (SuSE) Linux OS, if current (SuSE) Linux OS
The version of middle Mongolian bag is lower than the version of Mongolian bag in the server, then the server is to the client push institute
State Mongolian bag.
In one embodiment, in the detecting step, the client is by socket interface channel to the clothes
Business device sends socket connection request to ask to install Mongolian, and the server is by socket interface channel to the client
End sends whether message has installed Mongolian with the current (SuSE) Linux OS of request detection.
In one embodiment, judge according to socket return value that the server to client push Mongolian bag is
No success.
In one embodiment, when Mongolian bag is installed, the Mongolian bag is decompressed, and the file after decompression is pacified
Corresponding catalogue in (SuSE) Linux OS is attached to, wherein, the Mongolian word engine in Mongolian bag is installed to/etc/
In pango catalogue.
Compared with prior art, one or more embodiments of the invention can have the advantage that:
The Mongolian installation method of the present invention, by building the server of the Mongolian bag that is stored with, and by client to
The server sends request to install Mongolian, it is achieved that a kind of by network in the Mongolian installation side of (SuSE) Linux OS
Method, the method are simple to operate, reduce the time that user oneself configures Mongolian.And due to also detecting Mongolian bag in a pre-installation
Cryptographic Hash, so relatively accurately the Mongolian bag for acquiring can be relatively safe installed.
Other features and advantages of the present invention will be illustrated in the following description, also, partly be become from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can pass through in specification, right
In claim and accompanying drawing, specifically noted structure is realizing and obtain.
Description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for specification, the reality with the present invention
Apply example to be provided commonly for the present invention is explained, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is that the flow process of the Mongolian installation method based on (SuSE) Linux OS according to an embodiment of the invention is illustrated
Figure;
Fig. 2 is the schematic flow sheet for setting up Socket interface channel;
Fig. 3 is the operating process schematic diagram for processing mongolian character using Mongolian word engine.
Specific embodiment
Describe embodiments of the present invention below with reference to drawings and Examples in detail, whereby how the present invention is applied
Technological means is solving technical problem, and reaches realizing process and fully understanding and implement according to this for technique effect.Need explanation
As long as not constituting conflict, each embodiment in the present invention and each feature in each embodiment can be combined with each other,
The technical scheme for being formed is all within protection scope of the present invention.
In addition, can be in the department of computer science of such as one group of computer executable instructions the step of the flow process of accompanying drawing is illustrated
Execute in system, and, although show logical order in flow charts, but in some cases, can be to be different from herein
Order execute shown or described step.
Fig. 1 is that the flow process of the Mongolian installation method based on (SuSE) Linux OS according to an embodiment of the invention is illustrated
Figure, below with reference to the accompanying drawings each step to the present embodiment is described in detail.
Step S110, builds server.
Step S120, in server, wherein, Mongolian bag includes to cover using pango resume module copy Mongolian bag
The Mongolian word engine of the Substitution Rules of ancient Chinese prose character and Mongolian Character deformation.
Step S130, request install Mongolian.
Specifically, the client of custom system sends socket connection request by socket interface channel to server end
Mongolian is installed with request.
It should be noted that before the request is sent, need to set up socket interface channel.Specifically as shown in Fig. 2 in clothes
Business device end, sets up stream socket first with Socket () function, using Bind () function configuration local port and IP(Tie up
Socket is determined to port), client request is begun listening for and is received using Listen ().In client first with Socket
() function sets up stream socket, using Bind () function configuration local port and IP(Socket is to port for binding), then,
It is connected with remote server using Connect () function.Server end is received client request and is connected using Accept () function
Connect, now, client and server end is utilized respectively Recv () and Send () function to receive message and send message, is connecing
After receiving and having sent message, both sides close connection using Close () function.
Step S140, detects whether current (SuSE) Linux OS has installed Mongolian.
When server is received from the socket message request of client, server is sent out by socket interface channel
Message is sent to client to detect whether current (SuSE) Linux OS has installed Mongolian.
It should be noted that in the present embodiment by detecting with the presence or absence of/usr/share/i18n/ in current system
Locales/zh_MW file is detecting whether to have installed Mongolian.This is because, if having installed it in current system
The Mongolian bag that front push comes, then can generate this document in systems, therefore by detecting the presence or absence of this document, you can with inspection
Survey in the system and whether Mongolian has been installed.Further, when user end to server sends socket message request, server
To client request, meeting messaging checks whether that, with the presence of this document, client returns result to server again, judges text
Part whether there is, so as to judge whether Mongolian has been installed, execution step S150, otherwise execution step if installed
S160.
Step S150, the version of the version of Mongolian bag and Mongolian bag in server in the current (SuSE) Linux OS of comparison
This.
Specifically, if the version of Mongolian bag is lower than the version of Mongolian bag in server in current (SuSE) Linux OS,
Then execution step S160, otherwise returns status of fail code and notifies user.
It should be noted that the Mongolian bag on server is newest version, Mongolian in current (SuSE) Linux OS
The version of bag is only possible to less than the Mongolian bag on server or identical with the Mongolian bag version on server.
Step S160, server is to client push Mongolian bag.
Specifically, the socket interface channel that is set up by step S130, server are arrived to client push Mongolian bag
In the temp directory of client.
It should be noted that the Mongolian word engine included in Mongolian bag is by pango resume module Mongolia
The Substitution Rules of Chinese character and Mongolian Character deformation.Concrete processing procedure is as shown in figure 3, Mongolian word engine first passes through
Freetype storehouse is initialized, Mongolian character glyphs tab indexes are set up, obtain every in the character string for needing to show
One character, and determine whether Mongolian significant character, if it is, first significant character is obtained, to significant character
The character string of beginning carries out hyphenation process and slicing treatment.By above-mentioned steps, each effective Mongolian character is obtained, and
According to Mongolian character, corresponding Substitution Rules are such as in a practical situation(Individual character shape is replaced, disjunctor word is replaced, context is replaced)
Mapping of each character in font storehouse is searched, the glyph value of the mapping of current character is then obtained, character is corresponded to output
To glyph value, output display is rendered by above-mentioned process, Ke Yi finally by the Xwinwow figure of (SuSE) Linux OS
Mongolian character is shown in (SuSE) Linux OS so that linux system can support Mongolian.
Step S170, judges whether server is successful to client push Mongolian bag.
Specifically, by judging to push whether success according to socket return value, status of fail is returned if unsuccessful
Code notifies user, successful then execution step S180.
Step S180, obtains and compares the Hash of the Mongolian bag in server in the cryptographic Hash and client of Mongolian bag
Value(Can abbreviation hash value).
Specifically, the hash of the Mongolian bag on server under the hash value and user's temp directory of Mongolian bag is obtained
Value.Hash value is the hash algorithm higher using security to Mongolian APMB package(Including Mongolian font, Mongolian engine etc.
File)Calculated, the hash value corresponding with file of generation, then these hash values are obtained by corresponding function interface.
If the hash value of the two is consistent, execution step S190, otherwise returns status of fail code and notify user.
By being compared to the hash value of server end and client, can accurately judge whether file is consistent, this
It is because that hash value is the unique identity symbol of each file, the different then hash values of file content are unequal.Therefore, so may be used
Whether consistent with server with the accurate Mongolian for judging that user is installed.
Step S190, installs Mongolian bag.
Specifically, Mongolian bag is decompressed, and the file after decompression is installed to the corresponding catalogue of system, wherein, will cover
Mongolian word engine included in ancient Chinese prose bag, under the corresponding catalogue of the system of being installed to/etc/pango/.
It should be noted that it will be understood by those skilled in the art that under the enlightenment of the present embodiment, can pass through in modification
State the order of each step to form different embodiments.
In sum, the Mongolian installation method of the present invention, by building the server of the Mongolian bag that is stored with, and passes through
Client sends request to the server to install Mongolian, it is achieved that a kind of by network (SuSE) Linux OS Mongolia
Literary installation method, the method are simple to operate, reduce the time that user oneself configures Mongolian.And due to also detecting in a pre-installation
The cryptographic Hash of Mongolian bag, so relatively accurately can relatively safe install the Mongolian bag for acquiring.
Although disclosed herein embodiment as above, described content is only to facilitate understanding the present invention and adopting
Embodiment, is not limited to the present invention.Technical staff in any the technical field of the invention, without departing from this
On the premise of the disclosed spirit and scope of invention, any modification and change can be made in the formal and details that implements,
But the scope of patent protection of the present invention, still must be defined by the scope of which is defined in the appended claims.
Claims (4)
1. a kind of Mongolian installation method based on (SuSE) Linux OS, it is characterised in that include:
Step is built, the server of the Mongolian bag that is stored with is built, the Mongolian bag is included using pango resume module Mongolia
The Mongolian word engine of the Substitution Rules of Chinese character and Mongolian Character deformation;
Detecting step, when client request installs Mongolian, detects whether current (SuSE) Linux OS has installed Mongolia
Text, if testing result is no, Mongolian bag described in the server to the client push;
Comparison step, obtain and the comparison server in Mongolian bag cryptographic Hash and the client in Mongolian bag
Cryptographic Hash, if the two cryptographic Hash is consistent, installs Mongolian bag, otherwise, returns status of fail code to notify user, wherein, institute
It is to carry out calculated value using hash algorithm to Mongolian bag to state cryptographic Hash, is the unique identity symbol of each file,
In the detecting step,
The client sends socket connection request to ask to install Mongolia by socket interface channel to the server
Text, the server send message with the current Linux operation system of request detection by socket interface channel to the client
Whether system has installed Mongolian.
2. Mongolian installation method according to claim 1, it is characterised in that
If testing result has installed Mongolian for current (SuSE) Linux OS, Mongolia in more current (SuSE) Linux OS
The version of text bag and the version of Mongolian bag in the server, if in current (SuSE) Linux OS Mongolian bag version ratio
In the server, the version of Mongolian bag is low, then Mongolian bag described in the server to the client push.
3. Mongolian installation method according to claim 1 and 2, it is characterised in that
Judge according to socket return value whether the server is successful to client push Mongolian bag.
4. Mongolian installation method according to claim 3, it is characterised in that
When Mongolian bag is installed, the Mongolian bag is decompressed, and the file after decompression is installed in (SuSE) Linux OS
Corresponding catalogue, wherein, the Mongolian word engine in Mongolian bag is installed to/etc/pango catalogue in.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310269701.0A CN103368953B (en) | 2013-06-28 | 2013-06-28 | A kind of Mongolian installation method based on (SuSE) Linux OS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310269701.0A CN103368953B (en) | 2013-06-28 | 2013-06-28 | A kind of Mongolian installation method based on (SuSE) Linux OS |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103368953A CN103368953A (en) | 2013-10-23 |
CN103368953B true CN103368953B (en) | 2017-03-08 |
Family
ID=49369490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310269701.0A Active CN103368953B (en) | 2013-06-28 | 2013-06-28 | A kind of Mongolian installation method based on (SuSE) Linux OS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103368953B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7000230B1 (en) * | 2000-06-21 | 2006-02-14 | Microsoft Corporation | Network-based software extensions |
CN101694603A (en) * | 2009-10-20 | 2010-04-14 | 中央民族大学 | Cross-platform Mongolian display and intelligent input method based on Unicode |
CN101924775A (en) * | 2010-09-08 | 2010-12-22 | 北京大学 | Android application component transparent loading method and system |
CN102236752A (en) * | 2010-05-04 | 2011-11-09 | 航天信息股份有限公司 | Trustiness measuring method for installing and upgrading software |
-
2013
- 2013-06-28 CN CN201310269701.0A patent/CN103368953B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7000230B1 (en) * | 2000-06-21 | 2006-02-14 | Microsoft Corporation | Network-based software extensions |
CN101694603A (en) * | 2009-10-20 | 2010-04-14 | 中央民族大学 | Cross-platform Mongolian display and intelligent input method based on Unicode |
CN102236752A (en) * | 2010-05-04 | 2011-11-09 | 航天信息股份有限公司 | Trustiness measuring method for installing and upgrading software |
CN101924775A (en) * | 2010-09-08 | 2010-12-22 | 北京大学 | Android application component transparent loading method and system |
Also Published As
Publication number | Publication date |
---|---|
CN103368953A (en) | 2013-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106815031B (en) | Kernel module loading method and device | |
US8448260B1 (en) | Electronic clipboard protection | |
US20170052884A1 (en) | Generic test automation for restful web services applications | |
US9692854B2 (en) | Communication between a web-based application and a desktop application | |
CN108960830A (en) | Dispositions method, device, equipment and the storage medium of intelligent contract | |
CN111240896B (en) | Terminal data synchronization method, device, server and storage medium | |
CN105095764B (en) | The checking and killing method and device of virus | |
WO2012093625A1 (en) | Web page defacement detection device and storage medium | |
Zhang et al. | The critical case for a Berestycki-Lions theorem | |
CN105260654A (en) | Method for verifying self integrity of software system | |
CN103971061A (en) | Method and device for acquiring text file fingerprint and data management method | |
US11783043B2 (en) | Methods for authentication of firmware images in embedded systems | |
CN104158856A (en) | Local API calling method dispense with preset of secure session | |
US10574773B2 (en) | Method, device, terminal, server and storage medium of processing network request and response | |
US10491760B1 (en) | Image transmission device, image transmission method, and image transmission system | |
WO2019041525A1 (en) | Method, electronic apparatus, and computer readable storage medium for identifying entities having identical name | |
CN103368953B (en) | A kind of Mongolian installation method based on (SuSE) Linux OS | |
CN115543392B (en) | Trusted program upgrading method, device, equipment and storage medium | |
CN106953730A (en) | The safety method of the Windows code signatures containing timestamp is realized under physical isolation network environment | |
CN110336846B (en) | Cloud desktop file dragging and transmitting method based on spice protocol | |
WO2020233044A1 (en) | Plug-in verification method and device, and server and computer-readable storage medium | |
Xiong et al. | Serological study of antibodies to influenza A viruses among general population in Wuhan city China | |
CN106411891A (en) | File processing method, device, server-side and equipment | |
US8745750B2 (en) | Origination verification using execution transparent marker context | |
CN106657316A (en) | Message withdrawing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |