Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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>@localhost:/afs /home/beam/afs

cp -r /home/beam/afs/desy.de/group/telescopes/tlu/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

...

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(cd build.rce ; make -j4  ) && ( cd build.host; make -j4 )