Skip to content

Commit 711a4f2

Browse files
committed
2 parents 630523b + 518ff55 commit 711a4f2

File tree

5 files changed

+42
-8
lines changed

5 files changed

+42
-8
lines changed

README.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ YODA is a voice-activated **Intrusion Detection System** designed for real-time
2525
1. **Clone and navigate**
2626
```bash
2727
git clone https://github.com/nsm-barii/yoda.git
28-
cd yoda/nsm_modules
28+
cd Yoda
2929
```
3030

3131
2. **Setup virtual environment**
@@ -36,24 +36,37 @@ YODA is a voice-activated **Intrusion Detection System** designed for real-time
3636

3737
3. **Install dependencies**
3838
```bash
39-
pip install -r ../requirements.txt
39+
pip install -e .
4040
```
4141

42-
4. **Install mpg123 (required for voice commands)**
42+
4. **Install mpv (required for voice commands)**
4343
```bash
4444
# Debian/Ubuntu
45-
sudo apt install mpg123
45+
sudo apt install mpv
4646

4747
# Arch
48-
sudo pacman -S mpg123
48+
sudo pacman -S mpv
4949
```
5050

51-
5. **Run YODA**
51+
5. **Install YODA Audio System**
5252
```bash
53-
sudo venv/bin/python nsm_main.py
53+
bash install_yoda_audio.sh
5454
```
5555

56-
6. **Access the dashboard**
56+
6. **Download voice recognition model**
57+
```bash
58+
cd yoda_modules
59+
wget https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip
60+
unzip vosk-model-small-en-us-0.15.zip -d models/
61+
cd ..
62+
```
63+
64+
7. **Run YODA**
65+
```bash
66+
sudo ./yoda
67+
```
68+
69+
8. **Access the dashboard**
5770
- The program will prompt you for:
5871
- **Interface** (e.g., `eth0`, `wlan0`)
5972
- **Subnet** (e.g., `192.168.1.0/24`)

yoda

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
# Get the directory where this script is located
4+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5+
6+
# Check if venv exists
7+
if [[ ! -f "$SCRIPT_DIR/venv/bin/python" ]]; then
8+
echo "[ERROR] Virtual environment not found!"
9+
echo "Run: python3 -m venv venv && source venv/bin/activate && pip install -e ."
10+
exit 1
11+
fi
12+
13+
# Check if running as root
14+
if [[ $EUID -ne 0 ]]; then
15+
echo "[ERROR] This script must be run with sudo"
16+
echo "Run: sudo ./yoda"
17+
exit 1
18+
fi
19+
20+
# Run YODA with venv Python
21+
"$SCRIPT_DIR/venv/bin/python" "$SCRIPT_DIR/nsm_modules/nsm_main.py" "$@"
File renamed without changes.

0 commit comments

Comments
 (0)