Sunday, October 16, 2005

VNC Server Setup on Ubuntu 4.10

VNC Server Setup on Ubuntu 4.10
=====================================
$ sudo vi /etc/apt/sources.lst
# uncomment the unverse repository
$ sudo apt-get update && apt-get install vnc4server
$ sudo vi /etc/X11/Xwrapper.config
# change
allowed_users=console
to
allowed_users=anybody
$ sudo vi /etc/vnc.conf
# change
$XFConfigPath = "/etc/X11/XF86Config"
to
$XFConfigPath = "/etc/X11/xorg.conf"
$ echo "gnome-session &" > vi ~/.vnc/xstartup
$ vncpasswd
# set password here
$ vncserver -geometry 1024x768 -depth 24 :1
$ vncserver -kill :1
# to kill vnc