This page is meant as a primer for initiating remote access session to hutch laser controls systems. If the desire is to access accelerator-side controls systems such as those for the LCLS-I and LCLS-II photoinjectors, the following page is also recommendable: Remotely connecting to S20 laser controls and diagnostic (for on-shift QLOs)

When working off-site, it may be important access the critical controls and computing architecture needed to support hutch activities. NoMachine, an application-based tool, and FastX, a browser-based utility, are two different ways to get this access. This brief tutorial walks through some of the basic steps of use. 

Note also that MobaXterm is another well-recommended remote access platform that, while not shown in this tutorial, is often preferred above NoMachine for its stability and added conveniences. 

Before getting started: remote access permissions

If this is your first time ever accessing SLAC's networks, you may need to review the procedure for securing the correct access permissions to the networks needed: Unix account permissions for accessing SLAC networks and remote machines

NoMachine



FastX

If it’s your first time using the terminal line under your own log-in credentials (whether using FastX, NoMachine, etc.), you'll need to define some commands in order to run the utilities you want.

To do so, from your terminal type gedit ~/.bashrc (or otherwise open the .bashrc file in another favorite text editor like emacs or vim). This will bring up a new window.

Copy the text below and paste it into the file you’ve opened. [Note: the NoMachine windows share the same clipboard as your desktop, though this may be trickier using FastX.] Once successful, click ‘save’ and exit the text editor. Now from the terminal, you should be able to do things like launch MEC Home, mecpython, VNC, etc.

If you're still having trouble, try typing source ~/.bashrc or try exiting your session completely and starting with a fresh terminal to make sure it sees the new definitions.

WARNING: THERE MAY BE SPECIAL CHARACTERS PROBLEMS WHEN COPYING AND PASTING – WATCH OUT FOR PROBLEMS!!

SEE ALSO: https://github.com/pcdshub/shared-dotfiles and https://github.com/pcdshub/shared-dotfiles/blob/master/on_site/bashrc !!


-------------------Copy everything below this line into your .bashrc file-------------------

# .bashrc

# Source global definitions

if [ -f /etc/bashrc ]; then

  . /etc/bashrc

fi

#### PATH definitions starts ####
# clear the path before assigning relevant values
export PATH=$PATH
export PATH=/reg/common/package/python/2.7.2/bin:$PATH # commented out by Zhou
export PATH=/reg/g/pcds/package/epics/3.14/base/current/bin/linux-x86/:$PATH
export PATH=/reg/g/pcds/epics-dev/screens/edm/cxi/current/:$PATH


#snelson: added what we have in xpp

export PATH=/reg/neh/operator/mecopr/bin:${PATH}

export PATH=/reg/common/tools/bin:${PATH}

export PATH=/reg/g/pcds/engineering_tools/mec/scripts:${PATH}

export PATH=/reg/g/pcds/pyps/apps/iocmanager/latest:${PATH}

#### PATH definitions ends   ####

###################################################

### Basic PCDS environment setup for all logins ###

###################################################

source /reg/g/pcds/setup/pathmunge.sh

if [ -f "${HOME}/.pcds_setup.sh" ]; then

    source "${HOME}/.pcds_setup.sh"

fi

source /reg/g/pcds/setup/epics-ca-env.sh

source /reg/neh/home/sioan/setupEpics &> /dev/null

source /reg/g/pcds/setup/epicsenv-cur.sh &> /dev/null

export PSPKG_ROOT=/reg/g/pcds/pkg_mgr

export PSPKG_RELEASE="sxr=3.0.0"

PATH="$PATH:/reg/common/tools/bin"

Final note:

This page is also mirrored here on the LCLS Laser Confluence: How to remotely connect to the EPICS control system for lasers

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.

Related issues