Setting up GUI and graphic environment on Linux VMs
Written by
Updated at November 27, 2023
Issue description
- You need to use graphical applications on VM instances with Linux OS
Solution
There are three options that allow you to use a graphical desktop environment on Linux VMs:
-
Use VNC or RDP To do this:
- Install a desktop environment
- After this, install xrdp or a VNC server (for connecting via RDP or VNC, respectively)
We recommend using a combination of a VNC server that listens only to localhost, and an SSH tunnel: in this case, you will eliminate the risk of attackers connecting to your VM via VNC, as well as encrypt your VNC traffic. The guide at this link might help you.
-
Forward Xorg to your local computer. There are also numerous articles online on how to do this. Use Xming
for Windows:- Install a desktop environment
- Set up Xorg forwarding in your SSH client and connect to the VM
- Start the graphical application from the terminal.
-
Use Terraform to create a VM with an installed graphical environment, like here
.
Alert
Our technical support does not provide advice on the setup and use of third-party software on VM instances.
Yandex Cloud users are solely responsible for administering operating systems, setting up third-party software, and writing code in various programming languages.