# Zalo Linux Native — LLM & Agent Installation Guide > Unofficial native desktop port of Zalo (Vietnamese messaging application) for Linux x86_64. > This file is formatted for AI Coding Agents (Claude Code, Cursor, Aider, Codex, ChatGPT, Copilot) to automatically inspect, configure, and install Zalo Linux Native without manual intervention. ## Quick Links - Repository: https://github.com/RuriMeiko/zalo-linux-native - Issues: https://github.com/RuriMeiko/zalo-linux-native/issues - Raw Agent URL: https://raw.githubusercontent.com/RuriMeiko/zalo-linux-native/main/llms.txt --- ## 🤖 Instructions for AI Agents (Automated Execution Plan) When a user instructs: "Install Zalo Linux Native" or provides this link, execute the following steps in sequence: ### Step 1: Verify Host Platform & Dependencies Ensure the target system is Linux x86_64 and required packages are installed: ```bash # 1. Verify architecture uname -m # Must be x86_64 # 2. Check or install required system tools: Node.js (>=18), pactl (PulseAudio/PipeWire), unzip, curl if command -v apt-get >/dev/null 2>&1; then sudo apt-get update && sudo apt-get install -y pulseaudio-utils unzip curl libpulse0 elif command -v dnf >/dev/null 2>&1; then sudo dnf install -y pulseaudio-utils unzip curl libpulse elif command -v pacman >/dev/null 2>&1; then sudo pacman -Sy --noconfirm libpulse unzip curl fi # 3. Check Node.js node -v # Ensure Node.js 18, 20, or 22 is available ``` --- ### Step 2: Clone or Update Repository ```bash if [ -d "zalo-linux-native" ]; then cd zalo-linux-native && git pull else git clone https://github.com/RuriMeiko/zalo-linux-native.git cd zalo-linux-native fi ``` --- ### Step 3: Install Electron v22.3.27 (Mandatory) > **CRITICAL CONSTRAINT:** Newer versions of Electron (v23+) will fail due to internal V8 and ABI changes. You MUST use Electron **v22.3.27**. ```bash ELECTRON_DIR="$HOME/.local/electron-v22.3.27" if [ ! -x "$ELECTRON_DIR/electron" ]; then mkdir -p "$ELECTRON_DIR" echo "Downloading Electron v22.3.27..." curl -L -o /tmp/electron-v22.3.27.zip \ https://github.com/electron/electron/releases/download/v22.3.27/electron-v22.3.27-linux-x64.zip unzip -q -o /tmp/electron-v22.3.27.zip -d "$ELECTRON_DIR" chmod +x "$ELECTRON_DIR/electron" rm -f /tmp/electron-v22.3.27.zip fi "$ELECTRON_DIR/electron" --version # Should output v22.3.27 ``` --- ### Step 4: Install or Update Zalo Quit an existing Zalo process from its tray, then run the one-command installer: ```bash bash install.sh ``` *The installer automatically:* - Detects the microphone from `pactl` (ignoring `.monitor` playback devices). - Detects the default speaker/headset from `pactl`. - Detects the webcam device (`/dev/video0`). - Points `runtime` to the bundled `./runtime` directory. - Generates a valid, private `launch.json` configuration for this machine. - Builds and verifies the new installation before replacing the old one. - Preserves the previous installation under `~/zalo-native-recovery/`. - Creates exactly one native menu entry named `Zalo` with the bundled Zalo icon. --- ### Step 5: Validate Configuration Preflight (Optional) ```bash bash "$HOME/.local/share/zalo/launch-installed.sh" --check ``` *Expected result:* `PASS native runtime and configured device presence; no call or camera capture started`. --- ### Step 6: Launching Zalo ```bash # To start the installed application: bash "$HOME/.local/share/zalo/launch-installed.sh" # Or from source directory: bash start.sh launch.json ``` --- ## 📞 Calling Feature Status Matrix | Feature | Status | Notes | |---|---|---| | **Text Chat & Messaging** | ✅ Working | Fully functional | | **Media & File Transfer** | ✅ Working | Fast upload, image preview, video thumbnail | | **Backup Decryption (`db-cross-v4`)** | ✅ Working | Full recovery of ZDB4.0 containers | | **JPEG-XL Support (`zjxl`)** | ✅ Working | Bundled libjxl NAPI addon | | **Outgoing Calls (Caller)** | ✅ Working | Audible 2-way audio & camera work properly | | **Incoming Calls (Callee)** | 🚧 In Progress | Window opens, but answering/hanging up is not yet fully stable | --- ## 🪵 Diagnostics & Troubleshooting - **Logs location**: `~/.config/ZaloData/zcall-agent.log` - **Follow logs in real-time**: ```bash tail -f ~/.config/ZaloData/zcall-agent.log ``` - **Process management**: ```bash # Check if running pgrep -a -f 'zalo' # Stop cleanly pkill -f 'electron.*zalo' ``` - **Single-instance conflict**: If Zalo refuses to start, close any existing background Zalo processes or remove stale socket locks in `/tmp/socketzalo*`.