Changes between Version 17 and Version 18 of vnc3d/manual
- Timestamp:
- 06/23/20 11:03:01 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
vnc3d/manual
v17 v18 2 2 [[PageOutline]] 3 3 4 === Using VNC requires threegeneral steps.5 1. '''Prepare your account''' on a JU RECAVIS node.6 2. '''Start a VNC server''' on a JU RECAnode.4 === Using VNC requires four general steps. 5 1. '''Prepare your account''' on a JUWELSVIS node. 6 2. '''Start a VNC server''' on a JUWELSVIS node. 7 7 3. '''Tunnel VNC traffic''' to your workstation. 8 8 4. '''Start a VNC viewer''' on your workstation and connect to the VNC server. … … 11 11 === 1. Prepare your account ... 12 12 Before you use VNC '''for the first time''' you have to prepare your account: 13 * login to a JU RECAVIS node13 * login to a JUWELSVIS node 14 14 * create the directory ~/.vnc 15 15 * define VNC password 16 16 {{{ #!sh 17 ssh <USERID>@ju recavis.fz-juelich.de17 ssh <USERID>@juwelsvis.fz-juelich.de 18 18 mkdir ~/.vnc 19 19 vncpasswd … … 22 22 \\ 23 23 === 2. Start VNC server ... 24 The following steps are necessary to start a VNC server on JU RECA. \\24 The following steps are necessary to start a VNC server on JUWELS. \\ 25 25 Please notice that you have two general options: 26 26 … … 37 37 In case the VNC server could successfully be started (details in 2a,b), you will find a simular line in the output: 38 38 {{{ #!sh 39 Desktop 'TurboVNC: ju recavis02.fz-juelich.de:1 (profile <PROFILE>)' started on display jrc1384:1 (jurecavis02.fz-juelich.de:1)39 Desktop 'TurboVNC: juwelsvis02.fz-juelich.de:1 (profile <PROFILE>)' started on display juwelsvis02.ib.juwels.fzj.de:1 (juwelsvis02.fz-juelich.de:1) 40 40 }}} 41 41 42 42 Two important informations have to be taken from this output \\ 43 43 to setup the required SSH tunnel (with the correct network port) to the allocated node in step 2: 44 1. The allocated node is '''ju recavis02'''44 1. The allocated node is '''juwelsvis02''' 45 45 2. The number of the VNC display is ''':1''' 46 46 … … 51 51 * To ensure VNC sessions are not forgotten and keep on running forever, they will be '''killed after 24 hours ''' (WITHOUT warning). 52 52 * Logout from your VNC session, after you have finished your work. This will save resources and close the VNC server. \\ 53 * If you start the VNC server the first time , you will be asked for a password (which is stored in ~/.vnc/passwd). \\54 You will be asked for this password by the VNC viewer, when you connect to the VNC server. \\53 * If you start the VNC server the first time and you did not call vncpasswd in step 1, you will be asked for a password (which is stored in ~/.vnc/passwd). \\ 54 You will be asked for this password by the VNC Viewer each time, when you connect to the VNC server. \\ 55 55 To reset the password just delete the file ~/.vnc/passwd. 56 56 57 57 ==== a. ... on an interactive vis login node 58 Open a SSH shell on an interactive vis login node (ju recavis.fz-juelich.de):58 Open a SSH shell on an interactive vis login node (juwelsvis.fz-juelich.de): 59 59 {{{ #!sh 60 ssh <USERID>@ju recavis.fz-juelich.de60 ssh <USERID>@juwelsvis.fz-juelich.de 61 61 }}} 62 62 63 Start your own VNC server on jurecavis.63 Start your VNC server on juwelsvis. 64 64 Usefull vncserver parameters are: 65 65 * -profile -> choose a profile (eg. -profile vis) … … 76 76 77 77 ==== b. ... on a dedicated vis node 78 Open an SSH shell on any login node of JU RECAthe usual way:78 Open an SSH shell on any login node of JUWELS the usual way: 79 79 80 80 {{{ #!sh 81 ssh <USERID>@ju reca.fz-juelich.de81 ssh <USERID>@juwels.fz-juelich.de 82 82 }}} 83 83 sbatch is used to start a job script. In this case the job script should start the vnc server and could look like: … … 102 102 103 103 The option '--start-xserver' tells sbatch that it should start an X-server on the allocated node, which is important if you want to do hardware rendering on a GPU.\\ 104 Once the job is tstarted, you have to find out the name of the node on which the job is running and the number of the vnc display.\\104 Once the job is started, you have to find out the name of the node on which the job is running and the number of the vnc display.\\ 105 105 To do this you have to look at the output file generated by slurm, e.g.: 106 106 … … 117 117 118 118 === 3. Tunnel VNC traffic to workstation 119 Now you have to open an SSH tunnel from your workstation to node on which your VNC server is running. \\120 The steps to be done depend stronglyon your operating system and your setup.119 Now you have to open an SSH tunnel from your workstation to the node on which your VNC server is running. \\ 120 The necessary steps strongly depend on your operating system and your setup. 121 121 122 122 '''Linux:'''\\ 123 If your operating system is Linux use for interactive nodes (NODE is most likely jurecavis01... or jurecavis02...):123 If your operating system is Linux use for interactive nodes (NODE is juwelsvis00... up to juwelsvis03...): 124 124 {{{ #!ShellExample 125 125 ssh -N -L <5900+DISPLAY>:<NODE>:<5900+DISPLAY> <USERID>@<NODE>.fz-juelich.de 126 # example: ssh -N -L 5907:ju recavis01:5907 jjuser@jurecavis01.fz-juelich.de126 # example: ssh -N -L 5907:juwelsvis01:5907 jjuser@juwelsvis01.fz-juelich.de 127 127 }}} 128 128 129 129 and for dedicated nodes: 130 130 {{{ #!ShellExample 131 ssh -N -L <5900+DISPLAY>:<NODE>:<5900+DISPLAY> <USERID>@ju reca.fz-juelich.de132 # example: ssh -N -L 5902:j rc1386:5902 jjuser@jureca.fz-juelich.de131 ssh -N -L <5900+DISPLAY>:<NODE>:<5900+DISPLAY> <USERID>@juwels.fz-juelich.de 132 # example: ssh -N -L 5902:juwelsvis01:5902 jjuser@juwels.fz-juelich.de 133 133 }}} 134 134 … … 139 139 Here a short overview on how-to setup a tunnel with [http://www.putty.org/ PuTTY] is given. 140 140 141 It is assumed that PuTTY is already configured in a way that a general ssh connection to JU RECAis possible. \\141 It is assumed that PuTTY is already configured in a way that a general ssh connection to JUWELS is possible. \\ 142 142 That means that host name, user name and the private ssh key (using PuTTY's Pageant) are correctly set. 143 143 144 To establish the ssh tunnel, enter the "SSH-->tunnels" tab in the PuTTY configuration window. \\ 145 You have to enter the source port (eg. <5900+DISPLAY> = 5902 if DISPLAY=2) and the destination (in this case localhost:<5900+DISPLAY>) and than press add. \\ 144 You already made a first connection to JUWELS using PUTTY and started vncserver. 145 146 To establish the ssh tunnel start a second PUTTY and enter the "SSH-->tunnels" tab in the PuTTY configuration window '''before connecting to JUWELS'''. \\ 147 You have to enter the source port (eg. <5900+DISPLAY> = 5902 if DISPLAY=2) and the destination (in this case juwelsvis01.fz-juelich.de:<5900+DISPLAY>) and than press add. \\ 146 148 After pressing add, the tunnel should appear in the list of forwarded ports and you can establish the tunnel by pressing the open button: 147 149 … … 175 177 vncviewer localhost:2 176 178 }}} 177 After typing in your VNC password (defined in step 1), you will have access to the remote graphical desktop running on the visualization node of JU RECA.179 After typing in your VNC password (defined in step 1), you will have access to the remote graphical desktop running on the visualization node of JUWELS. 178 180 179 181