Add 'controls' and 'cdsadmin' user to sudo group. Create /etc/sudoers.d/users with the following:
# install some helpful packages
```plaintext
cdsadmin ALL=(ALL) NOPASSWD: ALL
```
controls ALL=(ALL) NOPASSWD: ALL
apt install vim emacs tmux sudo
```
```
**_From this point on, we will be using the ‘controls’ user with sudo privileges to enter the commands. Commands will be entered into the command line and will be denoted with the prefix ‘controls@x2fec’_**
**Note: The LIGO standard UID for controls is 1001 across all systems. Any hosts connected to the FEC should follow this standard**
# Create CDS directories
Add 'controls' and 'cdsadmin' user to sudo group. Create /etc/sudoers.d/users with the following:
**_From this point on, we will be using the ‘controls’ user with sudo privileges to enter the commands. Commands will be entered into the command line and will be denoted with the prefix ‘controls@x2fec’_**
```
# Create CDS directories
# Setup CDS Repositories for Debian 10
as controls
Instructions for CDS repositories setup can be found [here](https://git.ligo.org/cds/software/advligorts/-/wikis/Enabling-Debian-CDS-Software-Repositories)
Instructions for CDS repositories setup can be found [here](https://git.ligo.org/cds/software/advligorts/-/wikis/Enabling-Debian-CDS-Software-Repositories)
export ifo=x1
```
# Create site, ifo directories
```plaintext
Modify the commands below to fit your ifo and site, as controls:
mkdir -p /opt/rtcds/$site/$ifo/chans/daq/archive
mkdir -p /opt/rtcds/$site/$ifo/log
```
mkdir -p /opt/rtcds/$site/$ifo/scripts
export SITE=TST
mkdir -p /opt/rtcds/$site/$ifo/chans/tmp
export site=tst
mkdir -p /opt/rtcds/$site/$ifo/chans/ipc
export IFO=X1
mkdir -p /opt/rtcds/$site/$ifo/rtbuild
export ifo=x1
mkdir -p /opt/rtcds/$site/$ifo/medm
```
mkdir -p /opt/rtcds/$site/$ifo/target/gds/bin
mkdir -p /opt/rtcds/$site/$ifo/target/gds/param
```plaintext
```
mkdir -p /opt/rtcds/$site/$ifo/chans/daq/archive
mkdir -p /opt/rtcds/$site/$ifo/log
# Install Required Software
mkdir -p /opt/rtcds/$site/$ifo/scripts
mkdir -p /opt/rtcds/$site/$ifo/chans/tmp
It is recommended to copy and paste the command below
The FEC exports the /opt/rtcds directory to the directly connected workstation, insert workstation ip into `<workstation-ip>`. Directions for mounting the NFS mount on the workstation will be included in the workstation setup instructions.**If you are configuring your front-end as a cymac (front-end and workstation on the same host), you can skip this step.**
# Install Required Software
Add the following content to `/etc/exports` and run `/usr/sbin/exportfs -a`. Restart the nfs-server.service.
It is recommended to copy and paste the command below
after /etc/exports is modified, update the ntp server with:
# Setup NFS export of /opt/rtcds directory
The FEC exports the /opt/rtcds directory to the directly connected workstation, insert workstation ip into `<workstation-ip>`. Directions for mounting the NFS mount on the workstation will be included in the workstation setup instructions.**If you are configuring your front-end as a cymac (front-end and workstation on the same host), you can skip this step.**
```
Add the following content to `/etc/exports` and run `/usr/sbin/exportfs -a`. Restart the nfs-server.service.
**Option B** - Install master from Git repository If you are going to do development, especially on Debian 8 and newer, use a git checkout Create the 'rtscore' directory for it and go to it
**Option B** - Install master from Git repository If you are going to do development, especially on Debian 8 and newer, use a git checkout Create the 'rtscore' directory for it and go to it
At the top of ```/etc/advligorts/env``` and ```/etc/advligorts/systemd_env```, make sure lowercase vars ```ifo``` and ```site``` are set as in this example:
At the top of ```/etc/advligorts/env``` and ```/etc/advligorts/systemd_env```, make sure lowercase vars ```ifo``` and ```site``` are set as in this example:
You will also need to set the RCG_LIB_PATH environment variable for the controls user. This can be set in ```/etc/advligorts/env```
```
with the following addition.
SITE=TST
IFO=X1
```plaintext
site=tst
ifo=x1
# LIGO site environment files with hand-curated model paths
```
if [ $BASH_VERSION ] ; then
if [ -e /opt/rtcds/userapps/release/etc/userapps-user-env.sh ] ; then
svn co https://redoubt.ligo-wa.caltech.edu/svn/cds_user_apps/trunk
```
ln -s trunk release
```
## Install ezca, add soft-links (skip for CyMAC or standalone)
# Install EPICS Base
To build the real-time models, you also need the EPICS ezca package. However, this currently installs a level down at '/usr/lib/epics/extensions', so we need to add soft-links at /usr/lib/epics directories
We will get the Base and the python scripts that go with it
To build the real-time models, you also need the EPICS ezca package. However, this currently installs a level down at '/usr/lib/epics/extensions', so we need to add soft-links at /usr/lib/epics directories
```
```plaintext
# Install caRepeater service
sudo apt install epics-ezca-dev
cd /usr/lib/epics
We want to make sure caRepeater starts on boot. The file 'caRepeater.service' comes with EPICS base 3.15.5 and later. It needs to be customized to location of caRepeater. Create the file `/etc/systemd/system/caRepeater.service` with the following contents
We want to make sure caRepeater starts on boot. The file 'caRepeater.service' comes with EPICS base 3.15.5 and later. It needs to be customized to location of caRepeater. Create the file `/etc/systemd/system/caRepeater.service` with the following contents
# systemctl enable caRepeater
# systemctl start caRepeater
```plaintext
#
#
# To check the status:
# Linux systemd service file for the EPICS CA Repeater