This time, the remote Linux desktop shows correctly in Remmina. #x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & We will modify the ~/.vnc/xstartup by adding /usr/bin/startlxde to it.
We will install lxde on the remote Linux computer. To fix this problem, we disconnect the VNC connection and kill the virtual desktop. However, we only see gray screen and could not do anything. Here we just have to input the remote Linux computer IP address with the VNC virtual desktop id, and press Enter. Remmina is installed by default on my local Ubuntu 20.04 LTS.
We could then connect to the remote Linux desktop using VNC client software on our local computer. Then we could start a virtual desktop with an id of 1. To install the VNC server, we will install tightvncserver on the remote Linux computer. Linux Desktop Forwarding via VNCĪ better way to forward the Linux Desktop is to use VNC service. But we were not able to open terminal to run commands. Opening X applications from the forwarded desktop is fine. The forwarded desktop will show up on our local computer. Run the following command on the remote Linux computer while we are still ssh -X in. $ sudo apt install -y xfce4 xfce4-goodies gnome-icon-theme libcanberra-gtk-module We will have to install the following dependencies. Can we forward the entire remote Linux desktop? Sure, we can. We have run single X applications successfully. The GUI of the X applications will show up on our local computer. Quick test X forwarding with X applications.
$ cat /etc/ssh/sshd_config | grep X11Forwarding Make sure X11Forwarding is yes in /etc/ssh/sshd_config. We install xauth if it has not been installed on the remote Linux computer. usr/bin/xauth: file /home/leimao/.Xauthority does not exist To restore this content, you can run the 'unminimize' command. Not required on a system that users do not log into. This system has been minimized by removing packages and content that are We SSH to the remote Linux computer with -XC where X is the X service and C allows data compression.
In this blog post, I would like to talk about how to set up a headless remote desktop correctly via SSH. In addition, if the remote Linux machine is headless, i.e., has no physical display, using the commercial remote desktop software is sometimes problematic (there are workarounds though). However, often the time, we are working on a new setup computer, installing some of those software and setting up the connection correctly via SSH becomes prohibitive. If we have previously installed some GUI commercial remote desktop software, such as NoMachine and TeamViewer, connecting to the remote Linux desktop is simple and straightforward. Sometimes, for some stupid reasons, we will have to use a remote Linux desktop.