The RTDC
Processing SMA Data
1.2 m Telescopes
AST/RO
Extra

Running a VNC Session


Before getting started you must have VPN access to CF. Find instructions here.

  1. Start the VNC server on your chosen RTDC machine by typing

    $ vncserver

    Set up a VNC password if this is the first time, or you can reset your password with

    $ vncpasswd

    You can see your list of running servers by typing

    $ vncserver -list

    TigerVNC server sessions:
    X DISPLAY # PROCESS ID
    :3 25031

    and kill them with

    $ vncserver -kill :3

  2. Download and install the VNC viewer app on your remote machine. E.g. VNC viewer

  3. Connect your remote machine to the CfA VPN with the Cisco AnyConnect app.

  4. Open the VNC viewer. Go to File->New connection, then type the name of the machine followed by the number of your session, e.g. rtdc9.cfa.harvard.edu:3

  5. Double click on your newly created session, it will ask you for your VNC password (not your CF or RTDC or VPN password). Your VNC session will pop up in a new window.


TROUBLESHOOTING
If you see (1) a black screen with three grey checkboxes, or (2) a session bus/connection failed error you should try the following.

1. Check which version of python you are running. If it is anaconda you should change the path to default system python [$setenv PATH /usr/bin:$PATH ]. Once vncserver is running and you are on the system, you can go back to using anaconda at will.
2. To make this permanent you can remove the anaconda path from your startup files (e.g. .cshrc or .bashrc), then exit the terminal and log in again. Confirm that the default python is /usr/bin/python [$which python].

RTDC10 Special Notes
Note you will need to contact Holly for extra assistance configuring vncserver on rtdc10.
• If the vncserver automatically gets killed after the start check your ~/.vnc/xstartup file and comment out the following lines.
  if [ -e /usr/bin/gnome-session ]; then
  vncserver -kill $DISPLAY
  fi

• If you get a black screen (or anything similar), follow the steps in for #1 above, except make sure python is aliased to /usr/bin/python3.6.

  If you still have problems please email Holly.

CENTER FOR ASTROPHYSICS | HARVARD & SMITHSONIAN
60 GARDEN STREET, CAMBRIDGE, MA 02138