diff --git a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/vnc.md b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/vnc.md index bb5c64d966a4a7ef8a59b19d64f76e8b69ba8441..ce5d2218caf19acaa3685b84c99781ade2dce0cb 100644 --- a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/vnc.md +++ b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/vnc.md @@ -83,16 +83,16 @@ To access the remote VNC server you have to create a tunnel between the login no ## Linux/Mac OS Example of Creating a Tunnel -At your local machine, create the tunnel: +On your local machine, create the tunnel: ```console -local $ ssh -TN -f username@login2.cluster-name.it4i.cz -L 5961:localhost:5961 +$ ssh -TN -f username@login2.cluster-name.it4i.cz -L 5961:localhost:5961 ``` Issue the following command to check the tunnel is established (note the PID 2022 in the last column, it is required for closing the tunnel): ```console -local $ netstat -natp | grep 5961 +$ netstat -natp | grep 5961 (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:5961 0.0.0.0:* LISTEN 2022/ssh @@ -102,14 +102,14 @@ tcp6 0 0 ::1:5961 :::* LISTEN Or on Mac OS use this command: ```console -local-mac $ lsof -n -i4TCP:5961 | grep LISTEN +$ lsof -n -i4TCP:5961 | grep LISTEN ssh 75890 sta545 7u IPv4 0xfb062b5c15a56a3b 0t0 TCP 127.0.0.1:5961 (LISTEN) ``` Connect with the VNC client: ```console -local $ vncviewer 127.0.0.1:5961 +$ vncviewer 127.0.0.1:5961 ``` In this example, we connect to remote VNC server on port 5961, via the SSH tunnel. The connection is encrypted and secured. The VNC server listening on port 5961 provides screen of 1600x900 pixels. @@ -151,7 +151,7 @@ Fill the _Source port_ and _Destination_ fields. **Do not forget to click the _A At your machine, create the tunnel: ```console -local $ ssh username@login2.cluster-name.it4i.cz -L 5961:localhost:5961 +$ ssh username@login2.cluster-name.it4i.cz -L 5961:localhost:5961 ``` ## Example of Starting VNC Client @@ -203,7 +203,7 @@ username 24316 0.0 0.0 270564 3528 ? Ss 14:12 0:00 gnome-screensa You should kill your VNC server using the command: ```console -$ vncserver -kill :61 +$ vncserver -kill :61 Killing Xvnc process ID 7074 Xvnc process ID 7074 already killed ``` @@ -211,7 +211,7 @@ Xvnc process ID 7074 already killed or: ```console -$ pkill vnc +$ pkill vnc ``` !!! note