1) For running VNC on cluster
ssh -i id_rsa -L 5999:localhost:5999 user@loginN.cluster.it4i.cz -X
where id_rsa is your id_rsa for accounts on IT4I clusters and N is number from 1-4 depending how many login nodes appropriate cluster has.
2) Here two options: a) for the very first time, b) for second and other time with that one forgets to kill VNC server...
2a) Running VNC server for the very first time
VNCpasswd and give password... needed in step 4 on your local machine
vncserver :XX, where XX is number no one is using... one can check
ps aux | grep Xvnc | sed -rn 's/(\s) .Xvnc (\:[0-9]+) ./\1 \2/p'
and use some empty or just try..
2b) Running VNC... trying on port 99
Aha, you see I already have VNC running, forget to kill it and it is on my name and port :5!, see below. So I will use it.
[user@cluster ~]$ vncserver :99
A VNC server is already running as :99
New 'login1.cluster:5 (user)' desktop is login1.cluster:5
Starting applications specified in /home/user/.vnc/xstartup
Log file is /home/user/.vnc/login1.user:5.log
But it runs on port 5, never mind...
3) on local machine
vncviewer 127.0.0.1:5905
Connected to RFB server, using protocol version 3.8
Performing standard VNC authentication
4) Now one has VNC viewer screen
5) Open terminal and log in to vizserver for some interactive job...
qsub -q qviz -I -A OPEN-20-1 -X
6) ml MedeA
7) MedeA and one can work...
Forget to tell. I am using the VNC that is in my system, i.e. tiger or tightvnc....