User Tools

Site Tools


nanocrate:nanocrate

This is an old revision of the document!


KIT nano crate

Assembly instructions

Installation of CentOS7

Note: at the time of writing, it does not seem to be possible to install CERN's CentOS7 (CC7) OS from an external drive (e.g. USB stick), because the ISO image in the official repository does not contain a boot partition. Due to this, these instructions apply to the standard CentOS7 OS.

The main steps to install CentOS7 from an external USB drive are summarized below.

  • Write the CentOS7 boot image to a USB disk.

    1. Find a working USB disk (if unsure, try to write a standard Ubuntu image on it, and verify if the USB disk boots correctly).

    2. Connect the USB disk to a laptop with Internet access.

    3. Find the name of the device corresponding to the USB disk; in the following, this is assumed to be /dev/sda.

    4. Download the CentOS7 boot image at
      http://mirror.centos.org/altarch/7.8.2003/os/i386/images/boot.iso (for 32-bit OSs)
      http://mirror.centos.org/centos-7/7/os/x86_64/images/boot.iso (for 64-bit OSs)
      In the following, the path to this file on your local machine is assumed to be boot.iso.

    5. Write the image to the USB disk with the following command
      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.
  • If the USB disk is not booted by default before the computer hard-drive, access the computer's boot settings at startup (usually, this can be done by pressing F12, or F9, before the boot sequence starts).
  • Follow the installation instructions.

    1. Configure the system as required (timezone, keyboard layout, etc).

    2. If necessary, enable explicitly the LAN, or WiFi, connection.

    3. Under “Installation Source”, input the http address (it is not necessary to write explicitly http:\/\/):
      [32-bit] mirror.centos.org/altarch/7.8.2003/os/i386
      [64-bit] mirror.centos.org/centos-7/7/os/x86_64
      and do not tick the box stating “This URL refers to a mirror list”.

    4. Select the software packages to be included in the installation (example: “GNOME Desktop”, “GNOME Applications”, “Compatibility Libraries”, and “System Administration Tools”).

    5. If necessary, in “Installation Selection”, select the target hard disk and reclaim the necessary disk space (requires selecting the hard disk, clicking on “Delete All”, and then “Reclaim Space”).

    6. Start the installation.

    7. Input the root password, and configure user accounts; tick the box “Make this user administrator” to give sudo rights to a given user (the user is added to the wheel group).

    8. Wait for the installation to finish, then reboot, as per instructions.

    9. After rebooting, complete the installation procedure (authentication, and change of host name), then log in.

    10. Manually install any additional packages that may be needed, for example
      sudo yum -y install git emacs

Optional: to apply CERN's updates on top of the standard CentOS7 OS, the script CERNify_CentOS7.sh (see attachments) can be used (last tested on Aug. 6, 2020; written by Lars Noethe). The only prerequisite to run it is the .repo file (see attachments) for the relevant CC7 packages to be added (this file can be obtained from the CERN Service Desk).

Configure FC7

https://indico.cern.ch/event/842824/attachments/1920624/3177632/PreparingFC7.pdf

Configure connection to FC7

* follow the instructions in

https://indico.cern.ch/event/842824/attachments/1920624/3177632/PreparingFC7.pdf (from the 3rd Tracker Upgrade DAQ school, link??)
  1. install wireshark:

```

  sudo yum -y install wireshark
  ```
  1. install rarpd (via direct download of its .rpm file):

```

  #!/bin/bash
  sudo wget http://download-ib01.fedoraproject.org/pub/epel/6/x86_64/Packages/r/rarpd-ss981107-42.el6.x86_64.rpm
  sudo yum install rarpd-ss981107-42.el6.x86_64.rpm
  cat <<EOF > /tmp/rarpd.service
  [Unit]
  Description=Reverse Address Resolution Protocol Requests Server
  Documentation=man.rarpd(8)
  Requires=network.target
  After=network.target
  [Service]
  Type=forking
  User=root
  #EnvironmentFile=/etc/sysconfig/rarpd
  ExecStart=/usr/sbin/rarpd -a -e -v
  [Install]
  WantedBy=multi-user.target
  EOF
  sudo cp /tmp/rarpd.service /etc/systemd/system
  # restart daemons and rarpdaemon
  sudo systemctl daemon-reload
  sudo systemctl restart rarpd
  ```
  1. 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):

```

  git clone https://gitlab.cern.ch/cmsinnertracker/Ph2_ACF.git -o cmsinnertracker
  cd Ph2_ACF
  git checkout -b b_IT_v3p9 IT-v3.9
  ```
nanocrate/nanocrate.1598530201.txt.gz · Last modified: 2020/08/27 14:10 by mmissi