This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
howto:remote_viz [2020/11/09 18:26] ccrosby [Getting a Virtual Desktop on a compute node] |
howto:remote_viz [2020/11/11 15:03] (current) ccrosby [Getting a Virtual Desktop on a compute node] |
||
---|---|---|---|
Line 178: | Line 178: | ||
#PBS -m abe | #PBS -m abe | ||
#PBS -M justsomeuser@gmail.com | #PBS -M justsomeuser@gmail.com | ||
- | /apps/chpc/compmech/TurboVNC-2.2.3/bin/vncserver :1 -depth 24 -geometry 1600x900 | + | ### This following line will write the hostname of your compute node to the file hostname.txt |
+ | hostname > hostname.txt | ||
+ | /apps/chpc/compmech/TurboVNC-2.2.5/bin/vncserver :1 -depth 24 -geometry 1600x900 | ||
sleep 2h | sleep 2h | ||
- | /apps/chpc/compmech/TurboVNC-2.2.3/bin/vncserver -kill :1 | + | /apps/chpc/compmech/TurboVNC-2.2.5/bin/vncserver -kill :1 |
</file> | </file> | ||
- | Obviously customise this script to suit your own circumstances. The above script will provide 4 cores for two hours. DO NOT use more than 4 cores in the VNC session. If you intend using a full compute node, use the smp queue and request 24 cores. If you need more than 2 hours, specify the walltime as well as the sleep time accordingly. Get the compute node hostname by querying PBS: ''qstat -awu username'' will give you the jobnumbers of all your jobs (please substitute "username" with your OWN username). ''qstat -n1 jobnumber'' will give you the hostname of the compute node(s) that you are using for that job. | + | Obviously customise this script to suit your own circumstances. The above script will provide 4 cores for two hours. DO NOT use more than 4 cores in the VNC session. If you intend using a full compute node, use the smp queue and request 24 cores. If you need more than 2 hours, specify the walltime as well as the sleep time accordingly. Get the compute node hostname either by looking in the file hostname.txt or by by querying PBS: ''qstat -awu username'' will give you the jobnumbers of all your jobs (please substitute "username" with your OWN username). ''qstat -n1 jobnumber'' will give you the hostname of the compute node(s) that you are using for that job. |