Installing CImg on ubuntu from bash scriptI Recently Installed Ubuntu Desktop GUI Over My Ubuntu Server Install and I Broke Some Bash CommandsHow to completely restart script from inside the script itselfrun a script as non-root usergsettings not working from within bash functionprocessing arguments with bash functionbash script to run a second command with select output from first command as variableHow to activate a virtualenv within bash script resulting in activated promptHow to run a script in terminal when doubleclickedIs there a better way to create a file in bash other than using touch and echo?

`dd` does not create bootable Ubuntu iso

I will never do it - CE or LE?

Submitting list of forbidden words

Isn't LaTeX a complete software for producing books?

Making recursion optional: Bad practice?

How tall would a rainforest need to be to make it completely dark at ground level

Is a pad just a melody synth with a bunch of reverb and echo?

Does Amoxicillin (as trihydrate) degrade in stomach acid?

LWC not evaluating the if:true statement

Are the graphical depictions in docs drawed in manual labour?

Why are dates (of writing or publication) missing in scientific papers?

What is the process of going from machine code to electrically controlling individual transistors?

Max of the reversed of two numbers

Is it against a Terms of Service/End-User License Agreement to not read it?

Renew British passport which includes visa for return to Australia

How to check whether the permutation is random or not

Cisco ASA 5512X does not allow connections across VLANs to internet

How to build CNOT gate out of universal gates?

I have just 4 hours a month to security check a cloud based application - How to use my time?

Short story about a young psychic man who disrupts a home full of unusual people?

In the top five, I'm odd

Is part of the Mediterranean sea considered Eretz Israel?

A professor commented that my research is too simple as compared to my colleagues. What does that mean about my future prospects?

Can dual US-Canadian citizens travel to the US with an expired US passport but valid Canadian passport?



Installing CImg on ubuntu from bash script


I Recently Installed Ubuntu Desktop GUI Over My Ubuntu Server Install and I Broke Some Bash CommandsHow to completely restart script from inside the script itselfrun a script as non-root usergsettings not working from within bash functionprocessing arguments with bash functionbash script to run a second command with select output from first command as variableHow to activate a virtualenv within bash script resulting in activated promptHow to run a script in terminal when doubleclickedIs there a better way to create a file in bash other than using touch and echo?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









1

















I would like to install CImg from a non-interactive bash script



I've tried doing this using



apt install -y cimg-dev


Which works until the installer get to asking me about what region I am in



This is fine if for an interactive install, but I want this to be in a bash script so I don't have to manually set the region each time.



What's a suitable way to do this?



I'm not sure if it is possible to queue up the region selection options somehow, or if there is a way to set them before he command starts.










share|improve this question


























  • I think it might be related to dpkg-reconfigure tzdata

    – sav
    Jul 14 at 3:37











  • serverfault.com/questions/84521/…

    – sav
    Jul 14 at 3:38

















1

















I would like to install CImg from a non-interactive bash script



I've tried doing this using



apt install -y cimg-dev


Which works until the installer get to asking me about what region I am in



This is fine if for an interactive install, but I want this to be in a bash script so I don't have to manually set the region each time.



What's a suitable way to do this?



I'm not sure if it is possible to queue up the region selection options somehow, or if there is a way to set them before he command starts.










share|improve this question


























  • I think it might be related to dpkg-reconfigure tzdata

    – sav
    Jul 14 at 3:37











  • serverfault.com/questions/84521/…

    – sav
    Jul 14 at 3:38













1












1








1








I would like to install CImg from a non-interactive bash script



I've tried doing this using



apt install -y cimg-dev


Which works until the installer get to asking me about what region I am in



This is fine if for an interactive install, but I want this to be in a bash script so I don't have to manually set the region each time.



What's a suitable way to do this?



I'm not sure if it is possible to queue up the region selection options somehow, or if there is a way to set them before he command starts.










share|improve this question















I would like to install CImg from a non-interactive bash script



I've tried doing this using



apt install -y cimg-dev


Which works until the installer get to asking me about what region I am in



This is fine if for an interactive install, but I want this to be in a bash script so I don't have to manually set the region each time.



What's a suitable way to do this?



I'm not sure if it is possible to queue up the region selection options somehow, or if there is a way to set them before he command starts.







