티스토리 뷰

Development

[Linux] UbuntuServer : vnc 설치

devbible 2013. 2. 18. 13:56


1. vnc4server 설치

 sudo apt-get install vnc4server xinetd


2. vnc 패스워드 설정

vnc4server

vnc4server -kill :1 


3. xstartup 수정

 cd .vnc
ls -al
vi 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 &

4. 권한변경

 sudo chmod 755 /etc/X11/xinit/xinitrc



5. vnc4server 실행

 vnc4server


6. 접속

vnc viewer 를 이용함. 포트번호는 5900 + desktopNumber

예)192.172.100.1:5901

댓글