Last active
August 29, 2015 13:57
-
-
Save brockpalen/9907962 to your computer and use it in GitHub Desktop.
Running VNC on the Flux Cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#create an ssh tunnel vis flux-xfer to the machine with our VNC Display. | |
#this example works for Mac, Linux, and Cygwin | |
#find your vnchost and display number: | |
ls -rt ~/.vnc/ | |
# eg: nyx5330.engin.umich.edu:1.log | |
# eg: nyx5330.engin.umich.edu <== host running vnc | |
# eg: 1 <== display number | |
#the port number is 5900+display number (normally 1) | |
#ssh -L 5901:<host running vnc>:5901 flux-xfer.engin.umich.edu | |
ssh -L 5901:nyx5330.engin.umich.edu:5901 flux-xfer.engin.umich.edu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#PBS -N vncjob | |
#PBS -l nodes=1:ppn=4,walltime=8:00:00,pmem=1gb | |
#PBS -A example_flux | |
#PBS -l qos=flux | |
#PBS -q flux | |
#PBS -M uniquename@umich.edu | |
#PBS -m b | |
#PBS -V | |
#vncserver -geomerty XxY -fg | |
# -geometry 1280x1024 <= default is 1024x768 | |
# -fg <= Run in foreground, needed for PBS | |
vncserver -geometry 1280x1024 -fg | |
# be sure to set yoru email in -M and -m b (mail when a job starts) | |
# without it you will have to look manualy for when the job starts. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment