How to Install Gladys Assistant on Arch Linux

Gladys Assistant is an open-source home automation assistant that runs on various platforms including Arch Linux. Here is a step-by-step tutorial on how to get Gladys Assistant up and running on your Arch Linux machine.

Step 1: Installing Dependencies

You will need to install the following dependencies first:

  1. Git
  2. Node.js and npm
  3. MariaDB or MySQL

To install these dependencies, run the following command:

sudo pacman -S git nodejs npm mariadb

Step 2: Creating a Database on MariaDB/MySQL

Before installing Gladys Assistant, you need to create a database on your MariaDB/MySQL server. You can create a new database using the following command:

sudo mysql -u root -p

This will open the MariaDB/MySQL prompt. Here, you can create a new database and user with the following commands:

CREATE DATABASE gladys;
GRANT ALL PRIVILEGES ON gladys.* TO 'gladysuser'@'localhost' IDENTIFIED BY 'gladyspassword';
FLUSH PRIVILEGES;

Remember to replace gladysuser and gladyspassword with the desired username and password.

Step 3: Cloning Gladys Assistant

To clone Gladys Assistant, you need to run the following command:

git clone https://github.com/GladysProject/Gladys gladys

Step 4: Installing Gladys Assistant

After cloning Gladys Assistant, move into the newly created directory and install the dependencies using the following commands:

cd gladys
npm install --production

Step 5: Configuring Gladys Assistant

Now you need to create a configuration file for Gladys Assistant. You can use the sample config file as a template by running the following command:

cp config/database.js.sample config/database.js

Then, open the config/database.js file and modify the settings to match your database credentials:

module.exports = {
  development: {
    username: 'gladysuser',
    password: 'gladyspassword',
    database: 'gladys',
    host: '127.0.0.1',
    dialect: 'mysql'
  }
};

Step 6: Starting Gladys Assistant

You can start Gladys Assistant using the following command:

NODE_ENV=production npm start

Step 7: Accessing Gladys Assistant

Gladys Assistant will run on port 8080 by default. To access Gladys Assistant, open your web browser and go to http://localhost:8080. From there, you can set up Gladys Assistant and start automating your home.

Congratulations, you have successfully installed Gladys Assistant on your Arch Linux machine!

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!