Red Hat based

Contents

Red Hat based#

audience:administrators audience:developers

Warning

Do NOT use CentOS anymore. CentOS 7 has been end-of-life since 2024-06-30. This was the last supported version of CentOS.

Migrate to another distribution: RHEL, CentOS Stream, AlmaLinux, Rocky Linux

RPM packages for Red Hat based systems are built from the tango-spec repository using Copr. Copr can be used as a repository but only the latest build is kept forever. To install the packages directly from Copr, please refer to the tango-spec README.

RPM packages from Copr are also available in the MAX-IV’s repository.

Available RPM packages
tango-idl:

Tango CORBA IDL file

libtango9:

Tango C++ library

libtango9-devel:

Tango C++ library development files

tango-common:

shared infrastructure for Tango packages

tango-db:

the Tango database device server, with systemd integration

tango-admin:

provides tango_admin, a cli to the Tango database

tango-test:

the TangoTest device server

tango-starter:

the Tango Starter device server, with systemd integration

tango-java:

java based Tango applications (jive, astor…)

tango-accesscontrol:

the TangoAccessControl device server

Installation#

To install Tango on Red Hat, here are the steps you should follow:

  1. Add the EPEL repository:

    sudo dnf install -y epel-release
    
  2. Add the MAX-IV’s public repository by creating the following file:

    sudo nano /etc/yum.repos.d/maxiv.repo
    
    [maxiv-public]
    name=MAX IV public RPM Packages - $basearch
    baseurl=http://pubrepo.maxiv.lu.se/rpm/el$releasever/$basearch
    gpgcheck=0
    enabled=1
    
    sudo dnf makecache
    
  3. Install and start MariaDB:

    sudo dnf install -y mariadb-server mariadb
    sudo systemctl start mariadb
    sudo systemctl enable mariadb
    
  4. Run mysql_secure_installation script:

    sudo mysql_secure_installation
    
  5. Install the tango Databaseds

    sudo dnf install -y tango-db
    
  6. Create TANGO database:

    cd /usr/share/tango-db/
    sudo ./create_db.sh
    
  7. Set up TANGO environment:

    Note

    You should not use localhost as your TANGO_HOST. You can set the machine hostname using sudo hostnamectl set-hostname tangobox

    sudo nano /etc/tangorc
    

    For example:

    TANGO_HOST=tangobox:10000
    
  8. Set up environment variables:

    sudo nano /etc/profile.d/tango.sh
    

    For example:

    . /etc/tangorc
    export TANGO_HOST
    
  9. Start and enable TANGO database:

    sudo systemctl start tango-db
    sudo systemctl enable tango-db
    
  10. Install Starter and TangoTest:

    sudo dnf install -y tango-starter tango-test
    
  11. Start and enable Starter:

    sudo systemctl start tango-starter
    sudo systemctl enable tango-starter
    
  12. Install Java based tools:

    # Enabling powertools and javapackages-tools is required to install log4j12
    sudo dnf config-manager --set-enabled powertools
    sudo dnf module -y enable javapackages-tools
    sudo dnf install -y tango-java
    
    sudo dnf install -y tango-java
    

Note

pytango isn’t packaged anymore as RPM. Last version packaged was 9.4.2. Use pip in a virtualenv or conda to install a recent version.