How to take the GUI access of ubuntu device for velocity lab replication.
Objective
CUI and GUI are the two fundamental ways to connect to a remote Linux machine. CUI stands for character user interface, also referred to as the command line because it is entirely text-based. The graphical user interface, or GUI, is an acronym that stands for it. It enables the visualization of graphical elements including application interfaces and desktops.
Environment
Linux based ubuntu client machine
Procedure
Please follow the instructions below to install the XRDP application so you can use RDP to view the Linux machine's GUI.
Step 1. Run the below command to install xrdp on the machine.
>>sudo apt install xrdp
Step 2. Check the version of the client machine by running the below command.
>> lsb_release -a
Step 3. Enable the xrdp on the machine.
>>sudo systemctl enable --now xrdp
NOTE: You will not be able to run the above command on version 14.04 and below.
Step 4. Allow port 3389 on the client machine.
>> sudo ufw allow from any to any port 3389
Step 5. Change the target to graphical so that the changes will be reflected post-reboot of the device.
>> sudo systemctl set-default graphical.target
Step 6. Reboot the device.
>> sudo reboot
Try taking the GUI of the device through RDP on your windows pc.