This guide provides detailed installation instructions for the NannyAI application across different platforms.
- Install Python 3.11 or newer from python.org
- Ensure Python is added to PATH during installation
- Install Git (optional, for cloning repository)
- Install Python and required system packages:
# Ubuntu/Debian
sudo apt-get update
sudo apt-get install python3.11 python3-pip python3-tk x11-apps python3-dev
# Fedora
sudo dnf install python3.11 python3-pip python3-tkinter xorg-x11-apps python3-devel
- Install Python 3.11 or newer:
- Using Homebrew:
brew install python@3.11
- Or download from python.org
- Using Homebrew:
- Install Xcode Command Line Tools:
xcode-select --install
-
Get the Source Code
Option 1 - Using Git:
git clone https://github.com/elabbarw/nannyai.git cd nannyai
Option 2 - Download ZIP:
- Download the repository as ZIP
- Extract to desired location
- Open terminal/command prompt in extracted directory
-
Install Python Dependencies
# Create and activate virtual environment (optional but recommended) python -m venv venv # Windows .\venv\Scripts\activate # Linux/macOS source venv/bin/activate # Install dependencies pip install -r requirements.txt
-
First Run
python main.py
On first run:
- Application creates necessary directories
- Initializes configuration
- Tests screenshot capability
- Opens main window
-
Enable Screen Capture:
- No additional setup needed
- Application uses PIL ImageGrab
-
Remote Monitoring:
- Install VNC viewer if needed
- Configure Windows Defender/antivirus exceptions
-
X11 Setup:
# Install X11 dependencies sudo apt-get install python3-xlib # Allow X11 connections xhost +local:
-
VNC Setup:
# Install VNC components sudo apt-get install vncviewer
-
Screen Recording Permission:
- System Preferences → Security & Privacy → Screen Recording
- Enable permission for Terminal/IDE
-
VNC Setup:
- Built-in VNC support
- No additional setup needed
-
Test Screenshot Capability:
- Start application
- Add local device
- Try capturing screenshot
- Check logs for errors
-
Test AI Analysis:
- Configure API keys
- Enable monitoring
- Verify analysis results in dashboard
-
Test Remote Monitoring (if needed):
- Configure VNC connection
- Verify connection status
- Test remote screenshot capture
-
Missing Dependencies:
# Reinstall requirements pip install --no-cache-dir -r requirements.txt
-
Permission Errors:
# Linux/macOS chmod +x main.py sudo chown -R $USER:$USER .
-
API Configuration:
- Verify API keys in settings
- Check API key environment variables
- Review application logs
-
GUI Issues:
# Linux: Install additional Tk sudo apt-get install python3-tk # macOS: Install Tk through brew brew install python-tk
The application creates the following directory structure:
data/
├── config.json # Application configuration
├── devices.json # Device settings
├── logs/ # Application logs
├── reports/ # Generated PDF reports
└── screenshots/ # Captured screenshots
└── history.json # Screenshot metadata
-
Backup Data:
- Copy
data
directory - Export configuration if needed
- Copy
-
Update Code:
git pull # If using Git
Or download and extract new version
-
Update Dependencies:
pip install -r requirements.txt --upgrade
For installation support:
- Check application logs in
data/logs/
- Review troubleshooting guide in README
- Submit issue with:
- Error messages
- System information
- Installation method used