sudo apt-get install tightvncserver fluxbox xterm
orsudo apt-get install vnc4server fluxbox xterm
where fluxbox is the name of window manager that we want. I like fluxbox, but there are others such as twm ot ctwm. xterm is terminal console. I used the first command.After installation, each user can run its own vncserver to connect to. To start it, please run vncserver as a normal user (not root). When you run it for the first time vncserver will ask you for your password.
However, there is a problem with vncserver in this version of ubuntu. The problem is that file rgb.txt is missing, and as results vnc cannot display colors correctly. The errors in vncserver log file in ~/.vnc folder are be:
Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'
xsetroot: unknown color "grey"
To be specific, in my case, when I starter xterm, it was just showing black "patch" and not a command prompt.When searching for this rgb.txt file one finds it in /usr/share/X11/rgb.txt. However, this is a broken link:ls -l /usr/share/X11/rgb.txt
lrwxrwxrwx 1 root root 16 2009-03-17 10:09 /usr/share/X11/rgb.txt -> /etc/X11/rgb.txt
File /etc/X11/rgb.txt does not exists. The solution is to manual upload the file to /etc/X11/ and to make it readable. The file can be found performing a search in google. With this file, the colors can be displayed correctly and finally xterm in vnc was displaying what it should be displaying, i.e. command prompt.