[Release] Command Center – Run Telnet/Shell Commands on Enigma2
Command Center is a plugin for Enigma2-based receivers that allows you to execute system commands directly from your remote control. Commands are organized into categories, and you can see the live output on screen – no need for a PC or SSH terminal.
Features
- Predefined commands grouped by category (System Info, Process Management, Network, Package Management, Filesystem, Compression, Media, Enigma2 Specific, Screenshot, Utilities).
- Execute any command with a single button press.
- Live output monitor – view command output as it runs.
- Scrollable output area – review long results.
- Save output to /tmp/ for later analysis.
- Optional auto-scroll follows new output.
- Easy to extend – add your own commands by editing the COMMANDS dictionary.
Installation
- Copy the plugin folder to:
/usr/lib/enigma2/python/Plugins/Extensions/CommandCenter - Set permissions (if needed):
chmod 755 /usr/lib/enigma2/python/Plugins/Extensions/CommandCenter/plugin.py - Restart Enigma2 (GUI restart).
Usage
- Launch the plugin from the Extensions or Plugin menu.
- Choose a category (e.g., System Info, Network).
- Select a command – the status bar shows the command description.
- Press the green button (Run) to execute.
- Watch live output in the right panel.
- Use yellow (Clear) to erase output, blue (Save) to save to /tmp/, or the info button to see the command description.
- Red button (Back) returns to category list or exits.
How to Add Your Own Commands
Edit the COMMANDS dictionary inside plugin.py. Each category is a key; the value is a list of tuples (command, description).
Example:
text
"My Custom Category": [ ("echo Hello World", "Prints Hello World"), ("ls -la /tmp", "List content of /tmp")
]
Credits
- Plugin development and adaptation by Lululla.
- Thanks to the Enigma2 community.
License
GNU General Public License v3.0
Download
GitHub Repository – Command Center
Compatibility
Works on all Enigma2-based receivers (OpenPLi, OpenATV, OpenVision, Pure2, etc.).
Screenshots
(Add your screenshots here)
Support
For issues or feature requests, please open an issue on GitHub.
Or in this topic too.
Enjoy using Command Center!
![]()
-
Version 1.2
- Lululla
- 46.23 kB
- 56 Downloads
Code
Display More## ✨ Features (v1.2) ### Core Features - 📂 **Categorized commands** – quickly find what you need. - ▶️ **Execute any command** with the press of a button. - 🖥️ **Live output monitor** – see command output as it runs. - 📜 **Full scrollable output** – use **UP/DOWN** for line‑by‑line scrolling, **CH+/CH–** for page scrolling (in CommandScreen). In LogViewer, use **UP/DOWN** for lines, **LEFT/RIGHT** or **CH+/CH–** for pages. - 💾 **Save output** to `/tmp/` for later analysis. - 🔄 **Auto‑scroll** (optional) – automatically follows new output. - 🎨 **Color‑coded buttons** – intuitive navigation. - 📋 **Command descriptions** – understand what each command does. ### Advanced Features (New in v1.2) - 🐞 **Debug Mode Screen** – dedicated environment for dangerous / debugging commands that may restart or crash Enigma2. - Predefined debug commands (full debug restart, stop Enigma2, journal logs, screenshot, etc.). - Commands run in background, output saved to persistent logs (`/home/root/logs/debug_*.log`). - Browse, view, and delete logs directly from the plugin. - Works for OE‑Alliance (init 4 / killall / ENIGMA_DEBUG_LVL) and DreamBox (journalctl). - 📄 **Advanced Log Viewer** – inspired by CrashlogViewer. - Shows full log content in a scrollable window. - Switch between **Full Log** and **Error Only** view (with GREEN button). - Scroll line by line (UP/DOWN) or page by page (CH+/CH– or LEFT/RIGHT). - ⚙️ **Fully external command list** – commands are stored in `/etc/enigma2/commandcenter_commands.json`. Edit with any text editor – no plugin code changes needed. - 🛡️ **Automatic backups** – every time you save custom commands or settings, a timestamped backup (`.bak`) is created. Your data is safe. - 🔘 **Manager screen** – easily add custom commands, edit existing ones, or disable predefined commands (toggle with INFO button). - ℹ️ **INFO button works everywhere** – shows version, command details, or toggles disable state. - 📱 **Optimized for all screen sizes** – includes dedicated skins for HD (1280×720), Full HD (1920×1080) and WQHD (2560×1440). Automatically selected based on your screen resolution. - 🌍 **Fully translatable** – uses Enigma2’s locale system (Italian and German included).Usage
Main Category Screen
- UP / DOWN – navigate through categories.
- OK – open the selected category.
- BLUE – open the Manager screen (see below).
- INFO – show plugin version and info.
- MENU – open the Debug Mode screen (new in v1.2).
Command Screen
- UP / DOWN – select a command from the list.
- GREEN / OK – execute the selected command.
- LEFT / RIGHT – scroll the output area one page up/down (using pageUp/pageDown).
- CH+ / CH– (PageUp/PageDown) – scroll the output area one page up/down.
- YELLOW – clear the output area.
- BLUE – save the current output to
/tmp/command_output_YYYYMMDD_HHMMSS.txt. - INFO – show the full command and its description.
- RED – go back to category list.
Manager Screen
- UP / DOWN – browse all commands (predefined + custom).
- OK – edit the selected command.
- GREEN – add a new custom command (enter command and description).
- YELLOW – edit the selected command.
- BLUE – delete a custom command or disable a predefined command (opens confirmation).
- INFO – toggle the
[DISABLED]state for predefined commands only (disabled commands won’t appear in the main list). - RED – exit the manager.
Debug Mode Screen (NEW in v1.2)
- UP / DOWN – select a debug command.
- GREEN / OK – run the selected debug command (confirmation required).
- YELLOW – toggle between command list and log browser.
- BLUE – delete the selected log file (when in log browser).
- INFO – view the content of the selected log file (opens Log Viewer).
- RED – exit debug screen.
What is Debug Mode for?
Some commands (like
init 4 ; killall -9 enigma2 ; ENIGMA_DEBUG_LVL=4 enigma2) will restart or crash Enigma2. Normal execution would immediately close the plugin and you would lose the output. Debug Mode runs such commands in a detached background script, saving all output to a persistent log file in/home/root/logs/. After Enigma2 restarts, you can come back to Debug Mode, press YELLOW to see the list of logs, select one and press INFO to view it in the dedicated Log Viewer.Log Viewer Screen (NEW in v1.2)
- UP / DOWN – scroll the log text line by line.
- LEFT / RIGHT or CH+/CH– – scroll page by page.
- GREEN – switch between Full Log and Error Only view (automatically extracts tracebacks and errors).
- RED / OK / CANCEL – close the viewer.

