Set up VNC on Ubuntu for remote access.
Set up VNC on Ubuntu for remote access.
I own a Plex server on Ubuntu that supports remote access. I have SSH access but feel less comfortable with the command line, often preferring a graphical interface. I previously used this configuration but reinstalled after upgrading to the latest LTS release. This version is 22.04 desktop, and I run it in headless mode with a placeholder HDMI plug, though I might need a GUI at times.
You can follow this guide to set up VNC on Ubuntu 22.04. Let me know if you need more details!
It took some time to respond, life changed. I set up Tight VNC using the instructions provided. When trying to launch the VNC server, I encountered an error: Warning: plex-server:1 is taken because of /tmp/.X1-lock Remove this file if there’s no X server. plex-server:2 Now the desktop starts, and applications run as expected. The log file is located at /home/plex/.vnc/plex-server:2.log. This is the point I get stuck at every attempt. As I said, I’m not a Linux expert.
Includes a notice about an existing server, but you can link to this second version. However, after restarting, it might disappear, so you can proceed with the instructions from $ vncserver.
After restarting, the VNC server command still fails. I’m unable to reach the server from my Mac, though I can connect via SSH on both MacOS and Windows. It seems there might be an issue with the setup or configuration.