-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
Β·39 lines (32 loc) Β· 998 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
Β·39 lines (32 loc) Β· 998 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
38
39
#!/bin/bash
echo "π Setting up System Overview Monitor..."
# Check if Python 3 is installed
if ! command -v python3 &> /dev/null; then
echo "β Python 3 is required but not installed. Please install Python 3.7+"
exit 1
fi
# Create virtual environment if it doesn't exist
if [ ! -d "venv" ]; then
echo "π§ Creating virtual environment..."
python3 -m venv venv
fi
# Activate virtual environment
echo "β‘ Activating virtual environment..."
source venv/bin/activate
# Install pip packages
echo "π¦ Installing Python dependencies..."
pip install -r requirements.txt
# Make the script executable
chmod +x sysmon.py
echo "β
Setup complete!"
echo ""
echo "π― To run the system monitor:"
echo " First activate the virtual environment:"
echo " source venv/bin/activate"
echo " Then run:"
echo " ./sysmon.py"
echo " or"
echo " python3 sysmon.py"
echo ""
echo "π‘ Press Ctrl+C to exit when running"
echo "π Run 'deactivate' to exit the virtual environment"