Remote Linux & Window desktop control in ubuntu

Source: Internet
Author: User
Article title: Remote Control of Linux & Windows desktops in ubuntu. 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.

Remote control of windows servers and windows desktop control are simple. you can use the terminal service client (tsclient) that comes with ubuntu to connect to windows using RDP/RDPv5, the premise is that the other party allows remote connection. the use of the terminal service client (tsclient) is basically the same as that of the remote control software provided by windows, and the settings are similar.

Remote control of Linux servers (SSH/VNC/XDMCP)

There are many methods to remotely connect to Linux. Generally, there are two types: character interface (SSH ). One is a graphical interface (VNC/XDMCP ).

1. the connection character interface is relatively simple. I will not talk about it here. The current Linux release basically has SSH, and you can remotely connect to linux by using commands.

$ Ssh user @ IP

2. The following describes the remote connection of the graphical interface. Currently, VNC and XDMCP are commonly used in the graphic interface. Both methods require server support.

First, let's talk about how to use VNC. the Redhat AS4 server is used as an example:

(1) Redhat AS4 is installed with VNCServer by default.
(2) the vncserver command is executed under the user to log on to the server. to log on to the server as a root user, you must first run the vncserver as the root user on the server, if this is the first execution, the system requires that you specify the password used for logon through VNC, and the password must be at least 6 characters long. If you want to change the password for VNC logon, use the vncpasswd command to change the password. this password is only used as the password for VNC logon and has nothing to do with the system logon password. After the vncserver command is executed, a file named "/etc/machine name: serial number. log" is generated. Remember the serial number generated here. this is what you need to log on to the client later.
(3) If you log on with a client at this time, you can log on. However, after you log on, the twm desktop system is displayed, instead of the default gnome System, we also need to make some changes to make it meet our requirements.
(4) modify the xstartup file in the. vnc directory hidden in the main directory. Uncomment the last two lines of text in the file, and then add gnome-session &:

 

# Xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "&
# Twm &
Gnome-session &

(5) at this time, we will return to ubuntu, use the terminal service client (tsclient) that comes with ubuntu, select the protocol as VNC, and enter the connection server address as IP: serial number, click Connect. a password input box is displayed. enter the password we just set on the server, and you will see a graphical interface of the remote server on the display.

The following describes how to use XDMCP, and uses the Radhat AS4 server as an example:
(1) Redhat AS4 by default, XDMCP is also completely installed, but it is not started by default. you need to manually modify it to start xdmcp.
(2) first, modify the file/etc/X11/TPD/gestational disease. conf: find the [xdmcp] module, change Enable = false to Enable = true, and search for the # Port = 177 line, and remove the # sign at the beginning of the line.
(3) then modify the/etc/X11/xdm/Xaccess file, find the following line, and remove.

# * # Any host can get a login window

(4) modify the/etc/X11/xdm-config file, find the following line, and comment it out. [Note the usage of comments here !, Instead of the # number we commonly use]

Display Manager. Requestport 0

(5) modify the/etc/inittab file and change id: 3: initdefault: to id: 5: initdefault: and add x: 5: respawn: /usr/bin/TPD
(6) modify the attribute of/etc/X11/xdm/Xsetup_0 to 755.
(7) restart the server.
(8) The xdmcp protocol in the terminal service client (tsclient) is grayed out because the default ubuntu installation does not have the xdmcp connection tool installed. we must install a software package to activate this protocol.

Sudo apt-get install xnest

(9) after installation, enter the server IP address in the connection server and select xdmcp to directly log on to the remote graphical interface.

 

 

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.