A simple trick needs to be implemented to Connect To Ubuntu Linux From Windows 11. Because it’s a little tricky to get the graphical interface of Ubuntu on Windows 11. You’ll be required to use a default repository to benefit from Microsoft Remote Desktop Connection on Windows 11. So I will provide the proper set of instructions required to run Ubuntu Server on Windows 11.
How Do I Connect To Ubuntu Linux From Windows 11?
Page Contents
To benefit from Ubuntu Linux on Windows 11, users are requested to take advantage of xrdp. That’s a default repository of Ubuntu, but it only works after enabling the desktop environment. So for starters, I will describe what should be done to enable a desktop environment on Ubuntu Servers.
Installing Desktop Environment on Ubuntu Servers
I’m going to use the apt protocols to install a Debian tool named tasksel, which can be used to install GNOME Desktop. Let’s see what needs to be done to install DE (Desktop Environment) on Ubuntu Server.
- Press Ctrl + Alt + T keys to launch the Terminal
- Use the following command to install tasksel:
sudo apt install tasksel
- To install GNOME Desktop, run this command:
sudo tasksel install ubuntu-desktop
- Now, wait until the packages are installed on Ubuntu Servers.
Remember: You can also install other Desktop Environments on Ubuntu. Such as Mate, Lubuntu, Xubuntu, etc.
Same theory can be implied for using Display Manager, users can use XRDP alternatives on Ubuntu Server. For example, Lightdm can be a good alternative for users who want to spend fewer resources.
Installing XRDP on Ubuntu
Now that Desktop Environment is installed on your Ubuntu Server, you need a Display Manager to proceed. For that, you have the option of using XRDP. This login manager will help you start the display server to enable the login and authentication facility. You can easily install and configure it by executing simple commands.
Just because XRDP is Ubuntu’s default repository, you can install it without having to use any third-party repositories.
To update built-in packages:
sudo apt update
To install XRDP on Ubuntu:
sudo apt install xrdp
To verify the successful installation:
sudo systemctl status xrdp
Configuring XRDP
To use XRDP on Ubuntu like a charm, you can implement a bunch of easy steps. To be precise, you can edit the ssl-cert and startup script files for a better experience.
To add a user account in ssl-cert group:
sudo adduser xrdp ssl-cert
To open the XRDP Startup Script File:
sudo nano /etc/xrdp/startwm.sh
Add these lines at the end of the script file:
Unset DBUS_SESSION_ADDRESS Unset XDG_RUNTIME_DIR
Save the edited file and exit it.
To restart XRDP:
sudo systemctl restart xrdp
To let “port 3389″ bypass firewall restrictions:
sudo ufw allow from 255.255.255.0 to any port 3389
sudo ufw reload
Note: Change the highlighted code with your subnet.
Connecting to Ubuntu from Windows 11
Before having to Connect To Ubuntu Linux From Windows 11, you need to ensure one thing. Do remember to log out from Ubuntu, so that you can benefit from Remote Desktop Connection. Because RDP can’t help you log in to Ubuntu if your same account is currently bieng used on another device.
- Launch Remote Desktop Protocol on Windows 11
- Enter your subnet mask value
- Click on the Connect button
- Accept the RDP certificate
- Enter the username and password of your Ubuntu Server
- Voila! Ubuntu instance will be shown on Windows 11.
From the Ubuntu instance, you can benefit from lots of Linux-based applications on Windows 11. And you’ll not be required to pay any extra charges to benefit from applications like Terminal, Steam, Franz, Atom Text Editor, etc.
That’s all, thanks for your time spent reading How To Connect To Ubuntu Linux From Windows 11 at it’sDailyTech.