Create a simple GUI installer page for my shell script












0















I have a shell script which when executed asks user inputs and save it to a file and later it will create a docker container based on user inputs.



I have to create a simple GUI page with check boxes and text boxes to add their inputs. How can I achieve that. Can someone please help me.










share|improve this question























  • See Create bash script that allows you to choose multiple options instead of just one?, How to get dialog box input directed to a variable?, and How can I easily create a GUI dialog with a bash script?

    – Sergiy Kolodyazhnyy
    Jan 13 at 10:31













  • My shell script is a distributive package which we ship to our customers. We cannot use tools other than the one that comes with OS installation, since the customer at their end may no have that tools installed. Can you please suggest some options that we useful for shipping the script with GUI installation page, while the customers executing it.

    – KarthiKeyan
    Jan 13 at 10:44






  • 1





    dialog is one of the packages that come with Ubuntu, so it is included. Regarding other Debian-based systems - we do not address questions other than Ubuntu-related on this site.

    – Sergiy Kolodyazhnyy
    Jan 13 at 10:52











  • Thanks. :) :) I will check

    – KarthiKeyan
    Jan 13 at 10:57
















0















I have a shell script which when executed asks user inputs and save it to a file and later it will create a docker container based on user inputs.



I have to create a simple GUI page with check boxes and text boxes to add their inputs. How can I achieve that. Can someone please help me.










share|improve this question























  • See Create bash script that allows you to choose multiple options instead of just one?, How to get dialog box input directed to a variable?, and How can I easily create a GUI dialog with a bash script?

    – Sergiy Kolodyazhnyy
    Jan 13 at 10:31













  • My shell script is a distributive package which we ship to our customers. We cannot use tools other than the one that comes with OS installation, since the customer at their end may no have that tools installed. Can you please suggest some options that we useful for shipping the script with GUI installation page, while the customers executing it.

    – KarthiKeyan
    Jan 13 at 10:44






  • 1





    dialog is one of the packages that come with Ubuntu, so it is included. Regarding other Debian-based systems - we do not address questions other than Ubuntu-related on this site.

    – Sergiy Kolodyazhnyy
    Jan 13 at 10:52











  • Thanks. :) :) I will check

    – KarthiKeyan
    Jan 13 at 10:57














0












0








0








I have a shell script which when executed asks user inputs and save it to a file and later it will create a docker container based on user inputs.



I have to create a simple GUI page with check boxes and text boxes to add their inputs. How can I achieve that. Can someone please help me.










share|improve this question














I have a shell script which when executed asks user inputs and save it to a file and later it will create a docker container based on user inputs.



I have to create a simple GUI page with check boxes and text boxes to add their inputs. How can I achieve that. Can someone please help me.







scripts gui






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 13 at 10:24









KarthiKeyanKarthiKeyan

92




92













  • See Create bash script that allows you to choose multiple options instead of just one?, How to get dialog box input directed to a variable?, and How can I easily create a GUI dialog with a bash script?

    – Sergiy Kolodyazhnyy
    Jan 13 at 10:31













  • My shell script is a distributive package which we ship to our customers. We cannot use tools other than the one that comes with OS installation, since the customer at their end may no have that tools installed. Can you please suggest some options that we useful for shipping the script with GUI installation page, while the customers executing it.

    – KarthiKeyan
    Jan 13 at 10:44






  • 1





    dialog is one of the packages that come with Ubuntu, so it is included. Regarding other Debian-based systems - we do not address questions other than Ubuntu-related on this site.

    – Sergiy Kolodyazhnyy
    Jan 13 at 10:52











  • Thanks. :) :) I will check

    – KarthiKeyan
    Jan 13 at 10:57



















  • See Create bash script that allows you to choose multiple options instead of just one?, How to get dialog box input directed to a variable?, and How can I easily create a GUI dialog with a bash script?

    – Sergiy Kolodyazhnyy
    Jan 13 at 10:31













  • My shell script is a distributive package which we ship to our customers. We cannot use tools other than the one that comes with OS installation, since the customer at their end may no have that tools installed. Can you please suggest some options that we useful for shipping the script with GUI installation page, while the customers executing it.

    – KarthiKeyan
    Jan 13 at 10:44






  • 1





    dialog is one of the packages that come with Ubuntu, so it is included. Regarding other Debian-based systems - we do not address questions other than Ubuntu-related on this site.

    – Sergiy Kolodyazhnyy
    Jan 13 at 10:52











  • Thanks. :) :) I will check

    – KarthiKeyan
    Jan 13 at 10:57

















