Возможно, что отображение: 0 заблокировано предыдущим неудачным сеансом \ rashed vnc.
Вы можете убить: сеанс 0, запустив:
vncserver -kill :0
От человека странице VNCserver:
-kill :display#
This kills a VNC desktop previously started with
vncserver. It does this by killing the Xvnc process,
whose process ID is stored in the file
"$HOME/.vnc/host:display#.pid". The -kill option
ignores anything preceding the first colon (":") in the
display argument. Thus, you can invoke "vncserver
-kill $DISPLAY", for example at the end of your
xstartup file after a particular application exits.
Вы также можете проверить, если файлы блокировки все еще там. здесь соответствующие файлы, описывается на странице:
FILES Several VNC-related files are found in the directory $HOME/.vnc:
$HOME/.vnc/xstartup
A shell script specifying X applications to be run when
a VNC desktop is started. If this file does not exist,
then vncserver will create a default xstartup script
which attempts to launch your chosen window manager.
$HOME/.vnc/passwd
The VNC password file.
$HOME/.vnc/host:display#.log
The log file for Xvnc and applications started in
xstartup.
$HOME/.vnc/host:display#.pid
Identifies the Xvnc process ID, used by the -kill
option.
К примеру, я начал Vncserver с: 22, а затем убили его (дважды):
[raamee 25 0 ~]$ vncserver :22
New 'myhost:22 (raamee)' desktop is myhost:22
Starting applications specified in /home/raamee/.vnc/xstartup
Log file is /home/raamee/.vnc/myhost:22.log
[raamee 26 0 ~]$ vncserver -kill :22
Killing Xvnc process ID 22733
[raamee 27 0 ~]$ vncserver -kill :22
Can't find file /home/raamee/.vnc/myhost:22.pid
You'll have to kill the Xvnc process manually
Могу ли я предложить вам задать этот вопрос на http://serverfault.com/? Переполнение стека - это вопросы программирования. –
Можете ли вы предоставить команду, которую вы используете для запуска нового сеанса vnc? вы явно запрашиваете отображение: 0? – RaamEE
Нет, я пытаюсь выполнить команду, как показано ниже: $ vncserver: 0 –