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.
Before starting with the installation process, you must ensure that you have the following:
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 upgrade
Install 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-dev
Install Scrutiny by running the following command:
sudo pip3 install git+https://github.com/AnalogJ/scrutiny.git
Clone the web UI repository by running the following command:
sudo git clone https://github.com/AnalogJ/scrutiny-webui.git /opt/scrutiny-webui
Install the web UI dependencies by running the following commands:
cd /opt/scrutiny-webui
sudo npm install
Create 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/scrutiny
Create a new PostgreSQL database and user by running the following commands:
sudo -u postgres createuser --createdb scrutiny
sudo -u postgres createdb --owner=scrutiny scrutiny
Create a new PostgreSQL configuration file /etc/scrutiny/pg.conf
with the following contents:
# Replace <PASSWORD> with your own password
[DATABASE]
database_path=postgresql://scrutiny:<PASSWORD>@localhost/scrutiny
Create a new systemd service file /etc/systemd/system/scrutiny.service
with 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.target
Enable 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>/
.
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!