Windows use Xmanager telnet CentOS method

Source: Internet
Author: User
Tags iptables

Configuration:

Remote Server System: centos6.4 Local System: Win7


Part I (Configuring the CentOS System)

1. Install GDM.

Open the CentOS terminal and enter Yum list Gdm,yum install GDM in the terminal. After a period of time will be automatically installed.

2. Configure GDM

Method One: (graphical interface operation, more convenient)

(1) Open the custom.conf file located in the etc/gdm/directory

(2) mainly add the following items

[Daemon]

Remotegreeter=/usr/libexec/gdmgreeter

[Security]

Allowremoteroot=true

[XDMCP]

port=177

Enable=true

Method Two: (Command-line operation)

(1) Enter vim/etc/gdm/custom.conf in the terminal

(2) Press I to enter edit mode, enter the configuration information above, then press ESC, then enter: Wq save exit.


3. Open Firewall Settings
Open XDMCP Port: UDP 177
Open TCP 6000 to 6010 Port
Add firewall rules, enter in terminal
Iptables-t filter-a forward-p UDP--dport 177-j ACCEPT

Iptables-t filter-a forward-p TCP--dport 6000:6010-j ACCEPT


4. Open the Inittab file located in the ETC directory

Start the display manager after powering up. Open/etc/inittab file, the RunLevel into 5, that is, modify to Id:5:initdefault: If the original is 5, you do not have to modify.

The system's display manager is managed by the Displaymanager file, which is only determined to start the display manager after boot

5. Reboot CentOS

Part II (using Xmanager under Windows)

1. Download and install Xmanager 4.

2. Install after the installation of the directory, click the Xbrower icon, click File->new->xstart Session, the following figure:

After clicking, the following interface appears:


The session can take any name (here to take jcy001), host is the IP address of the remote host, protocol select SSH, and then the user name is the host's login name, password is the host login name corresponding to the password.

Then click on the right arrow in the execution command under the remote execution module to select Gnome, click OK to save.

Then in the right side of the interface will be an extra icon, is just configured the xstart session filled in the name of the session, the following figure (pictured in the picture called jcy001).


Double-click the icon to remotely log on to the CentOS host.

3. Supplementing

Following the above method to log on to the host will appear a number of Windows, and can not shut off. This is because it is a multiple-window mode, as long as the Single Window mode, you can solve the problem. The method is as follows:

Right-click the name of the conversation, for example, in the image above, right-click jcy001 Select Properties, a dialog box appears, select the X server tag. The following figure:


Click Configure again to eject the interface


Select Single Window mode in the Window mode module. Click OK to save.

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.