command-line apt bash default software-uninstall






share|improve this question














share|improve this question











share|improve this question




share|improve this question










asked Jul 14 at 3:26









savsav

1211 gold badge1 silver badge6 bronze badges




1211 gold badge1 silver badge6 bronze badges















  • I think it might be related to dpkg-reconfigure tzdata

    – sav
    Jul 14 at 3:37











  • serverfault.com/questions/84521/…

    – sav
    Jul 14 at 3:38

















  • I think it might be related to dpkg-reconfigure tzdata

    – sav
    Jul 14 at 3:37











  • serverfault.com/questions/84521/…

    – sav
    Jul 14 at 3:38
















I think it might be related to dpkg-reconfigure tzdata

– sav
Jul 14 at 3:37





I think it might be related to dpkg-reconfigure tzdata

– sav
Jul 14 at 3:37













serverfault.com/questions/84521/…

– sav
Jul 14 at 3:38





serverfault.com/questions/84521/…

– sav
Jul 14 at 3:38










1 Answer
1






active

oldest

votes


















0


















I found the answer here, it turned out I needed to figure out how to install the timezone (tzdata) program non-interactively, rather than cimg.



For those interested my script is



apt-get update -y
apt-get upgrade -y

apt-get install -y libx11-dev

export DEBIAN_FRONTEND=noninteractive
ln -fs /usr/share/zoneinfo/Australia/Brisbane /etc/localtime
apt-get install -y tzdata
dpkg-reconfigure --frontend noninteractive tzdata

apt-get install -y cimg-dev





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/4.0/"u003ecc by-sa 4.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%2f1158140%2finstalling-cimg-on-ubuntu-from-bash-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









    0


















    I found the answer here, it turned out I needed to figure out how to install the timezone (tzdata) program non-interactively, rather than cimg.



    For those interested my script is



    apt-get update -y
    apt-get upgrade -y

    apt-get install -y libx11-dev

    export DEBIAN_FRONTEND=noninteractive
    ln -fs /usr/share/zoneinfo/Australia/Brisbane /etc/localtime
    apt-get install -y tzdata
    dpkg-reconfigure --frontend noninteractive tzdata

    apt-get install -y cimg-dev





    share|improve this answer






























      0


















      I found the answer here, it turned out I needed to figure out how to install the timezone (tzdata) program non-interactively, rather than cimg.



      For those interested my script is



      apt-get update -y
      apt-get upgrade -y

      apt-get install -y libx11-dev

      export DEBIAN_FRONTEND=noninteractive
      ln -fs /usr/share/zoneinfo/Australia/Brisbane /etc/localtime
      apt-get install -y tzdata
      dpkg-reconfigure --frontend noninteractive tzdata

      apt-get install -y cimg-dev





      share|improve this answer




























        0














        0










        0









        I found the answer here, it turned out I needed to figure out how to install the timezone (tzdata) program non-interactively, rather than cimg.



        For those interested my script is



        apt-get update -y
        apt-get upgrade -y

        apt-get install -y libx11-dev

        export DEBIAN_FRONTEND=noninteractive
        ln -fs /usr/share/zoneinfo/Australia/Brisbane /etc/localtime
        apt-get install -y tzdata
        dpkg-reconfigure --frontend noninteractive tzdata

        apt-get install -y cimg-dev





        share|improve this answer














        I found the answer here, it turned out I needed to figure out how to install the timezone (tzdata) program non-interactively, rather than cimg.



        For those interested my script is



        apt-get update -y
        apt-get upgrade -y

        apt-get install -y libx11-dev

        export DEBIAN_FRONTEND=noninteractive
        ln -fs /usr/share/zoneinfo/Australia/Brisbane /etc/localtime
        apt-get install -y tzdata
        dpkg-reconfigure --frontend noninteractive tzdata

        apt-get install -y cimg-dev






        share|improve this answer













        share|improve this answer




        share|improve this answer










        answered Jul 14 at 4:11









        savsav

        1211 gold badge1 silver badge6 bronze badges




        1211 gold badge1 silver badge6 bronze badges































            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%2f1158140%2finstalling-cimg-on-ubuntu-from-bash-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

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?