Installing Ragnar, is, in it of itself a very simple task but there is some pre-setup you have to do before installing. First, you obviously need an operating system that supports xorg as a display server. Best would be a linux distribution. Second of all, Ragnar needs a few dependencies to be compiled. Those are:
Install those dependencies with the package manager of your distribution.
$sudo pacman -S xorg xorg-xinit make gcc git sudo make clean install
$sudo apt-get install xorg xorg-xinit make gcc git sudo make clean install
On other distributions, look up how to install packages to your system and install all of the given dependencies.
To install Ragnar to your system, there are multiple ways. There is a AUR package, an Arch & Ubuntu install script & the make command to install Ragnar.
Use this command to install using the Makefile:
$sudo make ragnar install
Thats basically it. This compiles ragnar with gcc and copies all of the important files to where they should be. ragnar & ragnarstart is copied to /usr/bin. ragnar.desktop is copied to /usr/share/applications.
If you are using a session manager/display manager, copy ragnar.desktop to /usr/share/xsessions
For Arch users, it is very easy to install ragnar as it is available on the AUR. Installing through the Arch package manager is as easy as:
$yay -S ragnarwm
Note that you can also use a different AUR helper like paru or pacman.
You can also use the installation script in the git repo if youre on Arch that automates the installation process. After installing Ragnar and inside the repo folder run:
$./install/arch_installation.sh
If youre on Ubuntu, the Ubuntu install script makes it a lot easier for you to install Ragnar. Inside the repo folder, run:
$./install/ubuntu_installation.sh