Installing Olaris on Manjaro

Olaris is a self-hosted music streaming server that allows you to listen to your music collection from anywhere with an internet connection. In this tutorial, we will walk you through the process of installing Olaris on Manjaro.

Requirements

Steps

Step 1: Install Git

First, we need to install Git if it is not already pre-installed on your system. To install Git, open the terminal and type the following command and press Enter.

sudo pacman -S git

Step 2: Download Olaris

Next, we need to download the Olaris source code from the GitLab repository. To do this, enter the following command in the terminal.

git clone https://gitlab.com/olaris/olaris-server.git

Step 3: Install Dependencies

Change the directory to the Olaris folder by entering the following command.

cd olaris-server

Now we need to install all the required dependencies. For that, enter the following commands in order to accomplish that.

sudo pacman -S nodejs npm postgresql ffmpeg
npm install

Step 4: Create a Database for Olaris

Olaris stores its data in a PostgreSQL database. To create a PostgreSQL database, we need to install it in our system. Run the following commands to install PostgreSQL:

sudo pacman -S postgresql
sudo systemctl enable --now postgresql.service
sudo systemctl start postgresql.service

Once PostgreSQL is installed, we need to create a new database user and grant permissions to it. Run the following command:

sudo -u postgres createuser olaris
sudo -u postgres psql
postgres=# ALTER USER olaris PASSWORD 'my_password';
postgres=# CREATE DATABASE olaris WITH OWNER olaris;
postgres=# \q

Make sure to replace 'my_password' with a secure password of your choice.

Step 5: Configure Olaris

Copy the example configuration file and create the actual configuration file.

cp config.example.json config.json

Edit the config.json file in a text editor such as nano or vim.

nano config.json

Replace the values of the following keys with your own:

In our case, the configuration will look like following:

{
    "port": 3000,
    "database": "olaris",
    "username": "olaris",
    "password": "my_password",
    "secret_key": "my_secret_key"
}

Step 6: Start Olaris

Finally, we can start the Olaris server by running the following command:

npm start

Once the server starts, you can access the Olaris web interface by going to http://localhost:3000/ in your browser.

Congratulations! You have successfully installed Olaris on your Manjaro system.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!