Remote desktop to ubuntu desktop from windows
How often do you access Linux Desktop? What tools do you use to access remote desktop?
Xrdp is an open source tool which allows users to access the Linux remote desktop via Windows RDP. Apart from Windows RDP, xrdp tool also accepts connections from other RDP clients like FreeRDP, rdesktop and NeutrinoRDP. Xrdp is now supporting TLS security layer.
Xrdp Requirement
In this article, I will show how you can remotely connect to Ubuntu Desktop from a Windows machine using Xrdp tool.
1) Installation on Linux
on Ubuntu 18.04
First, you need to install Xrdp on Ubuntu
You have to configure the polkit rule to avoid an authenticate popup after inputting the username and password at the xrdp login screen on windows
restart the xrdp service
Then make sure that the service is running
Now make sure to automatically start the service at the system startup
Now you will need to check your ip address because you will need it for the connection
Xrdp works with port 3389 so make sure to open it. UFW is disabled by default so you will need to enable the firewall and create a rule for xrdp
Now you can continue the configuration on windows side
On Centos/Redhat 7
Make sure to install the Epel repositories before
Now install xrdp packages
Add a rule in the firewall. On Centos/RedHat is not ufw but firewalld to configure
Then reload the firewall
Now enable and restart the xrdp service
Check your ip address for the remote connection on Windows
2) Connect from Windows
On your windows machine such as windows 10 in our case, launch the default remote desktop connection tool.
You will need to enter the ip address of your machine and you will be asked to enter the username
Access Remote desktop of Ubuntu/CentOS
Enter the ip address and the username
Now confirm the information and launch the connection. If you are not logged out in local, the remote login would fail.
Now you will be asked for your password
Now confirm your credentials. You can see the IP address of my Ubuntu on the top and the login page. Enter your password and enjoy
Are you aware of any other tools? Please advise us on the comments
How to Set Up an Ubuntu Remote Desktop
Access a computer remotely with Ubuntu
Remote desktop sharing on Ubuntu uses the VNC protocol to allow computers inside or outside the local network to control a desktop session.
These instructions govern all currently supported versions of Ubuntu that run the GNOME desktop environment.
How to Share Your Ubuntu Desktop
There are two ways to set up a remote desktop using Ubuntu. The method outlined below is the one that the Ubuntu developers included as part of the system.
The second way is to use a piece of software called xRDP. This software is a bit hit-or-miss when running on Ubuntu. While you may now be able to access the desktop, you will find the experience a little frustrating due to mouse and cursor glitches and general graphics-based problems.
The actual process of sharing the desktop is relatively straightforward. The tricky bit is trying to access it from somewhere that isn’t on your home networks such as your workplace, hotel, or internet cafe.
How to Enable Sharing on Ubuntu
This guide is designed for the default Ubuntu GNOME desktop. If you’re using a different desktop environment, the process won’t be the same.
Launch the Ubuntu settings app and select Sharing from the left-side menu.
On the Sharing tab, select Screen Sharing then activate Remote Login.
Select Allow connections to control the screen if it isn’t already.
Select Require a password for some added security and to be able to sign in without accepting the connection on your Ubuntu PC.
When you’re ready, flip the switch at the top of the window to enable screen sharing.
How To Find Your Internal IP Address
Before you can connect to your Ubuntu desktop using another computer, you need to find out the IP address assigned to it.
The IP address you require depends on whether you are connecting from the same network or whether you are connecting from a different one. Generally speaking, if you are in the same house as the computer you are connecting to, then you are more than likely going to need the internal IP address. Otherwise, you will need the external IP address.
From the computer running Ubuntu open a terminal window by pressing CTRL+ALT+T.
Type the following command into the window:
Try to connect to Ubuntu again using Windows.
Running this command will send password credentials «in the clear» (meaning anyone «sniffing» for unencrypted network traffic can intercept), which is a huge security threat.
Connect to Ubuntu From The Outside World
To connect to Ubuntu from the outside world, you need to use the external IP address. When you try this the first time, you will probably not be able to connect. The reason for this is that you need to open a port on your router to allow outside connections.
Connect from Windows 10 to Ubuntu 18.10 / 18.04 | 16.04 via XRDP Remote Desktop Protocol (RDP)
I recently installed Ubuntu 18.10 [BETA] desktop on one of my test servers… To test my apps, I wanted to connect to the Ubuntu machine via Microsoft Remote Desktop Connection (RDP)….
If you want to learn how to make that work, the steps below should be a great place to start… Students and new users should fine the steps below helpful…..
In most Linux environments, VNC server and other opensource remote connection tools are the only options available to users… You don’t see tools supporting Microsoft Remote Desktop Connction (RDP) protocols to connect to Linux desktop… The only tool that gets this done is XRDP….
XRDP is an open source remote desktop protocol server which uses RDP to present a GUI to desktop clients… It provides a fully functional Linux terminal server, capable of accepting connections from rdesktop, freerdp, and Microsoft’s own terminal server / remote desktop clients.
This brief tutorial is going to show students and new users how to using Windows own remote desktop connection protocol to connect to Ubuntu 18.10 / 18.04 and 16.04 desktops
When you’re ready, follow the steps below to get it working…
Step 1: Install XRDP Server
To get Ubuntu desktops to accept RDP connections, you must first install and enable XRDP remote desktop tool… to do that, run the commands below
After running the commands below reboot the desktop…..
Step 2: Connect from Windows 10
Now that Xrdp server is installed, go and open Windows Remote Desktop Connection app and connect to the server IP or hostname… Make sure you’re not already logged into the desktop…
XRPD will not connect if you’re already logon to the desktop with the account you wish to connect…. The solutions I have tested is to restart the Ubuntu desktop and not to logon….
Then click Connect to initiate the connection to XRDP server…. you should be warned about Windows not trusting the computer you’re conneting to… Accept and continue to connect anyway..
Next, type in your Ubuntu machine account username and password and connect using Xorg session…
When your accout username and password are confirmed, you should be logon to your Ubuntu machine from Windows… as shown in the image below
You are now connected to your Ubuntu desktop from Windows using Microsoft own remote desktop connection protocol (RDP)… The graphic isn’t great, but good enough to get your work done….
If you attempt to logon to the Ubuntu machine and the connection is ending abruptly without connecgting, follow the steps below to resolve…
You may also like the post below:
Published by Richard Zayzay
Hi, I’m Richard. In my spare time, I research topics that are interesting and worthwhile for users and students who want to try something new. I, too, am a student and my focus here is to help other students and new users get started with managing Ubuntu Linux, Windows, Content Management Systems (CMS) and others. I try to do my best explaining the topics and detailing the instructions so that anyone can understand. These tutorials may not work in all situations and for all users. However, if you run into trouble, please ask your questions below and I or someone from the community may help you resolve. Thanks for reading and hope you come back.
14 Replies to “Connect from Windows 10 to Ubuntu 18.10 / 18.04 | 16.04 via XRDP Remote Desktop Protocol (RDP)”
Hello, I have tried this and get a window within my windows 10 computer stating connect is ok, then i get kicked out w/out accessing the linux computer. I am not logged into the linux so not sure why i am not able to open a remote connect within my network? Thanks in advance
I have done this over and over. I installed a new instance of Ubuntu 18.04 Desktop on my laptop. I have a new Windows 10 machine with all of the updates. What happens, is that after getting an RDP session started, I get booted out, and the session ends. The session still runs on the Ubuntu machine and when I reconnect, it will resume. I have looked at my Administrative settings in Windows, looked at my settings in Ubuntu and the problem persists. My intent is to use the Ubuntu with a log on for each of my browsing types, and then setup a VPN for the Ubuntu laptop. By different browsing types, News, banking, social media, etc. for now both computers are sitting next to each other and connected via CAT 6 Rj45 network cables. Can you please provide assistance?
Удаленный рабочий стол в Ubuntu
Удаленный рабочий стол позволяет подключиться к вашему компьютеру через интернет с помощью другого компьютера или даже смартфона. Вам может достаточно часто понадобится сделать что-то на другом компьютере, даже если вы не рядом с ним. Такая возможность есть и у Ubuntu.
В этой статье мы рассмотрим как настроить удаленный рабочий стол в Ubuntu 20.04, а также как подключиться к нему с помощью различных устройств. В качестве протокола удаленного доступа мы будем использовать VNC, он медленный и уже устаревший, но зато везде поддерживается. В Ubuntu почти все программное обеспечение уже установлено по умолчанию, вам остается только изменить несколько настроек.
Удаленный рабочий стол VNC в Ubuntu
Откройте главное меню, а затем запустите утилиту Параметры системы. Здесь откройте раздел Общий доступ:
Здесь кликните по пункту Общий доступ к экрану, чтобы открыть окно настроек:
Здесь надо включить переключатель вверху окна, затем напротив поля «Требовать пароль» введите пароль, который будет использоваться для подключения:
Настройки можно закрыть, удаленный рабочий стол Ubuntu настроен. И уже сейчас вы можете пытаться подключиться к вашему компьютеру с помощью другого дистрибутива Linux. Но есть еще один момент. Вы не сможете подключиться из Windows. По умолчанию включено обязательное шифрование. А это поддерживается не всеми клиентами. Чтобы отключить принудительное шифрование нужно установить dconf-editor:
sudo apt install dconf-editor
Затем откройте программу и перейдите по пути org.gnome.desktop.remote-access там сделайте этот пункт Disabled:
Теперь вы готовы тестировать подключение к удаленному рабочему столу Ubuntu. Откройте главное меню и найдите клиент удаленного подключения Remmina.
В строке подключения выберите протокол VNC, затем введите адрес, поскольку мы собрались проверять на локальной машине, то введите localhost, в других же случаях вам придется использовать IP адрес компьютера. Дальше нажмите «Подключиться»:
Сразу же программа спросит у вас пароль чтобы получить удаленный доступ к компьютеру:
После этого вы увидите ваш рабочий стол. В случае с локальной машиной получится такая рекурсия:
Теперь самое время подключаться из другого компьютера. Вы можете использовать любой VNC клиент для Linux, Windows или Android и подключиться к своему компьютеру если он находится в локальной сети. Кроме того, вы можете получить к нему доступ даже из Интернет создав частную локальную сеть, например, с помощью hamachi или OpenVPN.
Удалённый рабочий стол RDP в Ubuntu
sudo apt install xrdp
После установки убедитесь, что сервис запущен:
sudo systemctl status rdp
Затем вы можете подключатся к настроенному серверу из Windows стандартными средствами системы или из Linux с помощью утилиты Reminna как в предыдущем варианте, только протокол надо будет выбрать RDP вместо VNC.
В Windows откройте поиск и найдите там подключение к удалённому рабочему столу:
Введите IP адрес сервера, на котором запущен RDP клиент и к которому вы хотите подключится:
Затем нажмите кнопку Подключится и введите логин и пароль от пользователя в системе, к которой вы подключаетесь:
Теперь вы можете использовать RDP подключение.
Выводы
В этой статье мы рассмотрели как выполняется настройка удаленного рабочего стола Ubuntu 20.04, а также как получить к нему доступ с помощью других устройств. Все очень просто, даже проще, чем с тем же x11vnc, для которого нужно создать несколько конфигурационных файлов. Если у вас остались вопросы, спрашивайте в комментариях!
www.makeuseof.com
Follow MUO
How to Establish Remote Desktop Access to Ubuntu From Windows
Need to remote access your Ubuntu PC from another location? Here’s how to remote desktop with Ubuntu from Windows.
You’re in one room, sitting at a PC; the data you want is in another, on a computer running Ubuntu. If both computers are in the same house, no problem; but what if they’re in different offices? It might be a bit of a walk!
The answer, therefore, is setting up a remote desktop connection. Learn how to set up a remote desktop from Windows to Ubuntu.
Why Remote Connect to Ubuntu From Windows?
There are several reasons why you might want to remote connect to your Ubuntu computer. Perhaps you’re at work and need to log into your home computer. Alternatively, you might have an Ubuntu PC in one room, your Windows PC in another. Maybe you want to run updates on Ubuntu, or access files.
Alternatively, you might be running an Ubuntu server, for data, a website, even a game. Either way, a method of setting up a remote connection will save a lot of time and effort.
You have three key options for establishing a remote connection with an Ubuntu machine running the default desktop environment:
First, however, you need to make some preparations:
Let’s look at these in turn.
Prepare Windows RDP to Ubuntu Connections
Remote access solutions are simple to set up and manage across the same network. However, if you’re working from home, this instantly complicates things.
To use VNC and RDP with a PC on a different network, you’ll need to enable access to the remote computer via its router. This is done using «port forwarding.» Before you set this up, however, you’ll need the IP address.
Find Your Ubuntu PC’s IP Address
Before you can establish a connection to your Ubuntu device over RDP or VNC, you’ll need the IP address.
The first way is the easiest. Physically go to the Ubuntu machine, press Ctrl + Alt + T to open the Terminal, and input the command:
Look for the «inet addr» against the connection you’re currently using. For instance, if you’re on Wi-Fi, look for wlan0. If the computer is connected to the network for Ethernet, look for eth0.
Another way to find the IP address is to find the connection icon in the panel, right-click, and select Connection Information. You’ll find the IP address listed here.
Neither of these options open? You can also connect to your router directly, via your computer’s browser.
Once signed into the router’s admin console, you’ll be able to see which devices are connected. Just look for your Ubuntu device name, find the IP address, and make a note of it for later.
Enable Port Forwarding
To access a computer on another network (e.g. your work network) you need to enable port forwarding on the router where your Ubuntu PC is located.
Start by establishing the IP address of the router. You can use the ip r command for this, with grep to specify the default:
Make a note of the IP address, then open it in your browser to display the router’s admin console. Enabling port forwarding is simple:
Note that these steps are generic and will differ depending on your router. For detailed steps, check your router documentation.
Once saved, you should be able to RDP into the Ubuntu PC remotely via your organization’s static IP address. If your employer does not use a static IP (unlikely, but it happens) then use a dynamic DNS provider instead.
Note: your organization’s system admin can set up port forwarding if you’re not using commercial remote desktop tools.
Set Up Access Using SSH
To save time you might want to install PuTTY on your PC (or just try the built-in Windows SSH function). This enables you to set up an SSH connection, which gives remote access to the Ubuntu command line.
To be clear: this isn’t a remote desktop option; there is no mouse control. But it is useful to have to remotely install the tools you’ll be using. SSH is often disabled by default, however, so if it is not installed, you’ll need to fix this.
In short, it depends on which Ubuntu version you’re using, and whether you’ve used SSH previously.
Once installed via the terminal (sudo apt install openssh-server) you’ll be able to make a remote connection. Simply enter the IP address and the Ubuntu username and password. You can then use the terminal to install the tools you need for RDP and for VNC.
1. Remote Access Using Remote Desktop Protocol
The easiest option is to use Remote Desktop Protocol or RDP. Built into Windows, this tool can establish a remote desktop connection across your home network. All you need is the IP address of the Ubuntu device.
While the necessary software is pre-installed on Windows, you’ll need to install the xrdp tool on Ubuntu. To do this, open a Terminal window (Ctrl + Alt + T) and enter:
Wait for this to install, then run the Remote Desktop application in Windows using the Start Menu or Search. Type rdp then click on Remote Desktop Connection. With the app open, input the IP address in the Computer field.
Next, click Show Options and add the Username for the Ubuntu PC. You can click Save to keep these settings for reuse on another occasion.
Click Connect to start the connection and input the Ubuntu account password when prompted. The connection will then be established, giving you full mouse and keyboard access to your remote Ubuntu computer. If you plan to use this connection often, you can create a configuration file for it to save time.
Troubleshooting RDP to Ubuntu
While RDP is a great option for remote connecting to your Ubuntu PC, it’s unreliable on Ubuntu 18.04 LTS. There appears to be an issue establishing a remote connection while already logged into the same account on Ubuntu.
As such, the simple way around this is to simply log out of the Ubuntu computer.
If this isn’t possible, try switching the RDP connection from using the Xorg server to using X11rdp. Wait for that to fail then try Xorg again.
You might also attempt connection after restarting the Linux machine.
Ubuntu 20.04 LTS should include a fix for this problem.
2. Connect to Ubuntu from Windows With VNC
Another option with full remote desktop functionality is VNC (Virtual Network Computing). This requires a client application on the Windows PC and a server on Ubuntu.
On the remote PC, install the TightVNC Server component after checking for updates:
Then install the server utility:
You’ll then need to run it:
At this point you’ll be prompted to set a password for the connection. Make a note of the desktop number, usually :1.
Now that TightVNC Server is set up on Ubuntu, you’ll need to install the client on Windows. This can be downloaded from www.tightvnc.com/download.php—make sure you choose the right version, as it is available in 32-bit and 64-bit flavors.
TightVNC tools are only available as a bundle, so once installed, look for TightVNC Viewer in Windows search.
Once you’ve launched the viewer, input the IP address of the Ubuntu box in Remote Host, followed by the desktop number. So, it might look like this:
Input the password when prompted and commence your remote desktop activity!
Making TightVNC More Secure
By default, TightVNC will encrypt your password, but nothing else. This makes it insecure for connections over the internet. Fortunately, security can be enhanced, thanks to SSH and Xming.
To use this, download and install the Xming tool for Windows from Sourceforge. Once this is done, look for the desktop shortcut, right-click, and choose Properties.
Look for the Shortcut tab, and in the Target field, enter the following:
Click Apply to save the change, then OK. Double-click the icon to run Xming, then open PuTTY. Here, expand the menu on the left to Connection > SSH > X11.
Check Enable X11 Forwarding, then return to Session at the top of the menu.
Enter the IP address for the remote device and click Open. Moments later, a secure connection to the remote Ubuntu desktop will be available.
3. Remote Desktop to Ubuntu With Commercial Tools
Everything you’ve learned so far is standard if you need to remotely access a Linux PC on your local network. If you need to go beyond that, then the steps to enable port forwarding will help.
But what if you have no intention of accessing your router? If this seems too complicated, then third-party commercial software designed to facilitate remote desktop, is required. Several are available, but not all support Linux.
We suggest you try out:
Note that these tools require setting up before use. If you have a colleague near the remote PC, they might be able to help. See our list of remote access tools for more suggestions.
Choosing the Right Ubuntu Remote Desktop Solution
Which remote desktop tool for connections between Ubuntu and Windows should you use?
Three main options are available:
You can also use SSH to issue some remote instructions to your Ubuntu PC.
We’ve shown you three ways to establish a remote connection to your Ubuntu computer or server from Windows. Each has its advantages and disadvantages. But if you just want to dip into Ubuntu, try the Windows Subsystem for Linux on Windows 10?
Has your webcam suddenly broken? A recent Windows 10 update could be the culprit.
Deputy Editor for Security, Linux, DIY, Programming, and Tech Explained. He also produces The Really Useful Podcast and has extensive experience in desktop and software support. A contributor to Linux Format magazine, Christian is a Raspberry Pi tinkerer, Lego lover and retro gaming fan.
Subscribe To Our Newsletter
Join our newsletter for tech tips, reviews, free ebooks, and exclusive deals!
One More Step…!
Please confirm your email address in the email we just sent you.