Versions Compared

Key

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

...

Code Block
languagebash
# systemctl stop firewalld
# systemctl disable firewalld
# sudo nano /etc/sysconfig/selinux #set SELINUX=disabled

...


Ansible installation of a NUC console ubuntu 22.04 lts

Packages

Labview package:https://baltig.infn.it/lnf-da-control/dcs-control-console/-/blob/main/ni-labview-2023-pro_23.1.0.49229-0+f77-ubuntu2004_all.deb

Install a console with dafne and dante users, labview 23, with /u2/data and /u2/space NFS mounts.

Ansible installation


Requirement

ansible installed Packet List:

## CHROME sudo apt update \ && apt install -y gpg-agent \ && curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \ && (dpkg -i ./google-chrome-stable_current_amd64.deb || apt-get install -fy) \ && curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add \ && rm google-chrome-stable_current_amd64.deb sudo apt-get update apt-get install -y python3-pip python3-dev build-essential git telnet x11-apps ssh desktop-file-utils \ && pip3 install setuptools wheel && pip3 install -r /tmp/requirements.txt \ && ln -s /usr/bin/python3 /usr/local/bin/python ## LABVIEW ## download package ni-labview-2023-pro_23.1.0.49229-0+f77-ubuntu2004_all.deb this will update packages ... and update must be done sudo apt install -y .
Code Block
languagebash
titleMAC install ansible
brew install ansible
 

ansible roles:

The new target machine must be added to hosts.yml

Code Block
languagebash
titleAnsible resources to configure dafne control room consoles
git clone https://baltig.infn.it/lnf-da-control/dafne-cr-ansible.git -b ubuntu-console

ansible -i hosts.yml configure-experimental-consoles.yml


Requirement Target Machine

It requires a base ubuntu 22.04 LTS with sshd and root enabled ssh.

  • Assure that target has PermitRootLogin yes into /etc/ssh/sshd_config

  • run ssh-copy-id root@<hostnames> to make root access available to ansible

Requirement on DCS NFS Machine

The target machine must be added in /etc/exports 

Ansible installation


Labview package:https://baltig.infn.it/lnf-da-control/dcs-control-console/-/blob/main/ni-labview-2023-pro_23.1.0.49229-0+f77-ubuntu2004_all.deb

...


Packages

User & Groups for DCS

Two users dante  (first user to be created) and dafne. Create a group dcs (10001)

...