Xming (X server in Windows) is used to run your terminal and all XWindow-based programs in windows.

Source: Internet
Author: User
Tags xming

I. Introduction to xming

1. xming is a free X server on Microsoft Windows.

2. xming Project address and introduction
Http://sourceforge.net/projects/xming
Http://en.wikipedia.org/wiki/Xming
Http://www.straightrunning.com/XmingNotes

========================================================== ======================================

2. Download and install xming

1. download the following software:
Xming-6-9-0-31-setup.exe
Xming-fonts-7-5-0-11-setup.exe
Xming-mesa-6-9-0-31-setup.exe
Xming-portable-PuTTY-7-3-0-17-setup.exe
Xming-tools-and-clients-6-9-0-28.zip

2. Install xming Software

(1) install xming
When installing xming, I select portable putty link SSH client-use with portable putty
It is best to install it in the C:/software/xming directory, because it is convenient to use

(2) install xming-Fonts
It is also installed in the C:/software/xming directory.

(3) install xming-Tools
Decompress the tools in the xming-tools zip package to the xming directory.

(4) install xming-portable-Putty
Default installation

========================================================== ======================================

Iii. Common Use of xming

First: Use xming through SSH

1. Advantages
Using the X11 forwardig function of SSH, you can simply use xming in the following three steps, and the communication between X Server and X client is encrypted.

2. configuration steps

Step 1: Use Putty to connect to X client (192.168.0.50)
Enable the X11 forwarding function (for example) to connect to the remote X client

Step 2: Enable xming (it is best to add the installation path of xming to the path environment variable of Windows XP)
CMD-> C:/software/xming-> xming

Step 3: run the client program in the putty that has been connected to the X client
[Root @ RedHat ~] # Xterm &
[Root @ RedHat ~] # Xeyes &
[Root @ RedHat ~] # TWM &
[Root @ RedHat ~] # Xclock &
Note: If the xterm command is not found, the xterm RPM package is not installed. you can install this RPM package on the disc.

Step 4: Test Results

Bytes ------------------------------------------------------------------------------------------------

Method 2: Xauth for xming

Step 1: Set Environment Variables
C:/software/xming> set display = 192.168.0.10: 0 (note: the IP address is the IP address of the host where the xming installer is located, that is, the IP address of X server, instead of the IP address of X client)
C:/software/xming> set home = C:/software/xming (Xauthority file storage path)

Step 2: generate the X server authentication File
The authentication file in xming is Xauthority, not. Xauthority in Linux.
C:/software/xming> xming-ac
C:/software/xming> Xauth generate 192.168.0.10: 0

Step 3: Start xming
C:/software/xming> xming-auth C:/software/xming/Xauthority

Step 4: copy the argument file to the remote X client for Import

........................................ ..................

 

Bytes ------------------------------------------------------------------------------------------------

 

Third: Use XDMCP to enable session

Step 1: Enable an X Display Manager on X client
[Root @ centos ~] # Vi/etc/TPD/custom. conf
[Security]
Allowremoteroot = true # Allow the root user to connect, and normal users can connect
[XDMCP]
Enable = true

 

Step 2
[Root @ centos ~] # Gestation &
Note: Because X Display Manager requires an X system, an Xorg process is added.

 

Step 3: Use xming to connect to X Server

Note: Use: 0,: 1,: 2,...: n to enable multiple xming
Xming: 0-query 192.168.0.50
Xming: 1-query 192.168.0.50


Note: if you cannot connect to X client, it may be a firewall problem, so either disable the firewall on X client or use the following command
[Root @ centos ~] # Netstat-aupn | grep 177
[Root @ centos ~] # Iptables-T filter-A input-p udp -- dport 177-J accept

 

 

 

 

 

 

Putty + xming, using gedit command under windows.

 

Putty is a free software on Windows and is implemented by clients of Telenet and SSH services. The green software does not need to be installed. It can be run directly after being downloaded.

Xming is a free software in windows and is a simplified implementation of X server. After the installation is downloaded, the X server-based files on Linux are displayed.

1 Installation

Putty-http://www.chiark.greenend.org.uk /~ Sgtatham/Putty/download.html

Xming http://sourceforge.net/projects/xming/

Putty can be directly run after download without installation. Install xming by default.

2 run

-Run xming first, And the logo will appear in the Windows system bar ..

-Run Putty to open putty configuration. In session/Specify the destination you want to connect to, enter the Linux host IP address. The default port is 22 ). In session/load, save or delete a stored session/saved sessions, enter your session name, for example, "Linux Server ". Click Save. In Connection/ssh/X11/X11 forwarding, select enable X11 forwarding and enter the value of X Display location as "localhost: 0.0 ". Click Open.

-Login

-Enter gedit to open "unsaved document 1-gedit ". If you want to open the file, you can directly enter gedit myfile. RSA.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.