Shell Plugin Version 3.0 mit keymap.xml Verwaltung

  • Version 3.0 ist fertig !


    Jetzt mit Möglichkeit bis zu 14 verschiedene Keymaps zu laden.
    Auch das diskdoctor script ist jetzt inkludiert und wie bereits in Version 2.0 der Möglichkeit bis zu 14 eigene Kommandos in einem commands.lst file zu definieren.


    Wie bereits üblich mit fullkit als ZIP und tar.bz2 file direct fürs Blue Pannel oder FTP


    gruss
    thowi


    ===================================================
    Shell Plugin for Dreambox 7025 Version 3.0 by thowi
    ===================================================


    Unpack the shellXX.zip on a PC (replace XX with
    current versionnumber) when you have not downloaded
    the plugin from Blue Pannel already.
    Then simply FTP the shellXX.tar.bz2 kit to
    /var/tmp of the Dreambox and then
    use Manual Install in Blue Pannel of your image
    and then restart enigma or reboot.


    If no Blue Pannel is available in your image,
    or it doesn't work to install the kit from there,
    then simply type the following in a telnet session
    after copying the kit file to /var/tmp via FTP:


    cd /
    bunzip2 /var/tmp/shellXX.tar.bz2
    tar -xvf /var/tmp/shellXX.tar
    killall enigma2


    After this the Shell addon should show up in
    Games / Plugins and can be used - menu commands
    are more or less selfexplaining. If you don't know
    what the commands are meaning check a Unix shell
    command guide BEFORE executing them !


    Usage of shell plugin
    ---------------------


    You can pass only 1 command per shell execution
    (no ; allowed) and no # allowed within the command.
    But the shell plugin will remember the path
    between executions !
    Off course no commands are allowed which
    don't terminate (like vi, more, top,...) or
    need further input during execution
    (ping is possible but limited by the plugin
    to 10 cycles).


    Execute the command exit or logout at the
    end of your shell execution session or it will
    remember you last working directory until
    next execution. But this could be usefull to
    allways start at /media/hdd for example !


    Default directory is /, but the plugin
    remembers the directory if you do cd.


    In Gemini Image for example /usr/script is
    interesting (cd /usr/script) to make an ls
    and execute some of the scripts
    there, or cronmanager also includes some
    example scripts at /etc/cron/examples.


    The current version now also contains a
    lot of usefull commands grouped by subject
    (Directory, System, Disk, Archive...)
    in special wizzards to reduce your
    typing effort !


    My diskdoctor script for doing an fsck
    of the harddisk is now also included.


    User Commands
    -------------


    You can now also specify up to 14 user
    specific commands (your personal favourites)
    by editing a commands.lst file in the
    /usr/lib/enigma2/python/Plugins/Extensions/Shell
    directory.


    Better do this with an unix conform editor !


    Keymap switcher
    ---------------


    You can now switch to up to 14 alternate
    keymap.xml files (only 3 examples are included):


    keymaps_usbkeyshell.xml


    This keymap from Einsteini gives you
    improved support for the USB Keyboard when
    entering commands in the shell
    plugin via USB keyboard.


    keymaps_neutrinozapp.xml


    This keymap from InsideTV and theflashor23 gives
    you neutrino style zapping for the remote control
    (as far as I know it works only with Gemini 15)


    2x right or left = optionchannels
    then right and left choose optionchannels
    right/left switch trough bouquet
    up/down = zapping


    keymaps_usbkeyenigma.xml


    This Keymap from DonHora should give you control
    of enigma menus via USB keyboard instead of remote


    If there are new or updated keymaps available
    from the authors simply copy
    them with the name keymap_*.xml to
    /usr/lib/enigma2/python/Plugins/Extensions/Shell/keymaps


    They should show then up in the alternate keymap
    choosing menu next time you call the plugin.


    Some typing tipps with remote control
    -------------------------------------


    You reach / and - for your shell commands by pressing 0
    multiply, and delete is the speaker off button
    (logically isn't it ?)


    After entering the command be patient until pressing OK
    (cursor has to come back blinking), otherwiese enigma
    will crash (not my fault, ask DM !?)


    ================================================
    Have Fun Executing Shell commands with your
    Remote control at your DM 7025 !
    ================================================

  • noch ein paar kleine tipps für die Tester (sonst fragt wieder wer wozu braucht man das überhaupt):


    default directory ist /, aber das plugin merkt sich das directory wenn man cd macht


    Also im Gemini ist dann sicher /usr/script interessant (cd /usr/script eingeben) dort mal ein ls zu machen
    und evt. ein paar der scripts auszuführen, bei meinem cronmanager sind auch ein paar nützliche scripts in /etc/cron/exampels dabei.


    Die / und - die man bei den Unix Komandos benötigt sind übrigens erreichbar wenn Ihr mehrmals 0 drückt und ein leerzeichen geht am leichtesten wenn man die rechts Taste neben OK drückt


    Und delete ist während man im editor modus für das komando ist die Lautsprecher aus taste (logisch oder ?)


    Bitte * und ' nicht in den Kommandos verwenden, wil das wird nicht sauber an das skript zum ausführen übergeben. na ja ich könnte so einen Workaround wie für das Cronmanager Plugin basteln (% vorher - also z.B. %*) aber wer braucht das schon :winking_face:


    Wäre nett wenn jemand auch antwortet wie man mit einem USN Keyboard damit arbeiten kann.


    ----------------------------------------------------------------------------------------------
    Here come the tipps for testing in english:
    -----------------------------------------------------------------------------------------------


    default directory is /, but the plugin remembers the directory if you do cd.


    In Gemini Image for example /usr/script is interesting (cd /usr/script)
    to make an ls and execute some of the scripts there, or my cronmanager also includes some example scripts at /etc/cron/examples.


    You reach / and - for your shell kommands by pressing 0 multiply, and delete is the speaker off button (logically isn't it ?)


    And don't use * or ' in the commands, this will not be properly passed to the script for execution. Well, i could build a similar workaround then in cronmanager (% before such characters - eg %*), but who needs this anyway :winking_face:


    Would be nice if somebody replies how to work with an USB keyboard with it.


    Gruss
    thowi

    9 Mal editiert, zuletzt von thowi ()

  • Hallo,


    Hmm hat jemand das schon auf einem Gemini getestet?
    Funktioniert das Installieren mit dem "vorhanden" Tarball übers /tmp und BluePanel?


    towi


    soll man das evtl. auch mal zusammenfrimeln das man dies evtl. Übers BluePanel anbieten kann, oder willste da erst noch eigeiges erweitern/verbessern usw.??? :winking_face:

    MfG EgLe :]

    Linux will Benutzer, die Linux wollen. Linux ist nicht Windows


    Kernel : 5.4.2-1-MANJARO LTS
    GUI : KDE 5.64.0 / Plasma 5.17.4
    Machine : Intel NUC8i7HVK
    Graphics : Radeon RX Vega M GH
    CPU : Intel Core i7-8809G @ 8x 4.2GHz
    RAM : Gskill F4-3000C16S-16GRS Speicherkarte so D4 3000 16GB C16 Rip

  • Zitat

    Original von EgLe
    Hallo,


    Hmm hat jemand das schon auf einem Gemini getestet?
    Funktioniert das Installieren mit dem "vorhanden" Tarball übers /tmp und BluePanel?
    :winking_face:


    Yo habe es installiert über BP, kein Problem... Gemini 1.5...

  • Hallo,


    da sich der Focus hier scheinbar verschoben hat kann ich das doppelposting leider nicht vermeiden. :winking_face:


    Wie stehts mit dem Plugin fuer die anderen Boxen?


  • Ja, geht astrein, ich baue meine Kits IMMER so das Sie auch vom BP mit Manula install installierbar sind.


    Wenn Du es übers BP anbieten willst dann aber den bzip2kit und das makekit.sh rausschmeißen, der ist nur für mich da und für Leute die meine Plugins weiterentwicklen wollen - ich poste als Version 1.1 einen Kit der nur das nötigste enthält und auch das readme.txt anzeigen kann, den kannst Du gerne übers BP zum download anbieten.


    gruss
    thowi

  • Hallo,


    alles klar...


    Wenn du das so willst, machste das fertig und ich schiebe das dann ins BluePanel,
    für die die eben damit Online Sind :110:



    Man muss ja solchen tollen Leuten wie euch da schon etwas entgegen kommen,
    wenn Ihr eure Freizeit denn für das schon "opfert" :winking_face:

    MfG EgLe :]

    Linux will Benutzer, die Linux wollen. Linux ist nicht Windows


    Kernel : 5.4.2-1-MANJARO LTS
    GUI : KDE 5.64.0 / Plasma 5.17.4
    Machine : Intel NUC8i7HVK
    Graphics : Radeon RX Vega M GH
    CPU : Intel Core i7-8809G @ 8x 4.2GHz
    RAM : Gskill F4-3000C16S-16GRS Speicherkarte so D4 3000 16GB C16 Rip

  • so Version 1.1 is jetzt gepostet und in meiner vorherigen Reply ist auch das reine shell11.tar.bz2 file fürs Blue Pannel ohne bzip und makekit.sh um die Bandbreite zu schonen :winking_face:


    gruss
    thowi

  • Zitat

    Original von chriwi
    Hallo,


    da sich der Focus hier scheinbar verschoben hat kann ich das doppelposting leider nicht vermeiden. :winking_face:


    Wie stehts mit dem Plugin fuer die anderen Boxen?


    Das shellscript funktioniert auf jeder dreambox und der Python code sollte auf einer DM 7020 auch gehen wenn Ihr ein Enigma2 Image drauf macht.


    Wenn wer Lust hat den python code auf Enigma1 rückzuportieren, warum nicht, ich kanns aber nicht (meine 7000er ist schon ausser haus)


    Gruss
    thowi

  • Hallo,


    so habe das nun mal zum testen ins BluePanel gestellt.


    Und ausserdem habe ich das Posting gleich mal verschoben wo sowas in Zukunft hin sollte:


    - Dreambox Plugins (Enigma2)

    MfG EgLe :]

    Linux will Benutzer, die Linux wollen. Linux ist nicht Windows


    Kernel : 5.4.2-1-MANJARO LTS
    GUI : KDE 5.64.0 / Plasma 5.17.4
    Machine : Intel NUC8i7HVK
    Graphics : Radeon RX Vega M GH
    CPU : Intel Core i7-8809G @ 8x 4.2GHz
    RAM : Gskill F4-3000C16S-16GRS Speicherkarte so D4 3000 16GB C16 Rip

  • >hi thowi,
    >what is shell commands?
    >what is doing this plug in?
    >thanks....


    Und hier noch kurz die Antwort auf die DAU Frage (ind Deutsch und English):


    ---------------------------------------------------------------------------------------
    Deine Dreambox verwendet Linux als Betriebssystem on das bietet auch ein Kommandline Interafce and (wie die DOS Box am PC)


    Man kann solche Kommandos ausführen um bestimmte aufgaben zu erfüllen, wie etwas zu mounten, "nützliche" Skripte auszuführen, usw.


    Normal müßte man dafür eine telnet Sitzung am PC eröffen um die Dreambox shell aufzurufen, dieses Plugin erlaubt es nun direket auf der Dreambox auszuführen mit Eingabe des Kommandos mit der Fernbedienung oder einem USB Keyboard.


    Wenn Du mit Unix Shell script googelst wirst Du genug Anleutungen für die Verschiedensten Kommandos von /bin/sh finden, hier nur ein paar Beispiele.
    -----------------------------------------------------------------------------------------------


    Your Dreambox is using Linux as operating system, and this offers a command line interface (like DOS Box on a PC).


    You could execute such commands for doing specific tasks
    like mounting something, executing "usefull" scripts, etc.


    Normally you would have to open a telnet session from a PC to reach the dreambox shell, this plugin allows it to be executed directly on the dreambox
    with input coming either from a remote controll typing the command or an USB Keyboard.


    If you google with Unix shell script you will find LOTS of guides for the various comands available in /bin/sh, here only a few usefull ones:


    --------------------------------------------------------------------------------------


    df -h


    shows the (disk) space of the filesystems on the Dreambox
    zeigt den (Disk) Platz der Filesysteme der Dreambox


    mount


    shows what mounted
    zeigt was gemountet ist


    cd xxxx


    change directory to xxx
    ändert directory auf xxx


    ps ax


    shows the processes running on your dreambox (check if emu is running for example)
    zeigt was für prozesse auf deiner Dreambox laufen (um zu sehen ob emus laufen beispielsweise)


    cd /media/hdd/movie
    ls


    This will show a list of all your recorded movies on your harddisk
    Das zeigt eine Liste deiner aufgenommenen File auf der Harddisk


    rm xxx


    this will delete file xxx
    das löscht file xxx


    rmdir xxx


    will delete a directory xxx
    das löscht directroy xxx


    rm -r xxx


    this will delete a directory xxx and all subdirectories and files
    das löscht ein directory xxx und alle unterdirectories und files


    cp xxx yyy


    This will copy file xxx to file yyy
    das kopiert ein file xxx auf ein file yyy



    And so on ....
    Und so weiter ...


    thowi

    3 Mal editiert, zuletzt von thowi ()

  • Zitat

    Original von EgLe
    Hallo,


    so habe das nun mal zum testen ins BluePanel gestellt.


    Test ergab: addon installieren war nicht erfolgreich


    Hatte dieses Plugin nicht manuell installiert vorher.

    Es heißt auch nicht mehr Troll, sondern Netzbürger mit Frustrationshintergrund.
    <br>
    Leider muß ich es extra schreiben: Kein Support per PM. Privater Support hilft uns nicht weiter als Forum!

  • thowi


    Na, ist ja doch ein schöner Thread geworden, hätt ich nicht gedacht. Die 5 7025 dürften jetzt wohl zusammen sein ;-)?


    EgLe: Hab Installation der aktuellen Version über BP getestet, astrein. Danke schön an alle, ich kämpfe jetzt weiter mit der keymap für USB-Keyboard


    btw: weiss das jemand, bin ich dabei in der keymap.xls überhaupt richtig?


    [EDIT]


    3c5x9
    hatte die erste Version vor Test BP schon drauf


    /[EDIT]

  • ;(Sorry für die blöde frage ,aber ich bin nicht so gut in english und die übersetzung der anleitung konnte ich auch nicht verstehen was das für ein plugin ist und was sie machen kann kann mal bitte jemannd was dazu sagen in deutsch bitte,
    Danke im voraus

    Dreambox 7025
    Gemini Image
    MGCAmd-NewsCS,160 GB ST
    Astra 19.2°O|Türksat 42°E|Astra 3A 23.5°E

  • danke

    Schreibfehler könnt ihr behalten...denn ich hab genug!

  • nun gehts hier auch.


    thowi:
    - Der Screen ist ja riesig für die 3 Zeilen :winking_face:
    - Die Hilfe kannste auch mit nem Label machen


    schönen Feiertag noch
    3c5x9

    Es heißt auch nicht mehr Troll, sondern Netzbürger mit Frustrationshintergrund.
    <br>
    Leider muß ich es extra schreiben: Kein Support per PM. Privater Support hilft uns nicht weiter als Forum!

  • nun gehts hier auch.


    thowi:
    - Der Screen ist ja riesig für die 3 Zeilen :winking_face:
    - Die Hilfe kannste auch mit nem Label machen


    schönen Feiertag noch
    3c5x9

    Es heißt auch nicht mehr Troll, sondern Netzbürger mit Frustrationshintergrund.
    <br>
    Leider muß ich es extra schreiben: Kein Support per PM. Privater Support hilft uns nicht weiter als Forum!

  • Hallo thowi,


    > ich kanns aber nicht (meine 7000er ist schon ausser haus)


    Ach schade, genau auf diese DM7000 aus deiner Personenbeschreibung hatte ich natuerlich gehofft.


    Ich kann zwar programmieren und habe auch schonmal ein CVS-Image kompiliert, aber habe weder ne Ahnung von Phyton noch weis ich wie man im mit dem CDK nen Plugin macht und auch sonst nichts ueber die OSD-Ausgabe mit der Dreambox, es sei den mit Flexmenue, und meineserachtens ist Phyton eh eine Fremdsprache fuer DM500 und DM7000, es sei denn irgendwer macht mal ne Enigma2 dafuer (wird wohl genauiso wie die Shell nen Wunschtraum bleiben :loudly_crying_face: )


  • Ich bin einfach zu Faul dein schönes Template imemr wieder anzupassen, und meist habe ich am Anfang alle menupunkte auf dem Haputschirm (so wie beim Cronmanager) und dann wandern sie langsam in Deine Wizzards nach Aufgaben sortiert ab (und dann könnte das menu wirklich auch wieder kleiner werden).


    Da die Hilfe je nach Plugin das kurze readme.txt oder den output des scripts ohne argumente mit der liste der Kommandos ausgibt ist es mir so lieber, aber du hast schon recht, irgendwann muss ich mich mit python genauer befassen, ewig nur anderer Leute sachen kopieren ist fad, auch wenn was hübsches dabei rauskommt.


    Gruss
    thowi

  • Soll ich jetzt noch einen schnelleingabemodus machen wo man ein Kommando nach dem anderen eingibt bis man exit/logout eingibt, oder reicht es so schon ?


    gruss
    thowi

    2 Mal editiert, zuletzt von thowi ()