Gladys is an open-source home automation platform that runs on a Raspberry Pi or a computer with Linux installed. In this tutorial, we will guide you through the installation process of Gladys on MXLinux Latest.
Before starting, it is recommended to update your system to the latest version. To do this, open the terminal and type the following command:
sudo apt update && sudo apt upgrade
Gladys requires Node.js runtime environment to run. To install Node.js, open the terminal and run the following command:
sudo apt install nodejs npm
Gladys stores all its data in a PostgreSQL database. To install PostgreSQL, open the terminal and run the following command:
sudo apt install postgresql postgresql-contrib
Next, we need to create a new PostgreSQL user and database for Gladys. To do this, run the following commands in the terminal:
sudo -u postgres psql
This will open the PostgreSQL command shell. Then, run the following command to create a new user:
CREATE USER gladys WITH PASSWORD 'password';
Replace password
with a secure password of your choice.
Next, run the following command to create a new database for Gladys:
CREATE DATABASE gladys OWNER gladys;
Finally, exit from the PostgreSQL shell by running the following command:
\q
First, we need to clone the Gladys repository from Github. To do this, open the terminal and run the following command:
git clone https://github.com/GladysProject/gladys.git
Once the repository is cloned, navigate to the Gladys directory and install the required dependencies by running the following commands:
cd gladys/
npm install --production
Next, we need to configure Gladys by creating a .env
file. To create the file, run the following command:
cp .env.sample .env
Then, open the .env
file using your favorite text editor and update the following variables:
NODE_ENV=production
GLADYS_SQL_DATABASE=gladys
GLADYS_SQL_USERNAME=gladys
GLADYS_SQL_PASSWORD=password
Replace password
with the password you set earlier for the gladys
PostgreSQL user.
Once the configuration is done, start Gladys by running the following command:
npm start
If all goes well, Gladys will start running.
Finally, you can access Gladys by navigating to http://localhost:8080
in your web browser. If you want to access Gladys from another computer on your network, replace localhost
with the IP address of your MXLinux computer.
In this tutorial, we have shown you how to install Gladys on MXLinux Latest. With Gladys running, you can now automate your home and control various devices. Enjoy!
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!