Skip to content

Add Rocky Linux Install #286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/install/rockylinux/images/image1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/install/rockylinux/images/image9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
101 changes: 101 additions & 0 deletions docs/install/rockylinux/install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<!--
SPDX-FileCopyrightText: Copyright (C) 2025 Opal Health Informatics Group at the Research Institute of the McGill University Health Centre <[email protected]>

SPDX-License-Identifier: CC-BY-SA-4.0
-->

# Rocky Linux 9.x Install

This document will demonstrate our recommended installation for an opal server. A single docker server can be used for small groups and expanded later for larger requirements.

We have tested and standardized on Rocky Linux 9.4, which is the successor to CentOS 7 and as such is free to use in a commercial setting while mirroring the reliability and ease of use of RedHat Linux.

To retrieve a boot ISO/CD you can download it at [Download - Rocky Linux](https://rockylinux.org/download) this will show you the latest version which at the time of this document was 9.5, if you click on archived releases you can navigate a directory structure to get to the 9.4 version used in these instructions, or just click on this link [Rocky-9.4-x86_64-boot.iso](https://dl.rockylinux.org/vault/rocky/9.4/isos/x86_64/Rocky-9.4-x86_64-boot.iso).

Once you have booted from the ISO/CD you will see this screen, you can test the media or install it immediately.

![](images/image1.png)

Choose your language of preference, for English either Canada or the United States is fine.

![](images/image2.png)

There are 6 configurations that will need attention, 7 if you choose to change the time and date on the server.

![](images/image3.png)

Our default installation uses a 60G drive, with the understanding that it can be expanded for future requirement as it’s using the LVM. Select the “Custom” option then click Done to proceed.

![](images/image4.png)

It’s easier to allow the installation script to automatically setup the LVM then alter it for our needs.

![](images/image5.png)

After the installation script configures the initial LVM setup we’ll make modifications to redistribute the space. You can leave it as is but it will affect the hardening process as some filesystems need to have specific permissions that can’t be assigned if they aren’t created here.

![](images/image6.png)

By reducing the /home and / filesystems we free up storage space for the new filesystems we will create.

![](images/image7.png)

To create new filesystems, click the \+ button on the bottom left and a dialog box will open as follows. The same method will apply to each of the filesystems required.

![](images/image8.png)

Adjust the swap to 8GB, it’s not crucial but some swap should be available to avoid Out of Memory (OOM) errors if the system approaches it’s limits.

![](images/image9.png)![](images/image10.png)

Hit Accept Changes to apply the partitioning.

![](images/image11.png)

Choose a Minimal install, everything required for opal will be installed in the software document.

![](images/image12.png)

Choose a suitable name for the server then hit Apply then Done

![](images/image13.png)![](images/image14.png)

The CIS Red Hat Level 1 Server profile provides sufficient protection from threats without interfering with the general functionality of opal

![](images/image15.png)

Create a new user such as opalsupt user for the installation of opal, be careful to make a secure note of the password you enter

![](images/image16.png)

Once all sections have been configured you can “Begin Installation”

![](images/image17.png)![](images/image18.png)

After the installation is finished the Reboot System button will be available click it to restart the system.
Determine the IP of the new server and login as the new user you created (i.e opalsupt) using SSH, it will ask you to change the initial password, keep in mind the new password must be at least 14 characters in length and consist of 4 different groups, Capital Letters, Lowercase Letters, Symbols and Numbers.

Add your new user and passwords to a password manager of your choice for safekeeping.

![](images/image19.png)

The first thing you will want to do is update the Rocky Linux 9.x to the latest packages.

![](images/image20.png)![](images/image21.png)

Then reboot

Now you will want to login and create a secure SSH keypair, this will allow you to login without a password and only require one if you want to go into OS administration mode, SUDO.

![](images/image22.png)

The older method, RSA, has been replaced with ed25519 which is secure and fast, if you elect to use an RSA keypair then it’s best to use a 4096bit key.

As you can see in the screen capture I have copied the public key into the .ssh/authorized\_keys file. This will allow me to take the private key saved in /home/opalsupt/.ssh/id\_ed25519 and copy it to my personal linux machine in order to SSH to the server without using a password.

![](images/image23.png)

Here I used SCP to copy the file from the server to my local PC, in this case using WSL on Windows which provides me a bash command prompt.

Now the server is ready for software installation.

1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ nav:
- Generate Self Signed Certificates: development/guides/self_signed_certificates.md
- Install:
- Deploying the Opal Solution: install/index.md
- Installing a Rocky Linux Server: install/rockylinux/install.md
- Hospital Integration: install/integration.md

# Configuration
Expand Down
Loading