How to Install Scrutiny on Debian Latest
Scrutiny is a web application that helps you monitor and maintain your storage systems. It can be used to monitor your hard drives' health, SMART status, temperature, and more.
In this tutorial, you will learn how to install Scrutiny on Debian Latest.
Prerequisites
Before starting with the installation process, you must ensure that you have the following:
- A system running Debian Latest.
- Root access to the system.
Installing Scrutiny
Follow the steps outlined below to install Scrutiny on your Debian Latest system:
Ensure that your system is up-to-date by running the following command:
sudo apt update && sudo apt upgradeInstall the required packages by running the following command:
sudo apt install python3 python3-pip python3-dev python3-setuptools python3-wheel python3-cffi python3-systemd python3-lxml python3-sqlalchemy python3-psycopg2 python3-alembic python3-bcrypt python3-gunicorn nodejs npm postgresql libpq-devInstall Scrutiny by running the following command:
sudo pip3 install git+https://github.com/AnalogJ/scrutiny.gitClone the web UI repository by running the following command:
sudo git clone https://github.com/AnalogJ/scrutiny-webui.git /opt/scrutiny-webuiInstall the web UI dependencies by running the following commands:
cd /opt/scrutiny-webui sudo npm installCreate the following directories as necessary:
sudo mkdir -p /var/log/scrutiny /var/www/scrutiny/static sudo chown -R www-data:www-data /var/log/scrutiny /var/www/scrutinyCreate a new PostgreSQL database and user by running the following commands:
sudo -u postgres createuser --createdb scrutiny sudo -u postgres createdb --owner=scrutiny scrutinyCreate a new PostgreSQL configuration file
/etc/scrutiny/pg.confwith the following contents:# Replace <PASSWORD> with your own password [DATABASE] database_path=postgresql://scrutiny:<PASSWORD>@localhost/scrutinyCreate a new systemd service file
/etc/systemd/system/scrutiny.servicewith the following contents:[Unit] Description=Scrutiny Server [Service] User=www-data Group=www-data WorkingDirectory=/opt/scrutiny-webui ExecStart=/usr/local/bin/scrutiny start -c /etc/scrutiny/pg.conf Restart=always [Install] WantedBy=multi-user.targetEnable and start the systemd service by running the following commands:
sudo systemctl enable --now scrutiny
sudo systemctl restart nginx
That's it! You have successfully installed Scrutiny on your Debian Latest system. You can now access the web UI by visiting http://<SERVER_IP_ADDRESS>/.