我正在尝试使用腻子远程设置 vncserver(在 ubuntu 18.04 上)。我是从 https://tecadmin.net/setup-x11vnc-server-on-ubuntu-linuxmint/ 引用的.
尽管我收到以下消息,但重复使用不同的端口号:
14/03/2020 19:29:18 passing arg to libvncserver: /path/.vnc/passwd
14/03/2020 19:29:18 passing arg to libvncserver: -rfbport
14/03/2020 19:29:18 passing arg to libvncserver: 5900
14/03/2020 19:29:18 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 8026
14/03/2020 19:29:18 -auth guess: failed for display='unset'
14/03/2020 19:29:18 -auth guess: since we are root, retrying with FD_XDM=1
14/03/2020 19:29:18 -auth guess: failed for display='unset'
我需要在某个文件中设置显示吗?
最佳答案
尝试添加 export DISPLAY=:1
在运行链接中描述的命令之前。
例如
export DISPLAY=:1
sudo x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/YOUR_USER/.vnc/passwd -rfbport 5900 -shared
关于ubuntu - VNC 服务器设置 : -auth guess: failed for display ='unset' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60683782/