List of Telnet commands for Enigma 2 Boxes

  • 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
    Please login to see this link.



    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

    Code
    1. tar -xzvf /tmp/[COLOR='#FF0000']filename[/COLOR].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

    Code
    1. ipkg install /tmp/[COLOR='#FF0000']filename[/COLOR].ipk


    above command will install specific filename.ipk file from /tmp


    Code
    1. ipkg 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 ipkg

    Code
    1. ipkg list


    Remove packages (Replace package with package name)

    Code
    1. ipkg remove [COLOR='#FF0000']package[/COLOR]




    Update ViX image from telnet
    I am not sure if this works for all e2 Images, maybe somebody can confirm.

    Code
    1. init 4 && opkg update && opkg upgrade && init 6




    Update Box Image & plugins
    Using Open PacKaGe Management
    Update Image

    Code
    1. opkg update


    Update Plugins

    Code
    1. opkg upgrade




    Screen Grabs/Dumps
    Execute the command below replacing filename with the filename you want for the screenshot
    Grabs OSD only.

    Code
    1. grab -o -p /tmp/[COLOR='#FF0000']filename[/COLOR].png


    Grabs OSD with channel.

    Code
    1. grab -d -p /tmp/[COLOR='#FF0000']filename[/COLOR].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.

    Code
    1. opkg -force-overwrite install enigma2-fonts



    Change powerstate of a Enigma2.
    Note: Change password to your root password!



    Deep Standby:

    Code
    1. wget -O /dev/null -q http://127.0.0.1/web/powerstate?newstate=0


    Reboot:

    Code
    1. wget -O /dev/null -q http://127.0.0.1/web/powerstate?newstate=6


    Restart Enigma2:

    Code
    1. wget -O /dev/null -q http://127.0.0.1/web/powerstate?newstate=3


    Wakeup from Standby:

    Code
    1. wget -O /dev/null -q http://127.0.0.1/web/powerstate?newstate=4


    Code
    1. wget -O /dev/null -q http://127.0.0.1/web/powerstate?newstate=X
    2. where X =
    3. 0 - deep standby "shutdown"; will execute all /etc/rc0.d/* scripts before entering deep standby
    4. 1 - single user without network; will execute all /etc/rc1.d/* scripts after switching the runlevel
    5. 2 - multi user with network; will execute all /etc/rc2.d/* scripts after switching the runlevel
    6. 3 - multi user with network with enigma2; will execute all /etc/rc3.d/* scripts after switching the runlevel
    7. 4 - multi user with network; will execute all /etc/rc3.d/* scripts after switching the runlevel
    8. 5 - multi user with network with enigma2; will execute all /etc/rc5.d/* scripts after switching the runlevel
    9. 6 - reboot ; will execute all /etc/rc6.d/* scripts before reboot
    10. 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

    Code
    1. wget -qO - http://127.0.0.1/web/servicelistreload?mode=[COLOR='#FF0000']X[/COLOR]


    Code
    1. wget -qO - http://127.0.0.1/web/servicelistreload?mode=X
    2. where X =
    3. 0, reloading lamedb and Userbouquets
    4. 1, reloading lamedb only
    5. 2, reloading Userbouquets only

    You can see why there isn't much Broadband left for muso......


    Please login to see this link.


    Please login to see this link.



    All your problems have been solved countless times before so try the search box before you post!!
    Please do not Request help by PM, use the main forum so Everyone can benefit from the answers.

    The post was edited 1 time, last by master G: rectifying commands ().

  • 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

    OpenViX on Twitter @0penViX

  • Can a mod fix the first post? All the wget http links were "modded" and are now unreadable... They should be:

    Code
    1. wget -O /dev/null -q hxxp://127.0.0.1/web/powerstate?newstate=X
    2. where X =
    3. 0 = Toogle Standby
    4. 1 = Deepstandby
    5. 2 = Reboot
    6. 3 = Restart Enigma2
    7. 4 = Wakeup form Standby
    8. 5 = Standby

    and

    Code
    1. wget -qO - hxxp://127.0.0.1/web/servicelistreload?mode=X
    2. where X =
    3. 0, reloading lamedb and Userbouquets
    4. 1, reloading lamedb only
    5. 2, reloading Userbouquets only
  • 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

  • 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.


  • Hi
    How do I delete the folder and its contents on the device in the same way


    Quote


    /usr/script/cam/
    /usr/oudteam/
    /usr/lib/enigma2/python/Plugins/Extensions/SoftcamManager/


    thank you

  • to delete a folder and all its contents



    -r = to remove directories and their contents recursively


    Code
    1. rm -r /path-to-folder/name-of-folder





    to delete a file


    Code
    1. rm /path-to-file/name-of-file

    The post was edited 1 time, last by davvo ().

  • Do it like this buddy:

    Code
    1. rm - r /usr/script/cam
    2. rm - r /usr/oudteam
    3. rm - r /usr/lib/enigma2/python/Plugins/Extensions/SoftcamManager
  • 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?

  • 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.

  • Post by tfq86 ().

    This post was deleted by master G: Please use the LIKE button for this ! ().