This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mtca:mtca:centos7install [2020/08/14 11:52] – created leac | mtca:mtca:centos7install [2022/05/19 14:42] (current) – lnoeht | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| sudo yum install devtoolset-8 | sudo yum install devtoolset-8 | ||
| sudo yum install git cmake3 gcc-c++ gcc binutils \ | sudo yum install git cmake3 gcc-c++ gcc binutils \ | ||
| - | libX11-devel libXpm-devel libXft-devel libXext-devel openssl-devel | + | |
| - | sudo yum install gcc-gfortran pcre-devel \ | + | sudo yum install gcc-gfortran pcre-devel \ |
| - | mesa-libGL-devel mesa-libGLU-devel glew-devel ftgl-devel mysql-devel \ | + | mesa-libGL-devel mesa-libGLU-devel glew-devel ftgl-devel mysql-devel \ |
| - | fftw-devel cfitsio-devel graphviz-devel \ | + | fftw-devel cfitsio-devel graphviz-devel \ |
| - | avahi-compat-libdns_sd-devel openldap-devel python-devel \ | + | avahi-compat-libdns_sd-devel openldap-devel python-devel \ |
| - | libxml2-devel gsl-devel | + | libxml2-devel gsl-devel |
| - | # Install ROOT from source and compile with gcc8 | + | Install ROOT from source and compile with gcc8 |
| scl enable devtoolset-8 bash | scl enable devtoolset-8 bash | ||
| mkdir ROOT | mkdir ROOT | ||
| cd ROOT | cd ROOT | ||
| - | git clone --branch v6-22-00-patches https:// | + | git clone --branch v6-24-00-patches https:// |
| - | mkdir build install | + | mkdir build install |
| cd build | cd build | ||
| cmake3 -DCMAKE_INSTALL_PREFIX=../ | cmake3 -DCMAKE_INSTALL_PREFIX=../ | ||
| Line 25: | Line 25: | ||
| source install/ | source install/ | ||
| + | Configure repositories | ||
| - | #install cactus | + | |
| - | sudo yum install cactusboards-amc13-tools-1.2.14-0.centos7 cactusboards-amc13-amc13-1.2.14-0.centos7 | + | [xdaq] |
| - | sudo yum install cactuscore-uhal-grammars cactuscore-uhal-uhal cactuscore-uhal-tests cactuscore-uhal-pycohal cactuscore-uhal-gui cactuscore-uhal-tools cactuscore-controlhub cactusboards-amc13-amc13 cactusboards-amc13-tools pugixml-devel | + | name=XDAQ Software Core |
| + | baseurl=http:// | ||
| + | enabled=1 | ||
| + | gpgcheck=0 | ||
| + | [xdaq-worksuite] | ||
| + | name=XDAQ Software worksuite | ||
| + | baseurl=http:// | ||
| + | enabled=1 | ||
| + | gpgcheck=0 | ||
| + | [xdaq-updates] | ||
| + | name=XDAQ Software xaas | ||
| + | baseurl=http:// | ||
| + | enabled=1 | ||
| + | gpgcheck=0 | ||
| + | EOF | ||
| + | sudo cat > /etc/yum.repos.d/amc13-sw.repo << | ||
| + | [cactus-amc13-base] | ||
| + | name=CACTUS Project Software Repository for amc13 packages | ||
| + | baseurl=http:// | ||
| + | enabled=1 | ||
| + | gpgcheck=0 | ||
| + | EOF | ||
| + | | ||
| + | [ipbus-sw-base] | ||
| + | name=IPbus software repository | ||
| + | baseurl=http:// | ||
| + | enabled=1 | ||
| + | gpgcheck=0 | ||
| + | [ipbus-sw-updates] | ||
| + | name=IPbus software repository updates | ||
| + | baseurl=http:// | ||
| + | enabled=1 | ||
| + | gpgcheck=0 | ||
| + | EOF | ||
| - | #install | + | Install cactus |
| - | sudo yum group install | + | sudo yum install |
| + | sudo yum install | ||
| - | #other packages | + | Install XDAQ |
| - | sudo yum install | + | sudo yum group install |
| + | Other packages | ||
| + | sudo yum install e2fsprogs-devel libuuid-devel curlpp curlpp-devel.x86_64 freetype freetype-devel xorg-x11-fonts-75dpi libuuid-devel libcurl-devel | ||
| - | #install POS | ||
| - | mkdir TriDAS_lea | ||
| - | cd TriDAS_lea | ||
| - | scl enable devtoolset-8 bash | ||
| - | git clone https:// | ||
| - | cd pixel | ||
| - | git checkout r36 # or the latest tag above, or just master if you want to make a feature branch and do development | ||
| - | cd .. | ||
| - | cp pixel/ | ||
| - | cat > local.sh <<EOF | ||
| - | export ROOTSYS=/ | ||
| - | export BUILD_HOME=/ | ||
| - | export POS_INSTALL_PATH=\$BUILD_HOME/ | ||
| - | export POS_OUTPUT_DIRS=\$BUILD_HOME/ | ||
| - | export POS_LOG_DIR=\$BUILD_HOME/ | ||
| - | export PIXELCONFIGURATIONBASE=\$BUILD_HOME/ | ||
| - | EOF | ||
| - | source setenv.sh | ||
| - | #get FecSoftware | + | Download POS and set environment |
| - | git clone https:// | + | mkdir TriDAS_lea |
| - | cd FecSoftwareV3_0 | + | cd TriDAS_lea |
| - | make -j 8 | + | scl enable devtoolset-8 bash |
| - | make install | + | git clone https:// |
| + | cd pixel | ||
| + | git checkout master | ||
| + | cd .. | ||
| + | cp pixel/ | ||
| + | cat > local.sh << | ||
| + | export ROOTSYS=/ | ||
| + | export BUILD_HOME=/ | ||
| + | export POS_INSTALL_PATH=\$BUILD_HOME/ | ||
| + | export POS_OUTPUT_DIRS=\$BUILD_HOME/ | ||
| + | export POS_LOG_DIR=\$BUILD_HOME/ | ||
| + | export PIXELCONFIGURATIONBASE=\$BUILD_HOME/ | ||
| + | EOF | ||
| + | source setenv.sh | ||
| + | |||
| + | Download and compile | ||
| + | git clone https:// | ||
| + | cd FecSoftwareV3_0 | ||
| + | make -j 8 | ||
| + | make install | ||
| + | |||
| + | Compile POS | ||
| + | cd $BUILD_HOME/ | ||
| + | make Set=pixel -j 8 | ||
| + | make install | ||
| + | cd $BUILD_HOME/ | ||
| + | mkdir Logs Runs | ||
| + | |||
| + | Note: I encountered compilation errors and had to add the line: | ||
| + | #include < | ||
| + | to these two header files: | ||
| + | TriDAS_lea/ | ||
| + | TriDAS_lea/ | ||
| + | |||
| + | |||
| + | === Installation of network card on Centos7 === | ||
| + | |||
| + | get name of new network card | ||
| + | bash | ||
| + | ifconfig -a | ||
| + | |||
| + | gives **enp4s5** for this network card, yours could be different | ||
| + | |||
| + | create file | ||
| + | / | ||
| + | |||
| + | with this content: | ||
| + | |||
| + | HWADDR=90: | ||
| + | TYPE=Ethernet | ||
| + | PROXY_METHOD=none | ||
| + | BROWSER_ONLY=no | ||
| + | BOOTPROTO=none | ||
| + | DEFROUTE=no | ||
| + | IPV4_FAILURE_FATAL=no | ||
| + | IPV6INIT=yes | ||
| + | IPV6_AUTOCONF=yes | ||
| + | IPV6_DEFROUTE=no | ||
| + | IPV6_FAILURE_FATAL=no | ||
| + | IPV6_ADDR_GEN_MODE=stable-privacy | ||
| + | NAME=" | ||
| + | UUID=8c87de7c-ab31-3faa-8480-3c9571cad2af | ||
| + | ONBOOT=yes | ||
| + | AUTOCONNECT_PRIORITY=-999 | ||
| + | IPADDR=192.168.0.1 | ||
| + | PREFIX=23 | ||
| + | GATEWAY=192.168.0.1 | ||
| + | |||
| + | (change the HWADDR, the NAME and the UUID to fit your network card) | ||
| + | |||
| + | restart the network service | ||
| + | |||
| + | sudo systemctl restart network.service | ||
| + | |||
| + | |||
| + | check the ip address change | ||
| + | |||
| + | ifconfig -a | ||
| + | |||
| + | the network card should now have the ip address 192.168.0.1 with the netmask 255.255.254.0 | ||
| + | |||
| + | install the dhcp daemon and wireshark | ||
| + | |||
| + | sudo yum install dhcpd wireshark | ||
| + | |||
| + | |||
| + | install the rarp daemon using the instructions from https:// | ||
| + | bash | ||
| + | # | ||
| + | sudo wget http:// | ||
| + | sudo yum install rarpd-ss981107-42.el6.x86_64.rpm | ||
| + | cat <<EOF > / | ||
| + | [Unit] | ||
| + | Description=Reverse Address Resolution Protocol Requests Server | ||
| + | Documentation=man.rarpd(8) | ||
| + | Requires=network.target | ||
| + | After=network.target | ||
| + | [Service] | ||
| + | Type=forking | ||
| + | User=root | ||
| + | # | ||
| + | ExecStart=/ | ||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | EOF | ||
| + | sudo cp / | ||
| + | |||
| + | restart daemons and rarpdaemon | ||
| + | |||
| + | sudo systemctl daemon-reload | ||
| + | sudo systemctl restart rarpd | ||
| - | #compile POS | + | this script already is stored at **~/internalhdd/install_scripts/install_rarpd.sh** |
| - | cd $BUILD_HOME/pixel | + | |
| - | make Set=pixel -j 8 | + | |
| - | make install | + | |
| - | cd $BUILD_HOME/pixel/PixelRun | + | |
| - | mkdir Logs Runs | + | |
| - | #this would give a compilation error. | ||
| - | Had to add: | ||
| - | #include < | ||
| - | to two header files: | + | copy the **/etc/hosts** and the **/etc/ethers** files from the old mtca PC |
| - | TriDAS_lea/pixel/PixelUtilities/PixelRootUtilities/include/ | + | |
| - | TriDAS_lea/ | + | |
| - | ############## | + | **/ |
| - | Repository configuration | + | |
| + | 127.0.0.1 | ||
| + | ::1 | ||
| + | 192.168.0.41 mch | ||
| + | 192.168.0.157 bpixamc13T1 | ||
| + | 192.168.0.156 bpixamc13T2 | ||
| + | 192.168.0.31 bpixtkfec | ||
| + | 192.168.0.32 bpixpxfec | ||
| + | 192.168.0.34 bpixfed1 | ||
| + | 192.168.0.35 bpixfed2 | ||
| + | 192.168.0.36 bpixfed3 | ||
| - | sudo cat > /etc/yum.repos.d/xdaq.repo << | + | only copy the lines starting with **192.168.0.** |
| - | [xdaq] | + | |
| - | name=XDAQ Software Core | + | |
| - | baseurl=http:// | + | |
| - | enabled=1 | + | |
| - | gpgcheck=0 | + | |
| - | [xdaq-worksuite] | + | **/ |
| - | name=XDAQ Software worksuite | + | |
| - | baseurl=http:// | + | # copied from old slc6 mtca PC |
| - | enabled=1 | + | # see man ethers for syntax |
| - | gpgcheck=0 | + | # ETHERS for BPIX CRATE |
| + | # ##################### | ||
| + | 08:00: | ||
| + | | ||
| + | | ||
| + | 08: | ||
| + | 08: | ||
| + | 08: | ||
| + | 08: | ||
| - | [xdaq-updates] | + | copy all lines |
| - | name=XDAQ Software xaas | + | |
| - | baseurl=http: | + | try to ping the devices in the **/etc/hosts** file |
| - | enabled=1 | + | |
| - | gpgcheck=0 | + | |
| - | EOF | + | ping mch |
| + | ping bpixamc13T1 | ||
| + | ping bpixamc13T2 | ||
| + | ping bpixtkfec | ||
| + | ping bpixpxfec | ||
| + | ping bpixfed1 | ||
| + | ping bpixfed2 | ||
| + | ping bpixfed3 | ||
| - | sudo cat > / | ||
| - | [cactus-amc13-base] | ||
| - | name=CACTUS Project Software Repository for amc13 packages | ||
| - | baseurl=http:// | ||
| - | enabled=1 | ||
| - | gpgcheck=0 | ||
| - | EOF | ||
| - | sudo cat > / | ||
| - | [ipbus-sw-base] | ||
| - | name=IPbus software repository | ||
| - | baseurl=http:// | ||
| - | enabled=1 | ||
| - | gpgcheck=0 | ||
| - | [ipbus-sw-updates] | ||
| - | name=IPbus software repository updates | ||
| - | baseurl=http:// | ||
| - | enabled=1 | ||
| - | gpgcheck=0 | ||
| - | EOF | ||