See Create bash script that allows you to choose multiple options instead of just one?, How to get dialog box input directed to a variable?, and How can I easily create a GUI dialog with a bash script?

– Sergiy Kolodyazhnyy
Jan 13 at 10:31







See Create bash script that allows you to choose multiple options instead of just one?, How to get dialog box input directed to a variable?, and How can I easily create a GUI dialog with a bash script?

– Sergiy Kolodyazhnyy
Jan 13 at 10:31















My shell script is a distributive package which we ship to our customers. We cannot use tools other than the one that comes with OS installation, since the customer at their end may no have that tools installed. Can you please suggest some options that we useful for shipping the script with GUI installation page, while the customers executing it.

– KarthiKeyan
Jan 13 at 10:44





My shell script is a distributive package which we ship to our customers. We cannot use tools other than the one that comes with OS installation, since the customer at their end may no have that tools installed. Can you please suggest some options that we useful for shipping the script with GUI installation page, while the customers executing it.

– KarthiKeyan
Jan 13 at 10:44




1




1





dialog is one of the packages that come with Ubuntu, so it is included. Regarding other Debian-based systems - we do not address questions other than Ubuntu-related on this site.

– Sergiy Kolodyazhnyy
Jan 13 at 10:52





dialog is one of the packages that come with Ubuntu, so it is included. Regarding other Debian-based systems - we do not address questions other than Ubuntu-related on this site.

– Sergiy Kolodyazhnyy
Jan 13 at 10:52













Thanks. :) :) I will check

– KarthiKeyan
Jan 13 at 10:57





Thanks. :) :) I will check

– KarthiKeyan
Jan 13 at 10:57










1 Answer
1






active

oldest

votes


















3














dialog




  • dialog provides a TUI, a text user interface, which works both in text mode and in terminal windows in graphical desktops.



  • dialog is in the repository 'universe', that is activated in Ubuntu when installed, but not in live or persistent live Ubuntu.





    • Necessary only in live or persistent live Ubuntu, run



      sudo add-apt-repository universe


      to activate it.






  • You can install dialog



    sudo apt update
    sudo apt install dialog


    and you can add these command lines into your shellscript, to make them run automatically, when a customer runs your shellscript. These commands need root privileges, which may be a problem, if you have customers who lack such privileges.



    Please notice that apt is used by Ubuntu and Debian (and linux distros based on Ubuntu or Debian). Other linux distros have different tools to install programs.



  • The current version in Ubuntu 18.04.1 LTS is dialog 1.3-20171209.


  • After installation you can see the on-line manual man dialog.



zenity




  • zenity provides a GUI, a graphical user interface, which works only in graphical desktops.


  • zenity is bundled with Ubuntu, you need not install it.


  • The current version in Ubuntu 18.04.1 LTS is zenity 3.28.1.

  • See also the on-line manual man zenity.


screenshots



dialog:



enter image description here



zenity:



