S
S
syxoi2016-04-28 11:22:28
linux
syxoi, 2016-04-28 11:22:28

VNC server: cannot open display, what to do?

Hello! How to solve the problem with the VNC server, that when you try to run the program from the console, an error occurs (on the screen), I tried tightvncserver and vnc4server - the problem persists. vncserver starts on "zero" display: vnc4server :0, exported to variable DISPLAY :0 - export DISPLAY=:0, but didn't help. Tell me how to solve this problem?8819364336ae46fe9021cff2e2ce1a3d.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2016-04-28
@syxoi

su USER_NAME -c '/usr/bin/tightvncserver -localhost -geometry 1000x760 :1'

A
Alexander, 2016-04-28
@NeiroNx

sudo apt-get install x11vnc
mkdir ~/.vnc ; x11vnc -storepasswd "password" ~/.vnc/passwd
And in xinitrc something like this:
x11vnc -shared -forever -repeat -dontdisconnect -rfbport 5900 -rfbauth ~/.vnc/passwd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question