
10.04 LTS에서는 디스플레이에서 vnc4server를 실행하고 새 데스크톱을 얻을 수 있었습니다. 사람들이 내 화면을 보지 않고도 집에서 일할 수 있다는 점에서 정말 좋았습니다(:0은 "잠긴 화면" 상태였습니다).
12.04 LTS에서 이것을 복제할 때 빈 데스크탑만 나타나고 차이점이 무엇인지 알 수 없었습니까?
다른 사람이 이것을 경험했거나 디스플레이가 아닌 다른 화면에 연결할 수 있는 VNC 설정을 가진 사람이 있습니까?
감사해요
답변1
같은 문제가있었습니다. 온라인에서 해결책을 찾을 수 없습니다. 이것이 나를 위해 일한 것입니다. (이미 Gnome이 설치되어 있다고 가정)
내 xstartup 파일:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
gnome-session –session=gnome-classic &
gnome-panel&
[ -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 &
나는 다음을 추가했다:
gnome-session –session=gnome-classic &
gnome-panel&
주석 처리가 해제되었습니다.
unset SESSION_MANAGER
/usr/bin/vncserver
또한 기본 xstartup이 위와 동일하도록 의 $defaultXStartup 섹션을 수정했습니다 .
$defaultXStartup
= ("#!/bin/sh\n\n".
"# Uncomment the following two lines for normal desktop:\n".
"unset SESSION_MANAGER\n".
"# exec /etc/X11/xinit/xinitrc\n".
"gnome-session –session=gnome-classic &\n".
"gnome-panel&\n\n".
"[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup\n".
"[ -r \$HOME/.Xresources ] && xrdb \$HOME/.Xresources\n".
"xsetroot -solid grey\n".
"vncconfig -iconic &\n".
"x-terminal-emulator -geometry 80x24+10+10 -ls -title \"\$VNCDESKTOP Desktop\" &\n".
"x-window-manager &\n");
그리고 그것은 나에게 큰 도움이 되었습니다!