Я пытаюсь запустить a VNC session
с Gnome Desktop
следующим образом:
Сторона сервера
Настроить .vnc/xstartup
файл к:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
vnc4server
запустите сессию на сервере:
selenium@selenium-grid:~$ vnc4server -geometry 1024x768 :1
New 'selenium-grid:1 (selenium)' desktop is selenium-grid:1
Starting applications specified in /home/selenium/.vnc/xstartup
Log file is /home/selenium/.vnc/selenium-grid:1.log
Запустите новый раздел xvnc4viewer
на стороне клиента:
$ xvnc4viewer <IP my server>:<Port my server>
Результат:
Я пытаюсь запустить a VNC session
с Gnome Desktop
со следующими настройками и командами:
Уничтожьте сессию vnc4server
на стороне сервера:
selenium@selenium-grid:~$ vnc4server -kill :1
Killing Xvnc4 process ID 10747
править .vnc/xstartup
файл к на стороне сервера:
$ sudo nano .vnc/xstartup
Отредактированный файл:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
/usr/bin/gnome-session &
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
# x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
# x-window-manager &
Запустите новую сессию vnc4server
в сервере
selenium@selenium-grid:~$ vnc4server -geometry 1024x768 :1
New 'selenium-grid:1 (selenium)' desktop is selenium-grid:1
Starting applications specified in /home/selenium/.vnc/xstartup
Log file is /home/selenium/.vnc/selenium-grid:1.log
Сторона клиента
$ xvnc4viewer <IP my server>:<Port my server>
Поскольку мой Gnome Desktop
сессия не появляется? Что я делаю неправильно?