vnc server 사용법 본문

Programming

vnc server 사용법

halatha 2011. 4. 19. 23:55
remote server에 vnc4server가 입력된 경우 다음과 같이 vnc4server를 입력하면 personal screen session을 시작. 출력되는 output screen ID (:X)를 확인해야 한다.
remote-server$ vnc4server
You will require a password to access your desktops.

Password:
Verify:
Password too long - only the first 8 characters will be used

New 'remote-server:2 (hchung)' desktop is remote-server:2

Creating default startup script /home/hchung/.vnc/xstartup
Starting applications specified in /home/hchung/.vnc/xstartup
Log file is /home/hchung/.vnc/remote-server:2.log

자신의 서버에서 vnc program을 실행시키고(e.g. Ubuntu의 원격 데스크탑 보기) 연결시 다음과 같은 형식으로 입력
vnc remote-server:X


자신의 스크린을 삭제하려면
vncserver -kill :X

자신의 계정의 ~/.vnc/xstartup file에서 x-window-manager and using gnome-session을 주석처리 해 default window manager를 complete gnome으로 변경할 수도 있음
#!/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 &
#gnome-session &
Comments