Xmanager remote connection to centos Desktop

Source: Internet
Author: User

We know that UNIX-like operating systems also support remote desktop, basically using VNC services, and those who have used VNC know that the display of remote connection is not very good, this article introduces Xmanager, a better tool for connecting to Remote Desktop.

Xmanager can be used to convert a PC to an X Windows workstation (non-open source ). Xmanager is the next X11 pc x Server with excellent performance on Windows 95/98/ME and Windows NT/2000/XP/2003/Windows 7/Windows 8 platforms. Just like any Windows application running on a PC, it can be seamlessly integrated into UNIX applications. In UNIX/Linux and Windows network environments, Xmanager is the Best Connectivity Solution.

Xmanager is a complete network connection suite that can connect to protocols including SSH, telnet, ftp, and stfp. It supports 3D acceleration technology, pc x server, and OpenGL (GLX), file transfer and LPD printing server. More introduction will not say, good English can refer to the official website: http://www.netsarang.com

The following describes how to use Xmanager to connect to a remote desktop in Linux (Centos6.3.

1. Use Xmanager on the Intranet to monitor Linux survival and remotely connect to the desktop (XDMCP)

By default, Xmanager uses broadcast to automatically discover remote hosts that can be connected. This feature allows you to monitor the survival of servers on the Intranet and automatically establish Remote Desktop connections.

Remote Host Configuration:

Linux host desktop installation:

Gnome: yum groupinstall-y "Desktop" "X Window System" "Chinese-support"  && yum install -y xdm gdmKDE: yum groupinstall -y "KDE Desktop" "X window System" "Chinese-support" && yum install -y kdm xdm

1. Display Manager Configuration:

1) modify the running level:

vim /etc/inittab

Modify the running level to 5:

id:5:initdefault:

2) configure the running agent (Gnome Desktop)

For Gnome desktop, modify the following files

/etc/X11/gdm/gdm.conf (CentOS 4)/etc/gdm/custom.conf (CentOS 5, 6)

In the [xdmcp] field of the file, add the following two lines

Enable=1Port=177

3) KDE Desktop

vim /etc/X11/xdm/Xaccess

Modify # * # any host can get a login window

* #any host can get a login window

Find the [xdmcp] field in the/etc/kde/kdm/kdmrc file and change it:

[xdmcp]Enable=1 (or 'true')

4) firewall settings

The firewall sets udp port 177 to allow remote access;

Set TCP 6010-6020 (or 6000-6010, depending on the Start port of the ssh listener. If it is 6000, the firewall must open 6000-6010 ).

5) Restart

Init 6 or reboot.

2. Xmanager Console

After installing Xmanager on windows, open Xbrowser. If the installation and configuration are correct, the remote host is automatically found. Double-click the icon to connect to the Linux host. If there are many Linux servers, you can manage them here, rather than entering IP addresses one by one, is it very convenient.

2. Remote network connection to the Linux host (Secure XDMCP) on the Intranet)

Because Xmanger uses the UDP177 port broadcast of the GDM (KDM or XDM) to discover remote hosts, Xmanager cannot be used to connect networks with firewall restrictions. Xmanager also has a solution, that is, using SSH to forward X11 data. Simply put, Xmanager uses the SSH protocol to forward XDM data and implements secure data transmission. The principle is not much to say. configure it directly.

1. Remote Host Configuration

1) SSH Configuration

Vim/etc/ssh/sshd_config # Make sure the following lines are not commented out: X11Forwarding yes

2) XDM Configuration

Because ssh cannot forward many versions of WordPress, we use XDM or KDM (KDE Desktop) to configure the XDMCP service.

Open/etc/X11/xdm-config

Comment out DisplayManager. requestPort: 0:

!DisplayManager.requestPort: 0

Then open/etc/X11/xdm/Xaccess

Cancel # * # any host can get a login window comment:

* #any host can get a login window

Open/etc/X11/xdm/kdmrc or/usr/share/config/kdm/kdmrc or/etc/opt/kde2/share/config/kdm/kdmrc, modify the value of the "Enable" option to "true ".

3) cancel the previously set

Change Enable = 1 in the [XDCMP] field of the configuration file to 0 or delete this row.

4) firewall settings

Add the following rules to iptables:

-A input -p udp -s 0/0 -d 0/0 177 -j ACCEPT-A input -p tcp -s 0/0 -d 0/0 telnet -j ACCEPT-A input -p tcp -s 0/0 -d 0/0 ssh -j ACCEPT-A input -p tcp -s 0/0 -d 0/0 login -j ACCEPT-A input -p tcp -s 0/0 -d 0/0 exec -j ACCEPT-A input -p tcp -s 0/0 -d 0/0 shell -j ACCEPT-A input -p tcp -s 0/0 -d 0/0 7100 -j ACCEPT

5) Start xdm

Add the following in/etc/rc. local:

/usr/bin/xdm

6) restart the system

2. Use Xmanager to establish a connection

Here we need to use Secure XDMXP to connect to XDM. For details, refer to the official Connecting to a remote host using Secure XDMCP. It is very simple and I will not describe it here.

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.