Follow the instructions below:
On VNC Server machine with vnc-server installed... <--(
Your GNU/Linux box)
1)Type
vncserver -geometry 800x600 (or whatever resolution you prefer)
2) There will be a session number displayed. This will create a
.vnc directory in your home directory. (
/home/yourself/.vnc)
3) Type cd
/home/yourself/.vnc
4)Type
ls -alc (
You should see a script called xstartup)
5)Type
vi xstartup or
use whatever text editor you prefer
---
This is where we will setup your vnc session to use your window manager of choice ---
Find the section where it says
twm & and replace it with your choice, (don't include what I have in the parenthesis)
startkde & (used for the KDE window manager)
exec gnome-session & (used for the Gnome window manager)
startxfce4 & (used for the XFCE4 window manager, my favorite choice)
(I know there are more, but these seem to be the most popular ones)
6)Now type
vncserver -kill:1 (1 is our session number). This stops the VNC Server so that the xstartup script we just edited can be re-read when we restart the server.
7)Type
vncserver (to start the session back up)
8)Type
ps ax | grep vnc (check if your session is up and running)
---
Let's connect to the VNC Server! ---
From a Windows Box with TightVnc or RealVnc client installed
1)Start your VNC client and type the VNC Server hostname or IP address:1 (1 meaning whatever session number you chose)
or
From a Java Enabled Browser on any platform (not the best but it works)
1)Type
http://IP address of VNC Server:580x (x will indicate session number)
ex..
http://192.168.1.6:5801 ( for session 1)
ex..
http://192.168.1.6:5802 ( for session 2)
A simple search of this forum would have yielded these instructions!!