How to take the GUI access of ubuntu device for velocity lab replication.

How to take the GUI access of ubuntu device for velocity lab replication.

423
Created On 06/07/23 23:06 PM - Last Modified 10/31/25 19:00 PM


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.

 

GUI of ubuntu pc



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

Commands to run in the cli of the machine.


Try taking the GUI of the device through RDP on your windows pc.



Try taking RDP of device



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000bpyHCAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail