Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies = [
"requests",
"python-telegram-bot",
"psutil",
"pywin32",
"pywin32", #comment this line to install on Linux
"pyautogui",
"opencv-python",
"wmi",
Expand All @@ -56,4 +56,4 @@ Repository = "https://github.com/Surajkumar5050/zyron-assistant.git"
Issues = "https://github.com/Surajkumar5050/zyron-assistant/issues"

[tool.hatch.build.targets.wheel]
packages = ["src/zyron"]
packages = ["src/zyron","src/zyron_linx"]
108 changes: 108 additions & 0 deletions src/zyron_linux/docs/LINUX_INSTALLATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
## ⚙️ Linux Installation Guide

This guide covers everything you need to get the **Zyron Linux Telegram Bot** running on your Linux machine.

> _note: Linux port for zyron is still in a very early stage_

---

### Prerequisites

| Requirement | Version | Download |
| ---------------- | ------- | ----------------------------------------------- |
| **Python** | 3.10+ | [python.org](https://www.python.org/downloads/) |
| **Ollama** | Latest | [ollama.com](https://ollama.com/) |
| **Telegram Bot** | Token | [@BotFather](https://t.me/BotFather) |

### Step 1:

Clone the repository.

```bash
git clone https://github.com/Surajkumar5050/zyron-assistant.git
cd zyron-assistant
```

### Step 2:

Set up your environment Variables:

1. make your .env file.

```bash
cp .env.example .env
```

2. Set up your .env

```env
TELEGRAM_TOKEN=your_bot_token_here
ALLOWED_TELEGRAM_USERNAME=your_telegram_username
MODEL_NAME=qwen2.5-coder:7b # Set to whichever model best works for you.
OFFLINE_MODE=false # Set to true for 100% offline privacy
LOG_LEVEL=INFO
```

### Step 3:

go to `./pyproject.toml`.

1. Comment out the `pywin32` dependency.

```toml
dependencies = [
"SpeechRecognition",
"pyttsx3",
"pyaudio",
"pillow",
"textblob",
"requests",
"python-telegram-bot",
"psutil",
# "pywin32", <- Should look like this
"pyautogui",
"opencv-python",
"wmi",]
```

2. [Optional] Comment out the `zyron:main` entry point.

```toml
[project.scripts]
# zyron = "zyron.main:main"
zyron-linux = "zyron_linux.main:main"
```

### Step 4:

Set up your venv.

```bash
python -m venv .venv
```

### Step 5:

pip install the current directory.

```bash
pip install .
```

for **development** use the `-e` flag.

```bash
pip install -e .
```

This should install all the dependencies required for the project to run.

### Step 6:

For now to run the telegram Agent simply run the `zyron_linux.agents.telegram` module.

```bash
python -m zyron_linux.agents.telegram
```

#### Note: Linux port for zyron is still in development stage, feel free to contribute or report any issues
2 changes: 1 addition & 1 deletion src/zyron_linux/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ def main():
except KeyboardInterrupt:
print("\n⚡ System shutting down.")
# Stop file tracking on shutdown
file_tracker.stop_tracking()
# file_tracker.stop_tracking()