NICE DCV

Install NICE DCV (user-computer)

Install VPN client VPN Access

How to Use

Read our documentation on VNC server.

Run VNC

  • Login to Salomon
[username@yourPC]$ ssh -i path/to/your_id_rsa user@login1.salomon.it4i.cz
  • Run Job on Salomon
[user@login1]$ qsub -I -q qviz -A OPEN-XX-XX -l select=1:ncpus=4:host=vizserv1,walltime=04:00:00 -N Vizserver1

Or

[user@login1]$ qsub -I -q qviz -A OPEN-XX-XX -l select=1:ncpus=4:host=vizserv2,walltime=04:00:00 -N Vizserver2

You are connected to Vizserv1(2) now.

[yourusername@vizserv2 ~]$

VNC Server

  • Create VNC Server Password

Note

VNC server password should be set before the first login to VNC server. Use a strong password.

[yourusername@vizserv2 ~]$ vncpasswd
password:
verify:
  • Check the display number of the connected users
[yourusername@vizserv2 ~]$ ps aux | grep Xvnc | sed -rn 's/(\s) .*Xvnc.* (\:[0-9]+) .*/\1 \2/p'
username :15
username :61
.....

Note

The VNC server runs on port 59xx, where xx is the display number. To get your port number, simply add 5900 + display number, in our example 5900 + 11 = 5911. Calculate your own port number and use it instead of 5911 from examples below.

  • Start your remote VNC server

Note

Choose the display number which is different from other users display number. Also remember that display number should be lower or equal 99.

[yourusername@vizserv2 ~]$ vncserver :11 -geometry 1600x900 -depth 24
Running applications in /etc/vnc/xstartup
VNC Server signature: f0-3d-df-ee-6f-a4-b1-62
Log file is /home/yourusername/.vnc/vizserv2:11.log
New desktop is vizserv2:11 (195.113.250.204:11)
  • Check the display number
[yourusername@vizserv2 ~]$ ps aux | grep Xvnc | sed -rn 's/(\s) .*Xvnc.* (\:[0-9]+) .*/\1 \2/p'
username :15
username :61
yourusername :11
.....

Note

You started new VNC server. Server is listening on port 5911 (5900 + 11 = 5911).

Your VNC server is listening on port 59xx, in our example on port 5911.

VNC Client (your local machine)

Note

You are going to connect your local machine to remote VNC server.

  • Create the ssh tunnel (on your local machine) for 59xx port, plus for the range of ports 7300-7305
[username@yourPC]$ ssh -i path/to/your_id_rsa -TN -f user@vizserv2.salomon.it4i.cz -L 5911:localhost:5911 -L 7300:localhost:7300 -L 7301:localhost:7301 -L 7302:localhost:7302 -L 7303:localhost:7303 -L 7304:localhost:7304 -L 7305:localhost:7305

For the Windows users use Putty Download PuTTY installer for ssh tunnel creation; follow an instruction here VNC server.

  • Run NICE DCV or one of the recommended clients (on your local machine)

Recommended clients are TightVNC or TigerVNC (free, open source, available for almost any platform).

  • localhost:59xx
  • fill password

Test the OpenGL functionality on Vizserv

  • Run the command in VNC terminal
[kub0393@vizserv2 ~]$ /apps/easybuild/glxgears

Test the NICE DCV functionality

  • Run the command in VNC terminal
[kub0393@vizserv2 ~]$ dcvtest

Stop the Service Correctly After Finishing Work

On VNC server site

  • Logout from your local VNC window

On your local machine

  • PID of your ssh tunel
[username@yourPC]$ netstat -natp | grep 5911
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp        0      0 127.0.0.1:5911          0.0.0.0:*               LISTEN      5675/ssh
tcp6       0      0 ::1:5911                :::*                    LISTEN      5675/ssh

Or

[username@yourPC]$ lsof -i :5911
COMMAND  PID USER    FD   TYPE DEVICE SIZE/OFF NODE NAME
ssh     5675  user    5u  IPv6 571419      0t0  TCP ip6-localhost:5911 (LISTEN)
ssh     5675  user    6u  IPv4 571420      0t0  TCP localhost:5911 (LISTEN)

Note

PID in our example is 5675. You also need use correct port number for both command above, 5911 is correct port number in our example.

  • Kill the process (PID = Process ID)
[username@yourPC]$ kill 5675

Note

Your PID is different from PID in our example.

  • Windows users

Close Putty.

Comments