This is a reference list of Telnet commands for Enigma2 boxes. It covers E2-specific commands; for common Unix/Linux commands used via Telnet on PCs and set-top boxes, see the separate list linked below.
Installing a tar.gz File to the Box
FTP the tar.gz file to the /tmp folder, then run the command below, replacing filename with the actual filename:
tar -xzvf /tmp/filename.tar.gz -C /
The command above will install filename.tar.gz from /tmp.
Installing an IPK File to the Box
FTP the .ipk file to /tmp, then run the command below, replacing filename with the actual filename:
opkg install /tmp/filename.ipk
The command above will install the specific filename.ipk from /tmp.
opkg install /tmp/*.ipk
The command above will install all and any .ipk files in /tmp.
Listing & Uninstalling IPK Files
Note: always perform a full image backup before uninstalling an IPK through Telnet.
List installed packages with opkg:
opkg list
Remove a package (replace package with the package name):
opkg remove package
Update a ViX Image from Telnet
(This may not work on all E2 images — confirmation welcome.)
init 4 && opkg update && opkg upgrade && init 6
Update Box Image & Plugins Using opkg
Update the image:
opkg update
Update the plugins:
opkg upgrade
Screen Grabs / Dumps
Run the command below, replacing filename with the filename you want for the screenshot.
Grabs the OSD only:
grab -o -p /tmp/filename.png
Grabs the OSD with the channel:
grab -d -p /tmp/filename.png
Force Overwrite Fonts from Telnet
If you find that there is always one package available for update, use this command to force-overwrite the fonts — this is usually the culprit:
opkg -force-overwrite install enigma2-fonts
Change the Power State of an Enigma2 Box
Note: change password to your root password.
Deep standby:
wget -O /dev/null -q http://127.0.0.1/web/powerstate?newstate=0
Reboot:
wget -O /dev/null -q http://127.0.0.1/web/powerstate?newstate=6
Restart Enigma2:
wget -O /dev/null -q http://127.0.0.1/web/powerstate?newstate=3
Wake up from standby:
wget -O /dev/null -q http://127.0.0.1/web/powerstate?newstate=4
wget -O /dev/null -q http://127.0.0.1/web/powerstate?newstate=X
where X =
0 - deep standby "shutdown"; will execute all /etc/rc0.d/* scripts before entering deep standby
1 - single user without network; will execute all /etc/rc1.d/* scripts after switching the runlevel
2 - multi user with network; will execute all /etc/rc2.d/* scripts after switching the runlevel
3 - multi user with network with enigma2; will execute all /etc/rc3.d/* scripts after switching the runlevel
4 - multi user with network; will execute all /etc/rc3.d/* scripts after switching the runlevel
5 - multi user with network with enigma2; will execute all /etc/rc5.d/* scripts after switching the runlevel
6 - reboot ; will execute all /etc/rc6.d/* scripts before reboot
S - shutdown ; will execute all /etc/rc0.d/* scripts before entering deep standby
Reload Enigma2 Settings
Note: change the X in the command to:
- 0 — reload lamedb and user bouquets
- 1 — reload lamedb only
- 2 — reload user bouquets only
wget -qO - http://127.0.0.1/web/servicelistreload?mode=
wget -qO - http://127.0.0.1/web/servicelistreload?mode=X
where X =
0, reloading lamedb and Userbouquets
1, reloading lamedb only
2, reloading Userbouquets only

Replies 60
pheonix
slight correction to the above.
Update Box Image & plugins
Using Open PacKaGe Management
Update Image
opkg update updates the image feeds located in /etc/opkg/ ( off the top of my head may be a slightly different path ) if you run this command it will not update any thing on the image but allow the image to know updates are there.
Update Plugins
opkg upgrade is the command that updates the image and or plugins as identified by the above opkg update command. when using these commands i recommend you first place enigma into a sleeping state so that any changes that are made have less risk of becoming corrupted as they may when being updated while there in a live / running state.
Here are some other commands that i use regularly with ViX although most if not all are universal to all images, along with a brief description of what the commands do as i understand them ( so some may be wrong or not 100 percent accurate ) but all these commands work as i use them my self.
init codes.
init 1 closes all running files.
init 3 wake enigma from a sleeping state / GUI restart.
init 4 Kill enigma / places enigma into sleep mode allowing you to edit or modify files that otherwise would corrupt or become damages if edited while live.
init 6 Full reboot.
you can also use the following commands.
shutdown -r now = basically the same as the above init 6 command
shutdown -h now = Full shutdown.
lsusb = lists all attached USB devices
df -h = checks memory and storage stats.
nmap -sp 192.168.1.0/24 = allows you to map your local network ( change the address as needed to map your own network )
cat /proc/meminfo = memory info
opkg update && opkg list-upgradable = allows you to check what is available to update on the image.
opkg download = allows you to download plugins directly from the images own feeds in a installable .ipk format to the /home/root/ directory of your receiver for safe keeping etc. a couple of examples as follows.
opkg download enigma2-plugin-extensions-backupsuite
opkg download enigma2-plugin-systemplugins-autobouquetsmaker
opkg install = allows you to install plugins directly from the image feeds., a few examples below.
opkg install enigma2-plugin-systemplugins-autobouquetsmaker
opkg install enigma2-plugin-extensions-backupsuite
opkg install enigma2-plugin-extensions-ondemand
joeuser
Can a mod fix the first post? All the wget http links were "modded" and are now unreadable... They should be:
and
serdeliuk
Hi,
Some few corrections or at least some explanations should be added to this thread.
Init command does not do anything, but only change the runlevel of the linux machine and reload all init scripts, located in /etc/init.d for each /etc/rcX.d where X is a number between 0-6 or S and represents a runlevel, where usually do following from end user perspective
0 - deep standby "shutdown"; will execute all /etc/rc0.d/* scripts before entering deep standby
1 - single user without network; will execute all /etc/rc1.d/* scripts after switching the runlevel
2 - multi user with network; will execute all /etc/rc2.d/* scripts after switching the runlevel
3 - multi user with network with enigma2; will execute all /etc/rc3.d/* scripts after switching the runlevel
4 - multi user with network; will execute all /etc/rc3.d/* scripts after switching the runlevel
5 - multi user with network with enigma2; will execute all /etc/rc5.d/* scripts after switching the runlevel
6 - reboot ; will execute all /etc/rc6.d/* scripts before reboot
S - shutdown ; will execute all /etc/rc0.d/* scripts before entering deep standby
So issuing an "init 4" or "init 2" will not kill anything, but will stop enigma2 gracefully, waiting for all it's components to stop.
Issuing from command line, ssh or ftp, "killall 9 enigma2" will cause to sudden stop all enigma2 services without waiting to close anything and leave all opened files in an uncertain state, for example, if you have an E2 plugin which open some files, let say "permanent time-shift" and issue killall -9 enigma2 this plugin will not have a chance to close and remove it's files prior closing enigma2, because was killed with -9 parameter which mean "sudden/ no wait".
For sure the "killall -9 enigma2" will not reboot the machine. :)
So, it is dangerous to issue haphazardly commands which you don't understand, but most dangerous is to write HOW TO's with those incorrect commands.
Please, somebody rectify all those above commands in this thread.
Best regards,
Marc
________________________
DM800HD PVR; VU+ Solo 4K
init 2 && init 3
docea37
hi
online e2 settings install script code help me please
problem: The new list adds to the end of the old list
I want to do As DreamboxEdit, how can I delete the old list.
master G
docea37
Hi
How do I delete the folder and its contents on the device in the same way
thank you
davvo
to delete a folder and all its contents
-r = to remove directories and their contents recursively
to delete a file
master G
Do it like this buddy:
tommycahir
does anybody know if you can run a make command on enigma2?
or if it is possible to run mono on it to get a windows exe to run?
- - - Updated - - -
does anybody know if you can run a make command on enigma2?
or if it is possible to run mono on it to get a windows exe to run?
pramud
My box is zgemma hs. enigma 2,openATV image running.
My question is i want to read device information on SCI0. We can get usb devices as type "lsusb" but what is the command for get sci0 device list. I was try "lssci" but it not success.