Skip to content

Instantly share code, notes, and snippets.

@brockpalen
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brockpalen/9907962 to your computer and use it in GitHub Desktop.
Save brockpalen/9907962 to your computer and use it in GitHub Desktop.
Running VNC on the Flux Cluster
#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
#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