Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of remote Desktop connection between Windows and Linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains the method of Windows and Linux to achieve remote desktop connection, the content is clear, interested friends can learn, I believe it will be helpful after reading.

For remote Desktop connection Linux, you may immediately think of using VNC, remote Desktop Windows, and you will immediately think of using the remote Desktop that comes with Windows. So is there a way to make remote Windows in Linux and remote desktop Linux in Windows? Today I will discuss with you that Linux and Windows are remote from each other. Take CentOS6.6 as an example, the steps are as follows:

Connect to Linux using Windows remote Desktop

1. Check whether GNome is installed on the server.

[root@admin /] # rpm-qa | grep desktop

If gnome-desktop does not appear in the results of the query, you need to configure the installation source, install the GNOME graphical interface, and command: yum-y groupinstall "X Window

System "" Chinese Support "" Desktop "

2. Install VNCServer, configure VNCServer and set password

[root@admin /] # rpm-ivh tigervnc-server-1.1.0-18.el6.x86_64.rpm # install VNCServer locally

[root@admin /] # vncpasswd # set the VNC login password

[root@admin /] # vim / etc/sysconfig/vncservers # modify configuration VNC

[root@admin /] # chkconfig vncserver on # configure boot

[root@admin /] # service vncserver restart # start the VNC service

3. Release 5900, 5905 and 3389 in the firewall

The VNC port released needs to be changed according to the actual situation.

4. Install the epel library

[root@admin /] # yum-y install epel-release

5. Install xrdp

[root@admin /] # yum-y install xrdp

6. Modify xrdp configuration

[root@admin /] # vim / etc/xrdp/xrdp.ini

Max_bpp=32 # changes the default 24 to 32

7. Start the xrdp service and set it to boot

[root@admin /] chkconfig xrdp on

[root@admin /] service xrdp start

All of the above are installed online. If you need offline installation, you can go to the website: http://www.rpmfind.net/ search xrdp to choose the version suitable for your system to download.

[root@admin /] rpm-ivh xrdp-0.6.1-5.el6.x86_64.rpm

8. Test remote Desktop

Connect to Windows using Linux remote Desktop

1. Confirm that Linux has installed GNome graphics desktop

2. Configure the remote desktop connection that needs to be allowed by the remote Windows

3. Release the remote desktop port in the Windows firewall (the default port for Windows is 3389)

4. Install the remote connection package in Linux

[root@admin /] # yum-y install rdesktop

[root@admin /] # yum-y install tsclient

5. Open the terminal server client in Application-> Internet- > Open the terminal server client

6. Click Add Connection, select Windows Terminal Service, and fill in Name, Host, Username, Password

If the Windows remote Desktop port is not 3389, use the format IP: Port when filling in

7. After saving the configuration, double-click the session configuration you just saved in the main interface

Connect to Linux using Linux remote Desktop

1. Confirm that Linux has installed GNome graphics desktop

2. Release the remote desktop port in the Linux firewall (the default port initial value is 5900 + connection ID) and install and configure VNCServer in the remote server

3. Install the remote connection package in Linux

[root@admin /] # yum-y install rdesktop

[root@admin /] # yum-y install tsclient

4. Open the terminal server client in Application-> Internet- > Open the terminal server client

5. Click Add Connection, select VNC, and fill in Name, Host, Password in turn

The format of Host is: IP: connect ID

6. After saving the configuration, double-click the session configuration you just saved in the main interface

Exit full screen

In Linux, whether it is a remote Windows or Linux, if there is a full screen and you do not know how to exit full screen, you can use the following methods

1. Linux remote Linux

Using the F8 key, the VNC menu will pop up, click "Exit Viewer" or uncheck the box before "Full Screen".

2. Linux remote Windows

Use the key combination Crtl+Alt+Enter to exit the full screen

Common mistakes

1. The user name and password entered are correct, but login always prompts "xrdp_mm_process_login_response: login failed". Check the xrdp log and indicate that the error message is as follows:

[root@admin xrdp] vim / var/log/xrdp-sesman.log

[20181107-09:17:36] [INFO] scp thread on sck 7 started successfully

[20181107-09:17:36] [INFO] + + created session (access granted): username root, ip x.x.x.x:57714-socket: 7

[20181107-09:17:36] [INFO] starting Xvnc session...

[20181107-09:17:36] [ERROR] X server-- no display in range is available # error message

This error is caused by exceeding the maximum connection data, and the solution is as follows:

[root@admin xrdp] ps-ef | grep xrdp | grep-v grep | awk'{print $2}'| xargs kill-9

[root@admin xrdp] vim / etc/xrdp/sesman.ini

MaxSessions=100 # maximum session connections

[root@admin xrdp] service xrdp restart

Or

[root@admin xrdp] vim / etc/xrdp/sesman.ini

MaxSessions=10 # maximum session connections

If KillDisconnected=1 # is changed to 1, it means that you will log out automatically when you disconnect.

IdleTimeLimit=1800

[root@admin xrdp] service xrdp restart

After reading the above content, do you have a better understanding of the method of remote desktop connection between Windows and Linux? if you want to learn more, welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report