List of Telnet commands for Enigma 2 Boxes
Please post below and we will build a master list on this thread...
This list is for E2 Specific telnet commands
For Common Unix/Linux Commands used via Telnet for pc's & stb's, see this very complete list by Master G
Installing a tar.gz file to the box
FTP the tar.gz file to folder /tmp
Execute the command below replacing filename with the actual filename
tar -xzvf /tmp/filename.tar.gz -C /
above command will install filename.tar.gz from /tmp
Installing IPK file to the box
FTP the .ipk file to /tmp
Execute the command below replacing filename with the actual filename
opkg install /tmp/filename.ipk
above command will install specific filename.ipk file from /tmp
opkg install /tmp/*.ipk
above command will install all and any .ipk files in /tmp
Listing & Uninstalling IPK files on the box
NOTE: Always perform a full image backup before uninstalling IPK through telnet
List opkg
opkg list
Remove packages (Replace package with package name)
opkg remove package
Update ViX image from telnet
I am not sure if this works for all e2 Images, maybe somebody can confirm.
init 4 && opkg update && opkg upgrade && init 6
Update Box Image & plugins
Using Open PacKaGe Management
Update Image
opkg update
Update Plugins
opkg upgrade
Screen Grabs/Dumps
Execute the command below replacing filename with the filename you want for the screenshot
Grabs OSD only.
grab -o -p /tmp/filename.png
Grabs OSD with channel.
grab -d -p /tmp/filename.png
Force overwrite fonts from telnet
If you find that there is always 1 package available for update use this command to force overwrite fonts. This is usually the culprit.
opkg -force-overwrite install enigma2-fonts
Change powerstate of a Enigma2.
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
Wakeup 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. (copy link instead of only shorten text)
Note: Change the X telnet command to:
0 - reloading lamedb and Userbouquets
1 - reloading lamedb only
2 - reloading Userbouquets 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 55
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.