-
Version 1.1
- Lululla
- 42.08 kB
- 20 Downloads
## Changelog – Command Center Plugin v.1.1
Below are the main improvements and fixes made to the plugin compared to the initial version.
### External command file (JSON)
- **Before:** Predefined commands were hard‑coded in `plugin.py`. Any change required editing the code and restarting Enigma2.
- **Now:** All predefined commands are stored in `/etc/enigma2/commandcenter_commands.json`.
- On first run the plugin creates this file from `default_commands.json` (shipped inside the plugin folder).
- You can freely edit `commandcenter_commands.json` (via FTP or any text editor) to add, remove or modify commands and descriptions – no Python changes needed.
- If the file gets corrupted or deleted, the plugin automatically recreates it from the defaults.
### Automatic backups of user configurations
- **Before:** Changes to custom commands, disabled states and modifications were saved without any backup.
- **Now:** Before saving `/etc/enigma2/commandcenter_custom.json` or `/etc/enigma2/commandcenter_config.json`, the plugin creates a timestamped backup (e.g. `.20260526_123456.bak`). You can restore a previous version if something goes wrong.
### Fixed navigation in ManagerScreen
- **Before:** Arrow keys (up/down) did not work inside the `Manager` screen – impossible to scroll through the command list.
- **Now:** The `ActionMap` has been corrected by adding the `DirectionActions` and `InfoActions` contexts and the proper actions (`up`, `down`, `pageUp`, `pageDown`). Focus is also forced on the list when the screen opens.
### INFO button works everywhere
- **Before:** The INFO remote key had no effect in any screen.
- **Now:**
- `CategoryScreen` → shows plugin version and a short info message.
- `CommandScreen` → shows the full command and description of the selected item.
- `ManagerScreen` → toggles the `[DISABLED]` state for predefined commands.
### Scroll command output
- **Before:** After executing a command, long output could not be scrolled.
- **Now:** In `CommandScreen` you can navigate the output area with:
- **LEFT / RIGHT** → scroll one line up / down.
- **CH+ / CH– (PageUp / PageDown)** → scroll one full page.
- Auto‑scroll (when enabled) still works as before.
### Skin support for HD, FHD and WQHD
- **Before:** Only a generic skin existed, not optimised for different resolutions.
- **Now:** Three skin folders (`skins/hd`, `skins/fhd`, `skins/wqhd`) contain tailored XML files.
- **HD (1280×720)** – compact layout.
- **FHD (1920×1080)** – larger, more readable.
- **WQHD (2560×1440)** – fully uses big screens.
The plugin automatically detects the screen width and loads the appropriate skin.
### Other minor fixes
- Fixed JSON syntax: predefined command lists now use `[]` instead of `()`.
- Added debug print messages (can be removed if not needed).
- Better error handling: corrupted config files are renamed with a `.corrupt` extension.
- Screen titles now show the plugin version for easier support.
---
## Notes for the user
- **Customising predefined commands:** Edit `/etc/enigma2/commandcenter_commands.json` (keep valid JSON syntax). Reopen the plugin to see changes.
- **Restoring a backup:** In the same folder you will find files like `commandcenter_config.json.20260526_123456.bak`. Remove the timestamp part to restore.
- **Custom commands:** Use the **BLUE** button in `ManagerScreen` → `Add Custom`. They are saved in `/etc/enigma2/commandcenter_custom.json`.
- **Disabling a predefined command:** In `ManagerScreen`, select a predefined command and press **INFO** to toggle `[DISABLED]`. Disabled commands won’t appear in the main list.
- **Scrolling long output:** After running a command, use **LEFT/RIGHT** for line‑by‑line scrolling and **CH+/CH–** for page scrolling.
- **Reporting issues:** Check Enigma2 logs (`/home/root/logs`, `dmesg`, `journalctl`) for any plugin errors.
---
-
Version 1.0
- Lululla
- 30.42 kB
- 33 Downloads
