-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·37 lines (29 loc) · 922 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·37 lines (29 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Divoom Linux Monitor Tool Setup Script
echo "=== Divoom Linux Monitor Tool Setup ==="
echo "This script will install required dependencies"
# Check if running as root
if [ "$EUID" -ne 0 ]; then
echo "Please run as root (sudo ./setup.sh)"
exit 1
fi
# Install required packages
echo "Installing required packages..."
apt-get update
apt-get install -y python3 python3-pip lm-sensors hddtemp smartmontools nvme-cli
# Configure sensors
echo "Configuring hardware sensors..."
sensors-detect --auto
service kmod start
# Install Python dependencies
echo "Installing Python packages..."
pip3 install requests
# Make scripts executable
chmod +x run.sh
chmod +x src/divoom_monitor.py
echo "Setup complete! To run the application:"
echo " ./run.sh : Regular mode"
echo " ./run.sh --debug: Debug mode"
echo " ./run.sh --restart: Auto-restart mode"
echo ""
echo "See README.md for more information"