A Python-based interactive CLI tool for managing Mysterium Nodes on Linux (Debian/Ubuntu) systems. This script provides an easy-to-use menu-driven interface to handle installation, configuration, and monitoring of Mysterium Node services.
- Install Node: Choose between native APT installation or automatic script installation.
- Check Node Status: View the current status of the Mysterium Node service.
- Service Management: Start, stop, or restart the Mysterium Node service.
- Log Viewer: View live logs or save logs to a file.
- Configuration Viewer: Display active Mysterium Node configuration.
- Edit SERVICE_OPTS: Modify service options (e.g., WireGuard ports) with validation.
- Update Node: Update the node to the latest version.
- Install Development Version: Install snapshot/development versions from the dev repository.
- Color-Coded Output: Uses ANSI colors for better readability (green for success, red for errors).
- User Confirmation: Prompts for confirmation before executing critical actions.
- Operating System: Linux (Debian/Ubuntu). The script checks for Linux and warns if run on other platforms.
- Python Version: 3.6 or higher.
- Privileges: Must be run with sudo (or as administrator on Windows, though Windows is not fully supported).
- Dependencies: Standard Python libraries only (os, subprocess, sys, shutil, time, platform).
-
Clone or download the repository:
git clone https://github.com/dani12po/MYST.git cd MYST -
Ensure the script has execute permissions (optional, since it's run with python3):
chmod +x bot.py
Run the script with sudo privileges:
sudo python3 bot.py
- Install Node: Select installation method (Native APT or Automatic Script).
- Check Node Status: Displays the service status using
systemctl. - Start / Stop / Restart Node: Manage the service lifecycle.
- View Logs: Choose to view live logs or save to a file (
node.logs). - View Active Configuration: Shows current config via
myst config show. - Edit SERVICE_OPTS: Edit
/etc/default/mysterium-nodefile with validation (must end with 'wireguard'). - Update Node: Updates to the latest version via APT.
- Install Development/Snapshot Version: Installs from the dev PPA, allowing version selection.
- Exit: Quits the script.
- After installation, check the status to ensure the service is running.
- Use the log viewer to monitor activity.
- Edit SERVICE_OPTS if you need to change ports or other options.
- Restart the service after configuration changes.
- The script performs automatic checks and confirmations for safety.
- All commands requiring elevated privileges use
sudo. - On non-Linux systems, the script will warn but attempt to run (commands may fail).
- Logs saved to file are stored in the current directory as
node.logs.
- Permission Errors: Ensure you're running with
sudo. - Command Failures: Verify that Mysterium Node packages are available in your repositories.
- Platform Warnings: This tool is optimized for Linux; Windows support is limited.
Feel free to submit issues or pull requests on the GitHub repository.
This project is open-source. See the repository for license details.