Skip to content

Aegis Installer

Aegis is a terminal-based installer, developed, tailored and optimized specifically for Athena OS.

To provide more accessible resources to the users, Aegis provides a terminal interface to configure and install your systems according to your preferences.

Aegis will improve over time in order to detect automatically your hardware. It means that the installer is able to detect your environment (baremetal or virtualized), your CPU and your GPU. According to this information, all the needed drivers are automatically installed with no any actions by your side.

Aegis can be run by running aegis command and requires a working Internet connection.

Its purpose is to generate JSON system and drive configuration files containing all the user choices, set during the installation. The JSON configuration files will be saved as hidden temporary files /tmp directory. Configurations have the following structure:

{
"config": {
"base": "Athena Arch",
"design": "temple",
"desktop_environment": "gnome",
"display_manager": "cyberpunk",
"hostname": "athenaos",
"keyboard_layout": "us",
"language": null,
"locale": "en_US.UTF-8 UTF-8",
"root_passwd_hash": "*REDACTED*",
"timezone": "Europe/Rome",
"users": [
{
"groups": [
"wheel"
],
"password_hash": "*REDACTED*",
"shell": "fish",
"username": "athena"
}
]
}
}

The installation logs will be saved to /tmp/aegis.log and copied to the installed system to /var/log/aegis.log.

Open the terminal and run:

Terminal window
sudo aegis

Aegis

Choose your favourite base system Aegis Base

Select the timezone

System Timezone

Select the keyboard layout

Keymap

Select the locale

System Locale

Select Use a best-effort default partition layout or Configure partitions manually according to your need:

Aegis Partitioning

Use a best-effort default partition layout

Section titled “Use a best-effort default partition layout”

By clicking on this mode, you are asked to select among the available disks or devices.

Aegis Device List

Once you select one, you are asked for a swap device.

Aegis Swap

Next, you must choose the filesystem for your root partition where Athena OS will be installed.

Aegis Filesystem

Once confirmed, it will automatically propose a partitioning layout for you.

By clicking on this mode, you are asked to select among the available disks or devices.

Aegis Device List

Once you select one, you get the list of the current partition of the disk.

Aegis Partition List

Only for EFI partitions: if you are in dual boot with a Windows and/or Linux that use an existing EFI partition, it is not necessary to create a new one.

You can mainly create a partition by an available free space or by deleting a specific partition and use the derived free space, or by replacing an existing partition.

Create from free space

In case you need to create a new EFI or GRUB Legacy partition, and no free space is already available, select an existing partition to be deleted, and select Delete Partition. It will create a new free entry and press “Enter”.

It will ask for size. Type 512MiB.

As filesystem, select fat32 and as mount point, type /boot/efi.

Finally, don’t select Encryption (LUKS) and press on Continue.

Create by replacing an existing partition

From the partition list, select an existing partition you want to replace and use all its space for your boot partition. Note that the partition must be 512MiB, don’t waste further space by replacing bigger partitions.

Select the interested partition.

Aegis Partition Mark

Press on Mark For Modification entry.

Aegis Partition Mark

Enter on Set Mount Point and type /boot/efi. Successively, check on Mark as bootable partition and Mark as ESP partition flags. In this manner the installer will be aware you are creating an EFI boot partition.

Click on Change Filesystem and select fat32.

Finally, select Back.

If you are in a UEFI system, and you are going to encrypt the root partition, first you need to create an additional partition of “1024MiB” to store GRUB configuration file.

Create from free space

In case no free space is already available, select an existing partition to be deleted or more contiguous of them, and select Delete Partition. It will create a new free entry and press “Enter”.

It will ask for size. Type any value you wish. If you need to use all the space, you can insert 100%.

As filesystem, select any value you wish.

As mount point, type /. Finally, evaluate if encrypt the root partition by checking on Encryption (LUKS) or not. At the end, press on Continue.

Create by replacing an existing partition

From the partition list, select an existing partition you want to replace and use all its space for your root partition.

Select the interested partition.

Aegis Partition Mark

Press on Mark For Modification entry.

Aegis Partition Mark

Enter on Set Mount Point and type /. If you want to encrypt the root partition, check on Encryption (LUKS) flag.

Click on Change Filesystem and select any value you wish.

Finally, select Back.

Creating a partition would be useful only on low-memory systems (less than 4GB of RAM).

If you want to create a Swap Partition, you can follow one of the two approaches used for root partition above, but as filesystem select swap.

Once all partitions have been configured, just press on Confirm and Exit.

Set the hostname

System Hostname

Set the password for root account

User Password

Set your user account Users

By pressing on Add a new user you can setup your account.

Users

Then, you can assign Linux groups to the account.

Users

Select your favourite environment System Desktop

The display manager will be SDDM. Select your favourite theme for login.

Display Manager

Select your favourite design

System Theme

Press on Done and review your JSON configuration.

Install Configuration

Finally, if you are ready to install, proceed on Begin Installation.

Install System

During the installation, installation logs are saved in /tmp/aegis.log.

If the installation fails, you can generate a link with install logs that can be used for troubleshooting.

Install Fails Install Logs

Communicate the link to Athena OS Team for getting support.

If no errors have been raised during the installation phase, you are ready to use Athena OS!

Before rebooting, if you installed Athena OS in dual boot with Windows, as explained in the related section, and you used the boot partition intended for Windows, restore Microsoft bootloader inside the boot partition (i.e., /dev/nvme0n1p1):

Terminal window
sudo mount /dev/nvme0n1p1 /mnt
sudo cp -rf ~/Microsoft /mnt/EFI/
sudo umount /mnt

Once you reboot, and you land on the installed system, open the terminal and run:

Terminal window
sudo os-prober
sudo grub-mkconfig -o /boot/grub/grub.cfg

In this manner, Windows entry should be added in GRUB.

For Athena Nix installation, once reboot and land on the installed system, initialize Nix Channels by opening the terminal and running:

Terminal window
sudo nix-channel --update