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.
You will need to install the following dependencies first:
To install these dependencies, run the following command:
sudo pacman -S git nodejs npm mariadb
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.
To clone Gladys Assistant, you need to run the following command:
git clone https://github.com/GladysProject/Gladys gladys
After cloning Gladys Assistant, move into the newly created directory and install the dependencies using the following commands:
cd gladys
npm install --production
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'
}
};
You can start Gladys Assistant using the following command:
NODE_ENV=production npm start
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!