Windows Remote (XRDP+VNC) connection Ubuntu Linux__linux

Source: Internet
Author: User
Tags windows remote desktop

Previous reprinted article [to] how to connect Ubuntu Linux from Windows Remote Desktop, not only to install Vnc,windows in Linux to connect Ubuntu remotely, but also to install the software, and the software is not safe or useful, the function is very single, Only the command line for Ubuntu can be opened.

The approach described in this article is secure and simple, with only a simple configuration of Ubuntu, Windows without installing any software, and no configuration. Another: This article refers to the http://blog.csdn.net/chengfei112233/article/details/6623672.

This article describes how to connect Ubuntu with Remote Desktop in a Windows environment.

1. Ubuntu Configuration "(1) (2) must do, (3) Choose to do"

(1) Installation Xrdp,vnc4server

sudo apt-get install XRDP

I use Ubuntu 11.04, install XRDP automatically installed Vnc4server. Otherwise, you need to install Vnc4server with the following command

sudo apt-get install Vnc4server

(2) Settings allow remote connection and control

If the Ubuntu Classic desktop, open "system-preferences-Remote Desktop", if it is the Ubuntu effect desktop, open "theme and optimization-Remote Desktop."

Then, as set out in the following figure, check to allow remote connections and allow remote control.

(3) This step is for security and can be done without doing, including changing the XRDP default port and opening the Ubuntu firewall

A. Change the XRDP default port

First locate the XRDP profile location

Whereis XRDP

XRDP:/usr/sbin/xrdp/etc/xrdp/usr/lib/xrdp/usr/share/xrdp/usr/share/man/man8/xrdp.8.gz

You can see that the configuration file is under the/ETC/XRDP folder

Ls-l/ETC/XRDP

-rw-r–r–1 xrdp xrdp 8756 2010-10-23 08:27
-rw-r–r–1 xrdp xrdp 8655 2010-10-23 08:27
-rw-r–r–1 xrdp xrdp 8744 2010-10-23 08:27
-rw-r–r–1 xrdp xrdp 8732 2010-10-23 08:27
-rw-r–r–1 xrdp xrdp 9169 2010-10-23 08:27
-rw-r–r–1 xrdp xrdp 8760 2010-10-23 08:27
-RW ——-1 xrdp xrdp 1019 2012-03-22 10:32 Rsakeys.ini
-rw-r–r–1 xrdp xrdp 536 2010-10-23 08:27
-rwxr-xr-x 1 xrdp xrdp 118 2010-10-23 08:27 startwm.sh
-rw-r–r–1 xrdp xrdp 569 2012-03-22 11:01

The last Xrdp.ini is the XRDP configuration file, edit the file

sudo gedit/etc/xrdp/xrdp.ini

Locate the Port property of the [globals] block, and modify it to an integer in 5000-50000 to save.

[Globals]
Bitmap_cache=yes
Bitmap_compression=yes
port=6868
Crypt_level=low
Channel_code=1

The previous example changes the port to 6868.

Reboot the XRDP after the port change is complete, and make it effective

sudo xrdp-kill

sudo xrdp

B. Open the Ubuntu firewall

Use the following command set to set up the firewall:

sudo UFW enable

sudo ufw default deny

sudo ufw allow 6868 or sudo ufw allow from 12.34.56.78 to 100.110.120.130 Port 6868

12.34.56.78 is the ip,100.110.120.130 of Windows (the connecting person) is the ip,6868 of Ubuntu (connected) is the port on Ubuntu xrdp.

If there is no UFW command, use the sudo apt-get install UFW installation.

2. Windows

If Windows XP, open Start-All Programs-attachment-communication-Remote Desktop Connection; if it is Windows 7, open Start-All Programs-attachment-Remote Desktop Connection. The following figure:

If the XRDP default port does not change, enter the IP directly (such as: 100.110.120.130), if the port has changed, enter Ip:port (such as: 100.110.120.130:6868).

Click on the connection, the following figure, such as figure, module select the default Sesman-xvnc, enter the correct username and password can be.

Postscript:

Using the above method, connecting Ubuntu will open a new Ubuntu session, and if User1 has logged on to the local machine, and User1 telnet remotely, it will not lock the local machine user1 user. In this way, User1 can be used both locally and remotely, without affecting each other.

Conversely, using Ubuntu's Terminal Services client to connect to Windows locks the Windows native screen. Because they belong to the same conversation, generally speaking, their desktop status, open files, folders, programs and so on are the same.

In addition, win remote operation Ubuntu, can display the Ubuntu desktop background, whereas Ubuntu remotely operates Windows, the Windows desktop is dark.

Reprint: http://blog.sina.com.cn/s/blog_6bc0bae70100zegr.html

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.