Run the XWindow Program-linux Enterprise Application-Linux server application information on a Linux terminal. For more information, see. As a Linux programmer, working on a terminal (programming) in most cases may be more convenient. The server is in the data center and everyone is connected to the same server. The local machine runs a terminal (such as SecureCRT) in Windows, which is a typical configuration.
If the developed software does not contain a GUI, there is no problem at all. At least I have been doing this for several years. However, it is troublesome to write the GTK + program recently. First, we tried to run Linux on VMWare. Of course we can, but the compilation was too slow. In addition, when I get used to writing a little bit, I just need to compile and test it. Compilation is too slow to waste too much time, so I have to find another way.
We know that X Window is a C/S model. Applications run on one computer and are displayed on another computer. Therefore, the simplest way to solve the above problem is to install an X Window Server on the local machine (Windows) and display the programs running on the Server on the local machine.
There are many X Window servers running in Windows, some of which are commercial and some are free of charge. The most commonly used free X Window Server may be Xcygwin, which can be downloaded free of charge on the http://x.cygwin.com/website.
After the download, install it directly, which is no different from installing cygwin. Just make some configuration. Here we assume:
Linux Server IP Address: 10.20.30.246
Windows Client IP Address: 10.20.30.243
In Windows Xcygwin:
L add authentication information to allow machines with IP address 10.20.30.246 to access the Xserver.
$ Xhost + 10.20.30.246
L start X Window Server
$/Usr/X11R6/bin/startxwin. bat
On a Linux Server Terminal:
L set the DISPLAY environment variable
[Root @ linux usr] # export DISPLAY = 10.20.30.243: 0
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.