Use Windows to log on to the remote desktop of a Linux server

Source: Internet
Author: User
Article Title: Use Windows to log on to the remote desktop of a Linux server. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Experiment environment: Redflag Linux Data Server 4.1

  1. VNC configuration

1. first install the vnc-server, save the vnc-server-4.0-0.beta4.1.1.i386.rpm in the/tmp Directory of the DCserver4.1 system, and then install.

Rpm-ivh/tmp/vnc-server-4.0-0.beta4.1.1.i386.rpm

After the installation is complete, the configuration file is/etc/sysconfig/vncservers. In fact, you need to configure a line:

VNCSERVERS = "1: root"

1 indicates that VNC runs on desktop 1. you can modify the configuration as follows:

VNCSERVERS = "1: root"

Allows you to start a super user's desktop.

You also need to create it in the/root directory. vnc directory, and then create a password file passwd in it. if it is empty, the VNC service requires a password when it is started for the first time. Note that this password is the password used for VNC connection, it can be different from the system password.

Mkdir/root/. vnc

Touch/root/. vnc/passwd

/Etc/init. d/vncserver start

Modify the xstartup file in the/root/. vnc directory, and set the last line

Xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "&

Replace

Startkde

In this way, KDE can be started.

2. install the client. (for windows clients, we only send messages in the personal name. Hongqi is not responsible !)

Vnc-3.3.7-x86_win32.exe

A VNC icon is generated on the desktop. double-click it and specify the ip address of the server when the logon prompt is displayed, for example:

172.16.82.18: 1

The following 1 logs on to the application root user.

  2. XDM service (complicated configuration, supporting X-Win32 or Xmanager client under widnows)

1. configure the server

(1) configure xfs ("X Font Server", which can be provided by a single Server in a unified manner. remote graphics client programs do not need to install all fonts separately .)

The xfs configuration file is/etc/X11/fs/config. the content is 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 = 10  # when a font server reaches its limit, start up a new one clone-self = off  # alternate font servers for clients to use #alternate-servers = foo:7101,bar:7102  # where to look for fonts # Some of these 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 12 points, decipoints default-point-size = 120  # 100 x 100 and 75 x 75 default-resolutions = 75,75,100,1 # how to log errors use-syslog = on # don't listen to TCP ports by default for security reasons #no-listen = tcp ========================================
     

The content of the original file can be modified or not modified. However, note that you must comment out the last line "no-listen = tcp, otherwise, the xfs service will not listen to the TCP port. the default port number of xfs is 7100, which can be seen in the/etc/services file.

[1] [2] Next page

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.