카테고리 없음

VNC Server on Ubuntu

jackyjung 2012. 1. 27. 09:35
Ubuntu 11.10(3.0.0-15-generic-pae #26-Ubuntu)

http://tylau0.blogspot.com/2011/12/vnc-viewer-session-with-gnome-session.html

.vnc/xstartup

#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
#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 --session=ubuntu-2d &



Ubuntu 10.xx
http://superkkt.com/530

d
 fdffd

vncserver -geometry 1800x1024 : 2

modify xstartup file like this : 
vi ~/.vnc/xstartup
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec sh /etc/X11/xinit/xinitrc 


restart vnc server
$ vncserver -kill :1
$ vncserver -geometry 1800x1024 :1