Skip to content
Snippets Groups Projects
Commit 17b8b00b authored by Pavel Jirásek's avatar Pavel Jirásek
Browse files

Bod 2,4,5,6

parent 2c95a908
Branches
Tags
No related merge requests found
...@@ -22,9 +22,9 @@ Verify: ...@@ -22,9 +22,9 @@ Verify:
!!! note !!! note
To access VNC a local vncserver must be started first and also a tunnel using SSH port forwarding must be established. To access VNC a local vncserver must be started first and also a tunnel using SSH port forwarding must be established.
[See below](vnc.md#linux-example-of-creating-a-tunnel) for the details on SSH tunnels. In this example we use port 61. [See below](vnc.md#linux-example-of-creating-a-tunnel) for the details on SSH tunnels. In this example we use display number 61.
You can find ports which are already occupied. Here you can see that ports " /usr/bin/Xvnc :79" and " /usr/bin/Xvnc :60" are occupied. You can find display numbers which are already occupied on the login2. Here you can see that displays " /usr/bin/Xvnc :79" and " /usr/bin/Xvnc :60" are occupied.
```console ```console
[username@login2 ~]$ ps aux | grep Xvnc [username@login2 ~]$ ps aux | grep Xvnc
...@@ -44,7 +44,7 @@ Starting applications specified in /home/username/.vnc/xstartup ...@@ -44,7 +44,7 @@ Starting applications specified in /home/username/.vnc/xstartup
Log file is /home/username/.vnc/login2:1.log Log file is /home/username/.vnc/login2:1.log
``` ```
Check if VNC server is started on the port (in this example 61): Check if VNC server is started (in this example display number is 61):
```console ```console
[username@login2 .vnc]$ vncserver -list [username@login2 .vnc]$ vncserver -list
...@@ -62,8 +62,10 @@ Another command: ...@@ -62,8 +62,10 @@ Another command:
username 10296 0.0 0.0 131772 21076 pts/29 SN 13:01 0:01 /usr/bin/Xvnc :61 -desktop login2:61 (username) -auth /home/vop999/.Xauthority -geometry 1600x900 -depth 16 -rfbwait 30000 -rfbauth /home/username/.vnc/passwd -rfbport 5961 -fp catalogue:/etc/X11/fontpath.d -pn username 10296 0.0 0.0 131772 21076 pts/29 SN 13:01 0:01 /usr/bin/Xvnc :61 -desktop login2:61 (username) -auth /home/vop999/.Xauthority -geometry 1600x900 -depth 16 -rfbwait 30000 -rfbauth /home/username/.vnc/passwd -rfbport 5961 -fp catalogue:/etc/X11/fontpath.d -pn
``` ```
!!! note
The vncserver runs on port 5900 + display number. You get your port number simply as 5900 + display number (in this example 61), so the result is 5961.
To access the VNC server you have to create a tunnel between the login node using TCP **port 5961** and your machine using a free TCP port (for simplicity the very same, in this case). To access the VNC server you have to create a tunnel between the login node using TCP **port 5961** and your machine using a free TCP port (for simplicity the very same, in this case). See examples for [Linux/Mac OS](#linuxmac-os-example-of-creating-a-tunnel) and [Windows](#windows-example-of-creating-a-tunnel).
!!! note !!! note
The tunnel must point to the same login node where you launched the VNC server, eg. login2. If you use just cluster-name.it4i.cz, the tunnel might point to a different node due to DNS round robin. The tunnel must point to the same login node where you launched the VNC server, eg. login2. If you use just cluster-name.it4i.cz, the tunnel might point to a different node due to DNS round robin.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment