banner



How To Remote Ubuntu From Windows

Remote Desktop from Windows to Ubuntu Xrdp

This footstep-past-footstep article will item how to establish a Remote Desktop connexion from Windows to Ubuntu running in VirtualBox with pictures as a guide. The Ubuntu VM used in this guide has not been modified since it'due south installation in VirtualBox, outlined in the post: Create Ubuntu VM in VirtualBox – Picture Guide.

Verify Windows Host / Ubuntu VM Connectivity

Before installing software on our Ubuntu host, a network interface needs to exist that will allow the host motorcar (Windows) to be able to communicate with the Guest machine (Linux VM).

Determine if you need to add an boosted interface allowing connectivity betwixt your Windows host and your Ubuntu guest VM.

  1. In Ubuntu, open a terminal and cheque your interfaces. A quick command to consistently check all interfaces in Linux is ip -4 a
  2. The example below shows that this Linux VM only has i interface, with an IP of ten.0.2.15.
VIrtualbox Linux VM one network interface without connectivity to windows host
This Ubuntu VM but has i network interface and therefore cant communicate with the windows host
  1. At present, bank check your ip address on your Windows motorcar using the command ipconfig. Chances are it is a 192.168.i.X IP every bit shown here
Ubuntu remote desktop connection configuration from windows network ip
The IP address of the Windows auto reveals that our Linux VM is non on the right subnet

As you can see, the IP address of the Windows machine, 192.168.ane.172, and the IP accost of the Ubuntu VM, x.0.2.fifteen, are not on the same subnet. In order to constitute a remote desktop connection betwixt this Windows host and Ubuntu VM, we must add an additional interface to the Ubuntu VM that is on the aforementioned subnet equally the Windows host.

Nosotros cannot simply change the IP address of the existing Ubuntu network interface. The existing interface is used to communicate with VirtualBox.


Create a Network Interface Enabling Windows/Ubuntu Connectivity

  1. In VirtualBox, shutdown the Ubuntu VM
  2. In VirtualBox with the VM selected, select Settings > Network
  3. Past default, Adapter 1 may exist the simply interface running. Select the Adapter 2 tab.
  4. Check the box next to Enable Network Adapter.
  5. Select Bridged Adapter as the option for the Attached to: choice. No other options needed, select Ok.
VirtualBox Network Interface Ubuntu Connection
VirtualBox Bridged Network Adapter connection for Ubuntu VM
  1. Start the Ubuntu VM dorsum upwards
  2. Open a new concluding window and run ip -4 a once again.
VirtualBox Ubuntu Network Interface same subnet as Windows Host Remote Desktop
The Ubuntu interface enp0s8 is on the same subnet equally the Windows auto
  1. After adding the additional bridged adapter in the VM'south settings, this Linux host now has a network interfaced enp0s8 with an IP address of 192.168.1.194.
  2. Optionally, ping the IP address from a Windows command line for additional verification of network connectivity.
Ping VirtualBox Ubuntu network interface successful connection from windows host
Verification that nosotros tin ping the network interface on the Ubuntu host from Windows

Ping reveals that these ii machines are able to communicate with 1 another. Its time to kickoff configuring the Ubuntu machine for Remote Desktop connections from the Windows host.


Configure Ubuntu Firewall for Remote Desktop Connections

  1. Remote Desktop communicates over port 3389. So, add a firewall dominion opening upwardly port 3389.
    1. sudo ufw allow 3389/tcp
Configure Ubuntu firewall rule for windows remote desktop connection port 3389
Adding the Ubuntu firewall dominion to enable remote desktop connections from Windows hosts

Install xRDP in Ubuntu

The installation of Xrdp on a Ubuntu VM will permit Remote Desktop from Windows machines.

  1. Install Xrdp. sudo apt-go install -y xrdp
ubuntu xrdp remote desktop windows connection
Sudo install xrdp on Ubuntu host- the Linux awarding that volition take Windows Remote Desktop connections
  1. How exercise you commencement xrdp in Ubuntu? Information technology's not with systemctl.
  2. Without additional configuration, Xrdp is managed via /etc/init.d/xrdp showtime, finish, restart, effort-restart, status, and fore-reload.
  3. Start the service with sudo /etc/init.d/xrdp start, then sudo /etc/init.d/xrdp status
ubuntu xrdp daemon start initd remote desktop connection from windows
Xrdp is running on Ubuntu – prepare for Remote Desktop connections!

Washed! Time to remote desktop in!


Create a Remote Desktop Connection from Windows

  1. Logout of your Ubuntu session. With a default configuration, y'all will non be able to stay logged in to the VM from VirtualBox and also open a remote desktop connectedness from Windows.
  2. On Windows, open up Remote Desktop, and enter the IP address associated with the 2d network adapter that we created previously. In this VM, it was enp0s8, with an IP address of 192.168.one.194.
Remote desktop from Windows to VirtualBox Ubuntu IP address network adapter
Utilize the IP address associated with the 2d Ubuntu network adapter with a bridged network.
  1. Once yous select connect, the Remote Desktop screen volition appear. If you accept not modified the configuration of the xrdp.ini file on the Ubuntu host, alter the connexion type to Xorg.
xorg remote desktop connection windows ubuntu xrdp virtualbox vm
Xrdp default configuration: Select Xorg equally the session type for Ubuntu
  1. Once you enter your username and password, y'all may exist prompted with a message that says "Authentication Required. Authentication is required to create a colour managed device". Reenter your countersign and press Authenticate.
windows Ubuntu remote desktop authentication required connection
Starting time time remote desktop connection requires authentication
  1. DONE! Look at that high resolution Remote Desktop from Windows.
Windows remote desktop connection Ubuntu vm maximum resolution xrdp xorg
Done! Remote Desktop from Windows to Ubuntu with high resolution!

Source: https://protechnotes.com/remote-desktop-from-windows-to-ubuntu-xrdp/

Posted by: battlerunted.blogspot.com

0 Response to "How To Remote Ubuntu From Windows"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel