Part of Datorkirurgen AB – IT experts across Sweden

Linux for defence and research: RHEL, AlmaLinux and the legacy of Scientific Linux at CERN. We develop and operate Python, C++ and databases across Sweden.

Why defence and research choose a particular kind of Linux

Armed forces, research laboratories and heavy industry have different requirements from an ordinary office. The systems must work for ten years or more, and in addition every change must be traceable. Therefore, most such environments are built on Red Hat Enterprise Linux or one of its free clones, above all AlmaLinux. In fact, the same source code and the same packages give predictable behaviour, whether the server is in a laboratory or in a factory.

The most important advantage is the certifications. RHEL has crypto modules validated according to FIPS 140-3 and versions certified according to Common Criteria. In addition, in March 2026 the US DISA published a security guide, a so-called STIG, for RHEL 10. AlmaLinux 9 also has its own STIG. For procurement within defence and critical infrastructure, such documents are often a requirement. In short, Linux for defence and research is as much a matter of demonstrable security as of technology.

Linux for defence and research: package list from a server with Oracle Linux 8 and the UEK kernel
Linux for defence and research: package list from a server with Oracle Linux 8 and the UEK kernel. Our own screenshot from one of our assignments in Oracle Cloud.

From Scientific Linux to AlmaLinux: the path of CERN

CERN, which runs the Large Hadron Collider particle accelerator, has run Linux on thousands of servers for decades. Together with the American laboratory Fermilab, it developed Scientific Linux, a free rebuild of RHEL for scientific computing. Later, CERN moved to CentOS 7, and in 2019 Fermilab announced that Scientific Linux would not receive a new version. After that, Red Hat changed the terms for CentOS, and the laboratories needed yet another new foundation.

In December 2022, CERN and Fermilab announced that they had chosen AlmaLinux. Today, CERN supports both AlmaLinux and RHEL in versions 8, 9 and 10, and the latest version has support until 2035. This clearly shows why the RHEL family dominates. In fact, programs that someone once compiled and validated must keep working for many years. At the same time, the laboratories need to be able to change supplier without rewriting their software.

The 2026 Nobel Prize: neutrinos, IceCube and Linux

The 2026 Nobel Prize in Physics went to Francis Halzen for his decisive contributions to the IceCube Neutrino Observatory and the discovery of high-energy neutrinos from space. The detector consists of a cubic kilometre of ice at the South Pole, and it generates large amounts of data every day. First, the measurement data is filtered on site, and after that it travels via satellite to the University of Wisconsin–Madison. There, a Linux cluster with thousands of processor cores and hundreds of graphics processors analyses it.

In addition, the software is a good example of how modern research works. The data processing framework is written in C++ with control files in Python, and the system that distributes the jobs across the world’s computing grid is also written in Python. The servers install and configure themselves automatically, since no engineer can travel to the South Pole on an ordinary Tuesday. It is exactly the same combination that we work with: Linux, Python, C++, databases and automation.

Linux for defence and research: Python libraries when updating a server in the RHEL family
Linux for defence and research: Python libraries when updating a server in the RHEL family. Our own screenshot from our operations.

Python and C++ in demanding environments

In research and industry, two languages often meet. C++ handles the heavy computation, while Python controls the flow, reads in data and presents results. Therefore, we build environments where both work together, for example with pybind11 or Cython. We install compilers from the GCC Toolset, so that you can use a newer compiler without touching the system’s own. In addition, we pin the versions of all libraries, since a result must be reproducible years later.

We adapt the deployment to the environment. On ordinary servers, we use RPM packages or containers with Podman. In closed networks without internet, we instead build our own package repositories, which we update via a controlled transfer. We also profile the code with tools such as perf and Valgrind, and after that we optimise the parts that take the most time. Feel free to read more about Python on Linux.

Installing Python tools with pip on a Linux server in the cloud
Installing Python tools with pip on a Linux server in the cloud. Our own screenshot. The host name is masked.

Database development for large amounts of data

Measurement data, logs and production data require databases that handle large volumes without slowing down. Therefore, we develop and optimise databases in PostgreSQL, MariaDB and Oracle Database. This covers table structure, indexes and partitioning, but also secure access. For example, for time series, partitioning per month can make the queries many times faster. We also write stored procedures and integrations in Python and C++.

Security follows the same requirements as for the rest of the system. The communication is encrypted, sign-in uses certificates or strong passwords, and you can log every query against sensitive tables. When the server runs in FIPS mode, we also check that the database and all clients use approved algorithms. Read more about PostgreSQL on Linux and MariaDB on Linux.

Packages for systemd and tuned profiles when updating a server in Oracle Cloud
Packages for systemd and tuned profiles when updating a server in Oracle Cloud. Linux Service, part of Datorkirurgen AB, helps businesses in Vasastan and Norrmalm with servers, scripts and databases.

Hardening according to STIG and FIPS

We harden servers according to the same guidelines that defence organisations use. With OpenSCAP and the STIG profile, we first scan the server and get a report of all deviations. After that, we fix them automatically with Ansible or already during the installation with Kickstart. We activate FIPS mode during the installation, since that is the most secure way. Finally, we run a new scan, and the result is a report that you can show to an auditor.

The hardening also covers disk encryption with LUKS, control of USB devices with USBGuard and logging with auditd. We always adapt the rules to your business, since a research server does not need exactly the same restrictions as a computer in a command and control system. Feel free to also read about hardening Linux and about AlmaLinux.

A workstation for heavy computation that Datorkirurgen AB has built and installed
A workstation for heavy computation that Datorkirurgen AB has built and installed. Our own photo from our workshop.

Contact Linux Service about Linux for defence and research

Linux Service is part of Datorkirurgen AB and has more than 30 years of experience of Linux, programming and databases. We provide support, deploy, develop and administer Python, C++ and databases on RHEL, AlmaLinux and Oracle Linux for businesses in defence, research and heavy industry across Sweden. Prices start from €1,300 per hour excluding VAT. CERN describes its choice of distribution at linux.web.cern.ch.

Therefore, contact us for a first conversation about your environment and your requirements. We work under confidentiality, and we adapt our way of working to your security routines. We work on site or remotely. Moreover, we can take responsibility for the whole chain, from installation to documentation and handover.

Frequently asked questions about Linux for defence and research

Questions about Linux for defence and research

Linux for defence and research: Python, C++ and databases

More about hardening and assignments

Website developed by Datorkirurgen AB · Privacy policy