This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
nanocrate:nanocrate [2020/08/27 14:10] – mmissi | nanocrate:nanocrate [2020/09/24 08:44] (current) – mmissi | ||
---|---|---|---|
Line 17: | Line 17: | ||
- Connect the USB disk to a laptop with Internet access. \\ \\ | - Connect the USB disk to a laptop with Internet access. \\ \\ | ||
- Find the name of the device corresponding to the USB disk; in the following, this is assumed to be ''/ | - Find the name of the device corresponding to the USB disk; in the following, this is assumed to be ''/ | ||
- | - Download the CentOS7 boot image at \\ '' | + | - Download the CentOS7 boot image at \\ [32-bit] |
- | - Write the image to the USB disk with the following command \\ '' | + | - Write the image to the USB disk with the following command \\ \\ <code bash>sudo /bin/dd if=boot.iso of=/dev/sda bs=4M status=progress oflag=sync'' |
* Connect the USB disk to the computer on which CentOS7 should be installed, and restart the system booting from the USB disk. | * Connect the USB disk to the computer on which CentOS7 should be installed, and restart the system booting from the USB disk. | ||
Line 27: | Line 27: | ||
- Configure the system as required (timezone, keyboard layout, etc). \\ \\ | - Configure the system as required (timezone, keyboard layout, etc). \\ \\ | ||
- If necessary, enable explicitly the LAN, or WiFi, connection. \\ \\ | - If necessary, enable explicitly the LAN, or WiFi, connection. \\ \\ | ||
- | - Under " | + | - Under " |
- Select the software packages to be included in the installation (example: "GNOME Desktop", | - Select the software packages to be included in the installation (example: "GNOME Desktop", | ||
- If necessary, in " | - If necessary, in " | ||
Line 34: | Line 34: | ||
- Wait for the installation to finish, then reboot, as per instructions. \\ \\ | - Wait for the installation to finish, then reboot, as per instructions. \\ \\ | ||
- After rebooting, complete the installation procedure (authentication, | - After rebooting, complete the installation procedure (authentication, | ||
- | - Manually install any additional packages that may be needed, for example \\ '' | + | - Manually install any additional packages that may be needed, for example \\ \\ <code bash>sudo yum -y install git emacs</ |
- | **Optional**: | + | **Optional**: |
+ | <file bash CERNify_CentOS7.sh> | ||
+ | #!/bin/sh | ||
+ | # CERNify the centos7 installation | ||
+ | # Download the CentOS-CERN.repo to ~/Downloads | ||
+ | # Author: Lars Noehte | ||
+ | sudo cp ~/ | ||
+ | cd ~/Downloads | ||
+ | wget http:// | ||
+ | sudo / | ||
+ | / | ||
+ | echo -e " | ||
+ | sudo / | ||
+ | echo -e " | ||
+ | sudo / | ||
+ | echo -e " | ||
+ | sudo / | ||
+ | echo -e " | ||
+ | sudo / | ||
+ | </ | ||
- | === Configure FC7 === | + | <file bash CentOS-CERN.repo> |
- | https:// | + | # CentOS-CERN.repo |
- | * More information: | + | # |
+ | # CERN CentOS 7 uses local repositories at http://linuxsoft.cern.ch | ||
+ | # | ||
- | Configure connection to FC7 | + | [cern] |
+ | name=CentOS-$releasever - CERN | ||
+ | baseurl=http:// | ||
+ | gpgcheck=1 | ||
+ | enabled=1 | ||
+ | protect=1 | ||
+ | priority=5 | ||
+ | gpgkey=file:/// | ||
- | * follow the instructions in | + | [cern-testing] |
- | https://indico.cern.ch/event/842824/attachments/1920624/3177632/PreparingFC7.pdf (from the 3rd Tracker Upgrade DAQ school, link??) | + | name=CentOS-$releasever - CERN Testing |
+ | baseurl=http://linuxsoft.cern.ch/cern/centos/$releasever/cern-testing/$basearch/ | ||
+ | gpgcheck=1 | ||
+ | enabled=0 | ||
+ | protect=1 | ||
+ | priority=5 | ||
+ | gpgkey=file:/// | ||
- | | + | [cernonly] |
- | ``` | + | name=CentOS-$releasever - CERN Only |
- | sudo yum -y install wireshark | + | baseurl=http:// |
- | ``` | + | gpgcheck=1 |
+ | enabled=0 | ||
+ | protect=1 | ||
+ | priority=5 | ||
+ | gpgkey=file:/// | ||
- | | + | [cernonly-testing] |
- | ``` | + | name=CentOS-$releasever - CERN Only Testing |
- | #!/bin/bash | + | baseurl=http:// |
+ | gpgcheck=1 | ||
+ | enabled=0 | ||
+ | protect=1 | ||
+ | priority=5 | ||
+ | gpgkey=file: | ||
- | sudo wget http://download-ib01.fedoraproject.org/pub/epel/6/x86_64/Packages/r/rarpd-ss981107-42.el6.x86_64.rpm | + | [cern-debug] |
- | sudo yum install rarpd-ss981107-42.el6.x86_64.rpm | + | name=CentOS-7 - CERN - Debuginfo |
+ | baseurl=http://linuxsoft.cern.ch/cern/centos/$releasever/cern/Debug/$basearch/ | ||
+ | gpgcheck=1 | ||
+ | enabled=0 | ||
+ | protect=1 | ||
+ | priority=5 | ||
+ | gpgkey=file:/// | ||
- | cat <<EOF > /tmp/rarpd.service | + | [cernonly-debug] |
- | | + | name=CentOS-7 - CERN Only - Debuginfo |
- | | + | baseurl=http: |
- | | + | gpgcheck=1 |
- | | + | enabled=0 |
- | After=network.target | + | protect=1 |
+ | priority=5 | ||
+ | gpgkey=file:/// | ||
- | | + | [cern-source] |
- | Type=forking | + | name=CentOS-$releasever - CERN Sources |
- | | + | baseurl=http://linuxsoft.cern.ch/ |
- | # | + | gpgcheck=1 |
- | | + | enabled=0 |
+ | protect=1 | ||
+ | priority=5 | ||
+ | gpgkey=file: | ||
- | | + | [cernonly-source] |
- | | + | name=CentOS-$releasever - CERN Only Sources |
- | EOF | + | baseurl=http:// |
+ | gpgcheck=1 | ||
+ | enabled=0 | ||
+ | enabled=0 | ||
+ | protect=1 | ||
+ | priority=5 | ||
+ | gpgkey=file:/// | ||
- | sudo cp /tmp/rarpd.service | + | [cern-testing-source] |
+ | name=CentOS-$releasever - CERN Testing Sources | ||
+ | baseurl=http: | ||
+ | gpgcheck=1 | ||
+ | enabled=0 | ||
+ | protect=1 | ||
+ | priority=5 | ||
+ | gpgkey=file:// | ||
- | # restart daemons and rarpdaemon | + | [cernonly-testing-source] |
- | sudo systemctl daemon-reload | + | name=CentOS-$releasever - CERN Only Testing Sources |
- | sudo systemctl restart rarpd | + | baseurl=http:// |
- | ``` | + | gpgcheck=1 |
+ | enabled=0 | ||
+ | enabled=0 | ||
+ | protect=1 | ||
+ | priority=5 | ||
+ | gpgkey=file:/// | ||
+ | </ | ||
- | - clone the git repository for the main software application (Ph2_ACF), and check out the latest stable release (`IT-v3.9`, at the time of writing): | + | === Configuration |
- | ``` | + | |
- | git clone https:// | + | |
- | cd Ph2_ACF | + | |
- | git checkout -b b_IT_v3p9 IT-v3.9 | + | |
- | ``` | + | |
+ | General information and instructions on the FC7 setup and the related software can be found in the material of the [[https:// | ||
+ | * Follow the instructions in https:// | ||
+ | - install '' | ||
+ | - install '' | ||
+ | #!/bin/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 | ||
+ | </ | ||
+ | - clone the git repository for the main software application ('' | ||
+ | git clone https:// | ||
+ | cd Ph2_ACF | ||
+ | git checkout -b b_IT_v3p9p4 IT-v3.9.4 | ||
+ | </ | ||
+ | - Follow the instructions in '' | ||
+ | sudo yum -y install epel-release | ||
+ | sudo yum -y install pugixml-devel | ||
+ | sudo yum -y install boost-devel | ||
+ | sudo yum -y install root | ||
+ | sudo curl http:// | ||
+ | sudo yum clean all | ||
+ | sudo yum -y groupinstall uhal | ||
+ | sudo yum -y install cmake | ||
+ | </ | ||
+ | |||
+ | === Testing with Ph2_ACF === | ||
+ | |||
+ | This section is work-in-progress. For the moment, the reader is referred to the documentation in the '' |