Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
The basic setup was done with internet access in the SLAC group C lab
  • Install CentOS 7 (Minimal Compute Node and Development Tools)
  • Add an user named "beam"
  • Disable selinux by editing /etc/selinux/config and setting SELINUX=disabled
  • Disable firewall by running: systemctl disable firewalld && systemctl stop firewalld

...

EUDAQ requires gcc version 4.9 or higher. Installation of gcc 7 6 from devtoolset-74

yum install centos-release-scl
yum-config-manager --enable rhel-server-rhscl-7-rpms
yum install devtoolset-74

Install ROOT and cmake3 from EPEL 7

...

 yum install libusb-devel

 yum install qt5-qtbase-dev

Other useful packages /required  packages (sshfs = user space ssh filesystem, emacs, etc.)

yum install sshfs emacs xauth

The server box has two ethernet ports. One is used to connect to the restricted ESA network, the second port to connect to a private RCE network.

...

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME=enp2s0
UUID=a1104b8c-87b0-4867-b7df-9eca4bb605b2
DEVICE=enp2s0
ONBOOT=yes
IPADDR=192172.16827.4104.10145
PREFIX=2422
GATEWAY=192172.16827.4104.4
DNS1=134.79.164.111

Configuration of the RCE NIC (edit  /etc/sysconfig/network-scripts/ifcfg-enp3s0)

...

proxy=socks5h://localhost:1080

 

Accessing the internet through a double hop ssh SOCKS5 proxy for yum and git.

This is using ar-eudaq and rhel32-6 as hops, localhost:1080 as SOCKS5 proxy, localhost:2222 as ssh forward to rhel6-32

ssh -t   -L 1080:localhost:9696 -L2222:localhost:2222 <your_slac_user_name>@172.27.100.8 ssh -L2222:localhost:22  -D 9696 rhel6-32 -N 

 

Compiling EUDAQ. Compiling EUDAQ. This recipe assumes internet access and needs to be revised for the ESA restricted network

As user "beam" run

git config --global http.proxy 'socks5h://127.0.0.1:1080' #setup git proxy

git clone -b v1.7.0 https://github.com/eudaq/eudaq.git

mkdir /home/beam/afs

#use sshfs to mount AFS

sshfs -p 2222 <your_slac_user_name@slac_host_with_afsname>@localhost:/afs /home/beam/afs

cp -r /home/beam/afs/desy.de/group/telescopes/tlu/tlufirmware .ZestSC1  /home/beam/eudaq/extern 

cp -r /home/beam/afs/desy.de/group/telescopes/tlu/tlufirmware   /home/beam/eudaq/extern

#unmount AFS

fusermount -u /home/beam/afs

 source /opt/rh/devtoolset-4/enable #enable gcc 4.9

cd /home/beam/eudaq/build

cmake3 -DBUILD_tlu=ON -DTLUFIRMWARE_PATH=/home/beam/eudaq/extern/tlufirmware ..

make

make install #this installs to /home/beam/eudaq/bin and lib

Installing RCE SDK as root

mkdir /opt/AtlasRceSdk

cd /opt/AtlasRceSdk

curl  --socks5-hostname 127.0.0.1:1080  http://rceprojectportal.web.cern.ch/RceProjectPortal/software/SDK/V0.11.1.tar.gz | tar xvfz -

Obtaining and compiling the RCE software as user "beam"

git clone --recurse-submodules https://:@gitlab.cern.ch:8443/rce/pixelrce.git

cd pixelrce/rce

source /opt/rh/devtoolset-4/enable

source scripts/setup-dev.sh 

 

Setting up an RCE with static IP

make sure the ntp daemon is installed and enabled:

yum install ntp

Edit /etc/ntp.conf and replace server definitions by

server 172.27.100.16

systemctl start ntpd

systemctl start enable ntpd

Edit /etc/rc.local 

ntpdate -s 172.27.100.16
touch /var/lock/subsys/local

Fix permissions

chmod +x   /etc/rc.d/rc.local

Edit  /etc/sysconfig/network-scripts/ifcfg-eth0

NAME=eth0
TYPE=ethernet
BOOTPROTO=none
DEVICE=eth0
NETMASK=255.255.252.0
IPADDR=172.27.104.52
DNS1=134.79.111.111
GATEWAY=172.27.104.1
ONBOOT=yes
NM_CONTROLLED=no
IPV4_FAILURE_FATAL=no
IPV6INIT=no