enter image description here






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1109329%2fcreate-a-simple-gui-installer-page-for-my-shell-script%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    dialog




    • dialog provides a TUI, a text user interface, which works both in text mode and in terminal windows in graphical desktops.



    • dialog is in the repository 'universe', that is activated in Ubuntu when installed, but not in live or persistent live Ubuntu.





      • Necessary only in live or persistent live Ubuntu, run



        sudo add-apt-repository universe


        to activate it.






    • You can install dialog



      sudo apt update
      sudo apt install dialog


      and you can add these command lines into your shellscript, to make them run automatically, when a customer runs your shellscript. These commands need root privileges, which may be a problem, if you have customers who lack such privileges.



      Please notice that apt is used by Ubuntu and Debian (and linux distros based on Ubuntu or Debian). Other linux distros have different tools to install programs.



    • The current version in Ubuntu 18.04.1 LTS is dialog 1.3-20171209.


    • After installation you can see the on-line manual man dialog.



    zenity




    • zenity provides a GUI, a graphical user interface, which works only in graphical desktops.


    • zenity is bundled with Ubuntu, you need not install it.


    • The current version in Ubuntu 18.04.1 LTS is zenity 3.28.1.

    • See also the on-line manual man zenity.


    screenshots



    dialog:



    enter image description here



    zenity:



    enter image description here






    share|improve this answer






























      3














      dialog




      • dialog provides a TUI, a text user interface, which works both in text mode and in terminal windows in graphical desktops.



      • dialog is in the repository 'universe', that is activated in Ubuntu when installed, but not in live or persistent live Ubuntu.





        • Necessary only in live or persistent live Ubuntu, run



          sudo add-apt-repository universe


          to activate it.






      • You can install dialog



        sudo apt update
        sudo apt install dialog


        and you can add these command lines into your shellscript, to make them run automatically, when a customer runs your shellscript. These commands need root privileges, which may be a problem, if you have customers who lack such privileges.



        Please notice that apt is used by Ubuntu and Debian (and linux distros based on Ubuntu or Debian). Other linux distros have different tools to install programs.



      • The current version in Ubuntu 18.04.1 LTS is dialog 1.3-20171209.


      • After installation you can see the on-line manual man dialog.



      zenity




      • zenity provides a GUI, a graphical user interface, which works only in graphical desktops.


      • zenity is bundled with Ubuntu, you need not install it.


      • The current version in Ubuntu 18.04.1 LTS is zenity 3.28.1.

      • See also the on-line manual man zenity.


      screenshots



      dialog:



      enter image description here



      zenity:



      enter image description here






      share|improve this answer




























        3












        3








        3







        dialog




        • dialog provides a TUI, a text user interface, which works both in text mode and in terminal windows in graphical desktops.



        • dialog is in the repository 'universe', that is activated in Ubuntu when installed, but not in live or persistent live Ubuntu.





          • Necessary only in live or persistent live Ubuntu, run



            sudo add-apt-repository universe


            to activate it.






        • You can install dialog



          sudo apt update
          sudo apt install dialog


          and you can add these command lines into your shellscript, to make them run automatically, when a customer runs your shellscript. These commands need root privileges, which may be a problem, if you have customers who lack such privileges.



          Please notice that apt is used by Ubuntu and Debian (and linux distros based on Ubuntu or Debian). Other linux distros have different tools to install programs.



        • The current version in Ubuntu 18.04.1 LTS is dialog 1.3-20171209.


        • After installation you can see the on-line manual man dialog.



        zenity




        • zenity provides a GUI, a graphical user interface, which works only in graphical desktops.


        • zenity is bundled with Ubuntu, you need not install it.


        • The current version in Ubuntu 18.04.1 LTS is zenity 3.28.1.

        • See also the on-line manual man zenity.


        screenshots



        dialog:



        enter image description here



        zenity:



        enter image description here






        share|improve this answer















        dialog




        • dialog provides a TUI, a text user interface, which works both in text mode and in terminal windows in graphical desktops.



        • dialog is in the repository 'universe', that is activated in Ubuntu when installed, but not in live or persistent live Ubuntu.





          • Necessary only in live or persistent live Ubuntu, run



            sudo add-apt-repository universe


            to activate it.






        • You can install dialog



          sudo apt update
          sudo apt install dialog


          and you can add these command lines into your shellscript, to make them run automatically, when a customer runs your shellscript. These commands need root privileges, which may be a problem, if you have customers who lack such privileges.



          Please notice that apt is used by Ubuntu and Debian (and linux distros based on Ubuntu or Debian). Other linux distros have different tools to install programs.



        • The current version in Ubuntu 18.04.1 LTS is dialog 1.3-20171209.


        • After installation you can see the on-line manual man dialog.



        zenity




        • zenity provides a GUI, a graphical user interface, which works only in graphical desktops.


        • zenity is bundled with Ubuntu, you need not install it.


        • The current version in Ubuntu 18.04.1 LTS is zenity 3.28.1.

        • See also the on-line manual man zenity.


        screenshots



        dialog:



        enter image description here



        zenity:



        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 13 at 14:07

























        answered Jan 13 at 13:42









        sudodussudodus

        23.5k32874




        23.5k32874






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1109329%2fcreate-a-simple-gui-installer-page-for-my-shell-script%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?