Use xrdp to implement Windows Remote Desktop login tulinux

Source: Internet
Author: User
Tags remote desktop access windows remote desktop tightvnc
Generally, we use an ssh client to remotely log on to the Linux system. For the Linux Remote logon tool in the graphic interface, we generally think of vnc, but it is not secure enough. Here, I will introduce how to install and configure XRDP. We can easily use Windows Remote Desktop named tulinux. Xrdp installation configuration method to open the terminal: Install sudoapt-getinstallxrdpsudoapt-getinstallvnc4s in turn

Generally, we use an ssh client to remotely log on to the Linux system. For the Linux Remote logon tool in the graphic interface, we generally think of vnc, but it is not secure enough. Here, I will introduce how to install and configure XRDP. We can easily use Windows Remote Desktop Ubuntu Linux.

Xrdp installation and configuration method

Open the terminal: install it in sequence

Sudo apt-get install xrdp

Sudo apt-get install vnc4server tightvncserver

Set xrdp

Echo "gnome-session -- session = gnome-classic"> ~ /. Xsession

The purpose of this command is to install gnome Desktop. In ubuntu12.04, multiple unity and GNOME Desktop managers exist at the same time. You need to specify one at startup. Otherwise

Even after the remote login verification is successful, it is only the background.

The xrdp configuration documents are xrdp. ini and sesman. in the/etc/xrdp directory. The default configuration document is generally used.

Restart xrdp

Sudo/etc/init. d/xrdp restart

Run Windows mstsc

That is, for windows Remote Desktop, open and enter the remote Ip address, connection, and user password to connect to remote linux.

Errors

1. When xrdp accesses ubuntu, only the background is displayed and the menu bar is invisible.

Method: Install gnome-panel
Sudo apt-get install gnome-panel

2, Failed to load session "gnome"

Try desktop ubuntu-2d

Type the command echo "gnome-session = ubuntu-2d"> ~ /. Xsession, and restart xrdp.

3. An error occurs.:

Connecting to sesman ip 127.0.0.1 port 3350
Sesman connect OK
Sending login info to sesman
Login successful for display 14
Started connecting
Connecting to 127.0.0.1 5914
Error-problem connecting

Error under xrdp-sesman.log:


[INFO] starting Xvnc session...
[ERROR] X server for display 10 startup timeout [INFO] starting xrdp-sessvc-xpid = 2924-wmpid = 2923
[ERROR] X server for display 10 startup timeout
[ERROR] another Xserver is already active on display 10
[DEBUG] aborting connection...
If your log is similar to X server for display 10 startup timeout and another Xserver is already active on display 10

The root cause of the problem is tightvnc. The problematic version conflicts with the X Font, resulting in an error connecting to the Xserver..

Solution:

Apt-get purge tightvnc xrdp
Apt-get install tightvncserver xrdp

Finally:

Start the xrdp service, sudo/etc/init. d/xrdp restart, the corresponding port is enabled at this time, the default configuration is enough.

Run netstat-tnl

Check that the three ports 3350, 3389, and 5910 are in the LISTEN status.

The name of the dpkg-L + package. You can find out which files are included in the package.

4. ubuntu 13.10 and later versions have no background:

I would like to thank the children's shoes in the comments for their proposed solutions:

Xrdp cannot support gnome of 13.10. The solution is to install an xfce interface,

sudo apt-get install xubuntu-desktop 

Then:

Echo xfce4-session> ~ /. Xsession

Set the configuration file

Sudo gedit/etc/xrdp/startwm. sh

Insert a row before./etc/X11/Xsession
Xfce4-session

Restart xrdp
Sudo service xrdp restart

Install XRDP http://www.linuxidc.com/Linux/2012-07/64802.htm for Windows Remote Desktop Access Ubuntu 12.04

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-05/117835.htm

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.