apt install glances
- Remove old initd startup config
rm /etc/init.d/glances
- Create new systemd config
touch /etc/systemd/system/glancesweb.service- Paste this in it:
[Unit]
Description=GlancesWeb
Requires=systemd-networkd.service
After=systemd-networkd.service
[Timer]
OnBootSec=10
[Service]
ExecStart=/usr/bin/glances -w
[Install]
WantedBy=multi-user.target
- Enable glancesweb.service on boot
systemctl enable glancesweb.service
apt install ufw
ufw default deny incomingufw default allow outgoingufw allow sshufw allow 61208/tcpufw enable