F5F Stay Refreshed Software Operating Systems Set up VNC on Ubuntu for remote access.

Set up VNC on Ubuntu for remote access.

Set up VNC on Ubuntu for remote access.

P
patbreslin
Member
161
07-11-2016, 11:08 AM
#1
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.
P
patbreslin
07-11-2016, 11:08 AM #1

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.

L
Lethal_One
Junior Member
22
07-17-2016, 08:11 AM
#2
You can follow this guide to set up VNC on Ubuntu 22.04. Let me know if you need more details!
L
Lethal_One
07-17-2016, 08:11 AM #2

You can follow this guide to set up VNC on Ubuntu 22.04. Let me know if you need more details!

S
Squiddys
Member
70
07-17-2016, 01:21 PM
#3
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.
S
Squiddys
07-17-2016, 01:21 PM #3

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.

E
EisTeeKlaus
Senior Member
490
07-17-2016, 06:58 PM
#4
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.
E
EisTeeKlaus
07-17-2016, 06:58 PM #4

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.

_
_mentalgamer_
Junior Member
19
07-19-2016, 06:06 AM
#5
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.
_
_mentalgamer_
07-19-2016, 06:06 AM #5

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.

R
RizeAbove
Member
228
07-20-2016, 07:43 AM
#6
Connect via SSH to your server and execute: lsof -i -P -n to identify which application uses port 5901 for VNC.
R
RizeAbove
07-20-2016, 07:43 AM #6

Connect via SSH to your server and execute: lsof -i -P -n to identify which application uses port 5901 for VNC.

A
aaron1506
Member
207
07-25-2016, 12:46 AM
#7
Ensure the info is accurate—Tightvnc plays on 5902, not 5901.
A
aaron1506
07-25-2016, 12:46 AM #7

Ensure the info is accurate—Tightvnc plays on 5902, not 5901.

R
Rounyx
Posting Freak
838
07-25-2016, 02:43 AM
#8
Connecting to 5902 or 6002 triggers a specific action, likely related to the service or system associated with those numbers.
R
Rounyx
07-25-2016, 02:43 AM #8

Connecting to 5902 or 6002 triggers a specific action, likely related to the service or system associated with those numbers.

D
dopeeful
Member
56
07-25-2016, 07:36 AM
#9
MacOS includes a native VNC client. You should be able to adjust the ports it uses without changing anything. Since your setup functioned before, you likely don’t need to modify it now.
D
dopeeful
07-25-2016, 07:36 AM #9

MacOS includes a native VNC client. You should be able to adjust the ports it uses without changing anything. Since your setup functioned before, you likely don’t need to modify it now.

X
XgAbYoP
Member
218
07-25-2016, 02:07 PM
#10
From any VNC client link to: IP address 5902 (192.168.1.18:5902)
X
XgAbYoP
07-25-2016, 02:07 PM #10

From any VNC client link to: IP address 5902 (192.168.1.18:5902)