VNC server: cannot open display how can that be?

Hello! How to solve the problem with VNC server when you try to run the program from console the error is displayed (on the screen), tried tightvncserver and vnc4server - the problem persists. vncserver is started at "zero" display: vnc4server :0, export DISPLAY variable to :0 - export DISPLAY=:0 but did not help. Tell me how to solve this problem? 8819364336ae46fe9021cff2e2ce1a3d.png
July 12th 19 at 17:23
2 answers
July 12th 19 at 17:25
Solution
su USER_NAME -c '/usr/bin/tightvncserver -localhost -geometry 1000x760 :1'
s019.radikal.ru/i612/1604/44/c25faed7e9cc.png channel... - Willis.Bei commented on July 12th 19 at 17:28
-localhost -geometry 1000x760 :1 these are the settings tightvncserver
nakoy you slip them gparted?

instead of :0 try:: 0.0 - jamison84 commented on July 12th 19 at 17:31
that runs vnc server? - Willis.Bei commented on July 12th 19 at 17:34
kind of realized that you are trying to do)

to try so
# export XAUTHORITHY=/home/USER_NAME/.Xauthority
# DISPLAY=:0 gparted - jamison84 commented on July 12th 19 at 17:37
: thank you very much! that's what I needed! - Willis.Bei commented on July 12th 19 at 17:40
: how do you understand what you need to do so?) - Willis.Bei commented on July 12th 19 at 17:43
no wonder it complained about cookies
they are in the file are stored
in the presence of Google 99% of problems are solved with one query) - jamison84 commented on July 12th 19 at 17:46
: I had this problem googled a year, but never was - Willis.Bei commented on July 12th 19 at 17:49
July 12th 19 at 17:27
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
it's already a crutch and not a solution - Willis.Bei commented on July 12th 19 at 17:30

Find more questions by tags VNCLinux