Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Ripristinato dalla versione 31

...

DISPLAY MANAGER

Rocky linux 8 comes with default wayland that disables xhost features.

To enable old behavior need to disable wayland (WaylandEnable=false) and enable xost by default:

Code Block
languagebash
gedit /etc/gdm/custom.conf ## add or uncomment : WaylandEnable=false
cd /home/dafne/.config/autostart

cat > 03_xhost.desktop
[Desktop Entry]
Type=Application
Exec=xhost +
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=Enable X Connections
Name=Enable X Connections
Comment[en_US]=
Comment=
^C


Firewall

Rocky linux enable firewalld, better to disable it.

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

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

Ansible installation


Requirement

ansible installed 

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)

Code Block
languagebash
uid=1001(dante) gid=1001(dante) groups=1001(dante),10001(dcs)
uid=1003(dafne) gid=1003(dafne) groups=1003(dafne),10001(dcs)
 

Mounts DCS

Just data and log directory must be mounted

Code Block
languagebash
192.168.192.248:/u2/data /u2/data nfs defaults,rw,soft,rsize=16384 0 0
192.168.192.248:/u2/dcs/db /u2/dcs/db nfs defaults,rw,soft,rsize=16384 0 0
192.168.192.248:/u2/dcs/logs /u2/dcs/logs nfs defaults,rw,soft,rsize=16384 0 0
192.168.192.248:/u2/dcs/prefs /u2/dcs/prefs nfs defaults,rw,soft,rsize=16384 0 0
192.168.192.248:/u2/dcs/script_linux /u2/dcs/script_linux nfs defaults,rw,soft,rsize=16384 0 0
192.168.192.248:/u2/dcs/spaceace /u2/dcs/space nfs defaults,rw,soft,rsize=16384 0 0 

...