Use software such as x-win32 exceed to display remote LINUX desktop settings __linux

Source: Internet
Author: User
 -->

Use software such as x-win32 exceed to display remote Linux desktop settings

Test passed on RED HAT 9.0.
One server-side setup
1 Modify the/etc/x11/xdm/xaccess file, find the line below, and remove the annotation number.
# * #any host can get a login windows "
2/etc/x11/xdm/xdm-config file, comment on the line below
"Display Manager. Requestport 0 "
3/etc/x11/gdm/gdm.conf file, in the [XDMCP] section,
Change the status of enable to True
4/ETC/KDE/KDM/KDMRC file, in the [XDMCP] section,
Set the Enable state to True
5/etc/inittab inside the default run level is 5
6 Close the firewall.

The second x software starts normally, the same network segment chooses, the XDMCP mode chooses broadcast, selects query across the network segment.
It should be pointed out that the use of exceed or X-win32 landing Soalris, set the color part of the need to be set to Pseudocolor, otherwise the software will be prompted when the color is not enough. Landing Linux does not need to be set to Pseudocolor, otherwise the color will appear wrong.
Remote access to a Linux server using a graphical client

First, the introduction
We can remotely log on to Linux servers via telnet, SSH, etc., but they are all character interfaces. This paper introduces the use of XDMCP+XDM to

Remotely connecting to the XFREE86 server on a Linux server, you can remotely manage Linux servers in a graphical environment.

Ii. Basic Concepts
1, what is XFree86
XFree86 is an open source code implementation of the X Window System. It provides a graphical environment for the mouse, keyboard, graphics, and windows

The Client-server interface. So the client program can run on a different host, providing the Server service for X window by one of the servers.
2, what is XDMCP
XDMCP, "X Display Manager Control Protocol", is a network protocol. It establishes the graphical client program.

Connection and communication with the X Window server.
3, what is XDm
XDm is the X Display Manager, which launches the X Window server and manages the graphics client login, session,

Start the window manager (KDE, Gnome), and so on. KDE and Gnome also offer their own XDM implementations, called KDM and GDM, respectively.
4. What is XFS
XFS, "X font server", can be provided by a single server to provide fonts, remote graphical client programs do not need to separate

Install all the fonts.

Third, the configuration process
1. Our environment
We use a computer with Mandrake Linux 8.1 as the X Window server, and the server's Internet card address

For 192.168.0.1/24. and installs the XFREE86 related software package together when installs the Linux.
We installed the X-WIN32 software on another computer on the local area network with Windows 2000, as the Guest of X window

Household end. There are also many X client programs under Windows, but most are commercial processes, such as exceed, which only offer a 30-day probationary period.

The X-win32 has no days limit, only 30 minutes at a time, which is enough for most basic server maintenance operations,

It's time to reconnect. Free use of business procedures is not too high:-)

2, configure the server
(1) Configure XFS
XFS's configuration file is/etc/x11/fs/config, which reads as follows:
#
# Default Font Server configuration file for Mandrake Linux Workstation
#

# Allow a max of 4 clients to connect to this font server
Client-limit = 4

# When a font server reaches it limit, start up a new one
Clone-self = Off

# alternate font servers for clients
#alternate-servers = foo:7101,bar:7102

# Where to look for fonts
# Some of are commented out, i.e. the TrueType and Type1
# directories In/usr/share, because they arent forced to be
# installed alongside X.
#
Catalogue =/usr/x11r6/lib/x11/fonts/misc:unscaled,
/usr/x11r6/lib/x11/fonts/75dpi:unscaled,
/usr/x11r6/lib/x11/fonts/100dpi:unscaled,
/usr/x11r6/lib/x11/fonts/misc:unscaled,
/usr/x11r6/lib/x11/fonts/type1,
/usr/x11r6/lib/x11/fonts/speedo,
/usr/x11r6/lib/x11/fonts/mdk:unscaled,
/usr/share/fonts/default/type1,
/usr/share/fonts/ttf/big5,
/usr/share/fonts/ttf/gb2312,
/usr/share/fonts/ttf/decoratives,
/usr/share/fonts/ttf/western

# in points, decipoints
Default-point-size = 120

# x 75
Default-resolutions = 75,75,100,1
# How to log errors
Use-syslog = On

The maximum number of client connections can be defined in the configuration file, which defaults to 4. The location of the font file is also indicated in the configuration file.

Special attention is included in the Chinese font, otherwise the Chinese font will not be displayed correctly on the client.
Next, modify the/etc/rc.d/init.d/xfs file to change all "-port-1" to "-port 7100", which is the XFS default supervisor

Listen to the port. Use the following command to restart XFS:
Service XFS Stop
Service XFS Start
After XFS starts successfully, you can use the NETSTAT-LN command to confirm that port 7100 is bound:
TCP 0 0 0.0.0.0:7100 0.0.0.0:* LISTEN

(2) Configure XDm
The XDm configuration file is in the/ETC/X11/XDM directory.
First modify the Xdm-config file and find one line: displaymanager.requestport:0
Comment on this line:! displaymanager.requestport:0
If this line is available, XDM will not listen for XDMCP connections.
Next, modify the Xaccess file, which is the configuration file that controls client access, as follows:
#* #any host can get a login window
192.168.0.*

This allows computers in the local domain to be connected.
You can now start the XDm service directly using the XDM command, using the NETSTAT-LN command to confirm Port 177 (XDM default port)

is bound:
UDP 0 0 0.0.0.0:177 0.0.0.0:*

If you want to run XDM automatically after the server is started, you need to modify the/etc/inittab file so that you can go to the 5 run level after startup,

The amendment reads as follows:
Id:5:initdefault:

3, the use of graphics clients to test
We downloaded the X-win32 version 5.4, and after installation in Windows, "X-win32 5.4" is generated in "program group",

There are two executable programs: X-config and X-win32.
First use X-config to establish the connection configuration: Select "Add" at "Session" and select "XDMCP" Connection method.

Click "Next->", enter a name in "Session name", select "broadcast" at "XDMCP Mode", and

Point "Save" to save the configuration. Then select the "Font" of the X-config main interface and click "Add font Server ...",

In "Host", enter the server's IP address 192.168.0.1, and verify that "Port" is 7100.
After the configuration can start X-win32, of course, when starting to choose "Evaluation" because we do not register. Then select

The session name that you just established will show a window showing the name of the X Window server in the current network, select our service

Point "OK", will appear XDm login interface, using your user account in Linux login, the X window graphics interface

Appears as a local operation on a Linux server. Chinese also appears normal because the fonts on the server are used.

Iv. Other issues
1. Get X-win32
You can download the X-win32 software at www.starnet.com and register before downloading.

2. X window client and windows paste copies with each other
X-win32 also provides the ability to paste copies between X window and content in Windows, which is much more convenient.

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.