Procedures
Install the DIRAC server software
Proceed as follows:
1. Login as ‘root’ user on the Linux server machine.
2. Open a terminal.
3. Identify the folder where the DIRAC server software installer has been made available.
4. Start the DIRAC server software installation:
• Mount the installation medium containing the DIRAC server software RPM (nem-dirac-keymgr-18.0.0-n.el8-x86_64.rpm) as local repository (as described in the FOXMAN-UN installation manual), go to the NEM_ADDON folder, then enter
./install_dirac.sh
5. Wait until the installation process is successfully concluded.
6. At the end of installation procedure, NEM administrators will be automatically added to dirac group and offered to log out and log back in for the change to take effect. In case such user chooses not to do so right away, they still must log out and log back in before attempting to start DIRAC, i.e., before running 'nemstart'.
Result: The DIRAC server software is installed. The user ‘dirac’ is created.
Please note:
The SSH remote access to the server for user ‘dirac’ is restricted.
End of instruction
Define a password for the user ‘dirac’
Proceed as follows:
1. On the machine where the DIRAC server software is installed open a terminal
2. Log in as user ‘root’ and set the password:
passwd dirac
Changing password for user dirac.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
→ The password for the user ‘dirac’ is defined.
End of instruction
Install the Quantis USB device
Please note:
The Quantis USB device installation is a mandatory step in the DIRAC server installation, provided you have chosen to use this device as random number generator. The DIRAC server will not be fully operable without such a device. If this device is not installed, a Linux built-in software random number generator will be used.
Proceed as follows:
1. Login as ‘root’ user on the Linux server machine.
2. Check the availability of USB 2.0 on the Linux server machine:
• Open a terminal.
• List USB devices by entering the following command:
lsusb
• Verify that at least one device with USB version 2.0 (or later) is available, e.g.:
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
3. Install the library ‘libusb’ if not yet installed.
• Install the package via
yum install libusb
4. Extract the Quantis libraries QuantisRNG-2.x.y-Linux-amd64.tar.bz2, provided with the Quantis device, to /usr/lib64:
sudo tar --strip-components=2 -C /usr/lib64 -xjvf QuantisRNG-2.x.y-Linux-amd64.tar.bz2 QuantisRNG-2.x.y-Linux-amd64/lib64
Instead of 2.x.y use the real version available.
Example:
sudo tar --strip-components=2 -C /usr/lib64 -xjvf QuantisRNG-2.12.0-Linux-amd64.tar.bz2 QuantisRNG-2.12.0-Linux-amd64/lib64
5. Manually create the file /etc/udev/rules.d/idq-quantis-rhel.rules with the following content, making sure to save the file after creation:
#Quantis USB
SUBSYSTEM=="usb", ATTR{idVendor}=="0aba", ATTR{idProduct}=="0102", OWNER="dirac", GROUP="dirac", MODE="0660"
6. Reload the udev daemon with the updated rules:
udevadm control --reload-rules
7. As user ‘dirac’ verify that you belong to the group ‘dirac’ by entering the groups command and checking the output:
groups
dirac
In any case we recommend to reboot your machine now.
8. Identify the USB port supporting USB 2.0 (or later).
9. Plug in the Quantis USB device to the USB 2.0 (or later) port.
10. Identify and check the Quantis USB device:
lsusb -d 0aba:0102 -v
[...]
iManufacturer 1 id Quantique
iProduct 2 Quantis USB
[...]
Result: The Quantis USB device is installed.
End of instruction