unattended Bionic server install - set language











up vote
1
down vote

favorite












I am trying to automate the installation of Ubuntu Server 18.04 Bionic using a custom ISO. No existing solutions I can find seem to work. All I want to accomplish at this point is to automatically select the language. At least then I can verify I'm not going down another dead-end.



For the ISO, I've started with ubuntu-18.04-live-server-amd64.iso, and I've updated the ISO to have the following files:



preseed.cfg



d-i debian-installer/locale string en_US
d-i debian-installer/language string en


ks.cfg



auth
bootloader
keyboard us
lang en_US
langsupport en_US
mouse
part / --onpart=sda1 --grow
rootpw --disabled
timezone --utc


isolinux/lang



en


isolinux/langlist



en


isolinux/txt.cfg



default live
label live
menu label ^Install Ubuntu Server
kernel /casper/vmlinuz
append boot=casper initrd=/casper/initrd.gz auto file=/cdrom/preseed.cfg locale=en_US languagechooser/language-name=English localechooser/supported-locales=en_US.UTF-8 countrychooser/shortlist=US priority=critical ks=cdrom:/ks.cfg ---


isolinux/isolinux.cfg



path 
include menu.cfg
prompt 0
timeout 1


I've verified the "live" block is being started by renaming it and seeing that the system will not even boot then.



I've tried numerous combinations of different approaches. This is the simplest test case I can come up with that does nothing but attempt to set the language in every documented way I can find.










share|improve this question




























    up vote
    1
    down vote

    favorite












    I am trying to automate the installation of Ubuntu Server 18.04 Bionic using a custom ISO. No existing solutions I can find seem to work. All I want to accomplish at this point is to automatically select the language. At least then I can verify I'm not going down another dead-end.



    For the ISO, I've started with ubuntu-18.04-live-server-amd64.iso, and I've updated the ISO to have the following files:



    preseed.cfg



    d-i debian-installer/locale string en_US
    d-i debian-installer/language string en


    ks.cfg



    auth
    bootloader
    keyboard us
    lang en_US
    langsupport en_US
    mouse
    part / --onpart=sda1 --grow
    rootpw --disabled
    timezone --utc


    isolinux/lang



    en


    isolinux/langlist



    en


    isolinux/txt.cfg



    default live
    label live
    menu label ^Install Ubuntu Server
    kernel /casper/vmlinuz
    append boot=casper initrd=/casper/initrd.gz auto file=/cdrom/preseed.cfg locale=en_US languagechooser/language-name=English localechooser/supported-locales=en_US.UTF-8 countrychooser/shortlist=US priority=critical ks=cdrom:/ks.cfg ---


    isolinux/isolinux.cfg



    path 
    include menu.cfg
    prompt 0
    timeout 1


    I've verified the "live" block is being started by renaming it and seeing that the system will not even boot then.



    I've tried numerous combinations of different approaches. This is the simplest test case I can come up with that does nothing but attempt to set the language in every documented way I can find.










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am trying to automate the installation of Ubuntu Server 18.04 Bionic using a custom ISO. No existing solutions I can find seem to work. All I want to accomplish at this point is to automatically select the language. At least then I can verify I'm not going down another dead-end.



      For the ISO, I've started with ubuntu-18.04-live-server-amd64.iso, and I've updated the ISO to have the following files:



      preseed.cfg



      d-i debian-installer/locale string en_US
      d-i debian-installer/language string en


      ks.cfg



      auth
      bootloader
      keyboard us
      lang en_US
      langsupport en_US
      mouse
      part / --onpart=sda1 --grow
      rootpw --disabled
      timezone --utc


      isolinux/lang



      en


      isolinux/langlist



      en


      isolinux/txt.cfg



      default live
      label live
      menu label ^Install Ubuntu Server
      kernel /casper/vmlinuz
      append boot=casper initrd=/casper/initrd.gz auto file=/cdrom/preseed.cfg locale=en_US languagechooser/language-name=English localechooser/supported-locales=en_US.UTF-8 countrychooser/shortlist=US priority=critical ks=cdrom:/ks.cfg ---


      isolinux/isolinux.cfg



      path 
      include menu.cfg
      prompt 0
      timeout 1


      I've verified the "live" block is being started by renaming it and seeing that the system will not even boot then.



      I've tried numerous combinations of different approaches. This is the simplest test case I can come up with that does nothing but attempt to set the language in every documented way I can find.










      share|improve this question















      I am trying to automate the installation of Ubuntu Server 18.04 Bionic using a custom ISO. No existing solutions I can find seem to work. All I want to accomplish at this point is to automatically select the language. At least then I can verify I'm not going down another dead-end.



      For the ISO, I've started with ubuntu-18.04-live-server-amd64.iso, and I've updated the ISO to have the following files:



      preseed.cfg



      d-i debian-installer/locale string en_US
      d-i debian-installer/language string en


      ks.cfg



      auth
      bootloader
      keyboard us
      lang en_US
      langsupport en_US
      mouse
      part / --onpart=sda1 --grow
      rootpw --disabled
      timezone --utc


      isolinux/lang



      en


      isolinux/langlist



      en


      isolinux/txt.cfg



      default live
      label live
      menu label ^Install Ubuntu Server
      kernel /casper/vmlinuz
      append boot=casper initrd=/casper/initrd.gz auto file=/cdrom/preseed.cfg locale=en_US languagechooser/language-name=English localechooser/supported-locales=en_US.UTF-8 countrychooser/shortlist=US priority=critical ks=cdrom:/ks.cfg ---


      isolinux/isolinux.cfg



      path 
      include menu.cfg
      prompt 0
      timeout 1


      I've verified the "live" block is being started by renaming it and seeing that the system will not even boot then.



      I've tried numerous combinations of different approaches. This is the simplest test case I can come up with that does nothing but attempt to set the language in every documented way I can find.







      system-installation 18.04 preseed






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 16 at 19:00









      mook765

      3,68321330




      3,68321330










      asked May 16 at 4:13









      Rich Remer

      1286




      1286






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          As far as I know, preseed system only work with Debian Installer used by alternate ISO. It will definitely not working with live ISO.






          share|improve this answer





















          • That's really helpful information, but currently Canonical is not providing any other ISOs.
            – Rich Remer
            May 17 at 0:32










          • OK, I found the other ISOs. I've gotta rework some things so I can test.
            – Rich Remer
            May 17 at 2:23










          • The alternative installer for AMD64 is at: cdimage.ubuntu.com/releases/18.04/release/….
            – Lencho Reyes
            May 19 at 22:57


















          up vote
          0
          down vote













          As @olivierb2 states, only the non-Live DVD will allow you to automate.



          In your isolinux/txt.cfg




          • Live DVD has the kernel @ /casper/vmlinuz

          • The non-Live has the kernel @ /install/vmlinuz


          From your code above, it looks like you are using the Live DVD..



          Download from here http://cdimage.ubuntu.com/releases/18.04/release/ (as long as it matches your CPU and does not contain the word 'Live' in the file name).






          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',
            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%2f1036783%2funattended-bionic-server-install-set-language%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted










            As far as I know, preseed system only work with Debian Installer used by alternate ISO. It will definitely not working with live ISO.






            share|improve this answer





















            • That's really helpful information, but currently Canonical is not providing any other ISOs.
              – Rich Remer
              May 17 at 0:32










            • OK, I found the other ISOs. I've gotta rework some things so I can test.
              – Rich Remer
              May 17 at 2:23










            • The alternative installer for AMD64 is at: cdimage.ubuntu.com/releases/18.04/release/….
              – Lencho Reyes
              May 19 at 22:57















            up vote
            2
            down vote



            accepted










            As far as I know, preseed system only work with Debian Installer used by alternate ISO. It will definitely not working with live ISO.






            share|improve this answer





















            • That's really helpful information, but currently Canonical is not providing any other ISOs.
              – Rich Remer
              May 17 at 0:32










            • OK, I found the other ISOs. I've gotta rework some things so I can test.
              – Rich Remer
              May 17 at 2:23










            • The alternative installer for AMD64 is at: cdimage.ubuntu.com/releases/18.04/release/….
              – Lencho Reyes
              May 19 at 22:57













            up vote
            2
            down vote



            accepted







            up vote
            2
            down vote



            accepted






            As far as I know, preseed system only work with Debian Installer used by alternate ISO. It will definitely not working with live ISO.






            share|improve this answer












            As far as I know, preseed system only work with Debian Installer used by alternate ISO. It will definitely not working with live ISO.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 16 at 18:51









            olivierb2

            1,57468




            1,57468












            • That's really helpful information, but currently Canonical is not providing any other ISOs.
              – Rich Remer
              May 17 at 0:32










            • OK, I found the other ISOs. I've gotta rework some things so I can test.
              – Rich Remer
              May 17 at 2:23










            • The alternative installer for AMD64 is at: cdimage.ubuntu.com/releases/18.04/release/….
              – Lencho Reyes
              May 19 at 22:57


















            • That's really helpful information, but currently Canonical is not providing any other ISOs.
              – Rich Remer
              May 17 at 0:32










            • OK, I found the other ISOs. I've gotta rework some things so I can test.
              – Rich Remer
              May 17 at 2:23










            • The alternative installer for AMD64 is at: cdimage.ubuntu.com/releases/18.04/release/….
              – Lencho Reyes
              May 19 at 22:57
















            That's really helpful information, but currently Canonical is not providing any other ISOs.
            – Rich Remer
            May 17 at 0:32




            That's really helpful information, but currently Canonical is not providing any other ISOs.
            – Rich Remer
            May 17 at 0:32












            OK, I found the other ISOs. I've gotta rework some things so I can test.
            – Rich Remer
            May 17 at 2:23




            OK, I found the other ISOs. I've gotta rework some things so I can test.
            – Rich Remer
            May 17 at 2:23












            The alternative installer for AMD64 is at: cdimage.ubuntu.com/releases/18.04/release/….
            – Lencho Reyes
            May 19 at 22:57




            The alternative installer for AMD64 is at: cdimage.ubuntu.com/releases/18.04/release/….
            – Lencho Reyes
            May 19 at 22:57












            up vote
            0
            down vote













            As @olivierb2 states, only the non-Live DVD will allow you to automate.



            In your isolinux/txt.cfg




            • Live DVD has the kernel @ /casper/vmlinuz

            • The non-Live has the kernel @ /install/vmlinuz


            From your code above, it looks like you are using the Live DVD..



            Download from here http://cdimage.ubuntu.com/releases/18.04/release/ (as long as it matches your CPU and does not contain the word 'Live' in the file name).






            share|improve this answer

























              up vote
              0
              down vote













              As @olivierb2 states, only the non-Live DVD will allow you to automate.



              In your isolinux/txt.cfg




              • Live DVD has the kernel @ /casper/vmlinuz

              • The non-Live has the kernel @ /install/vmlinuz


              From your code above, it looks like you are using the Live DVD..



              Download from here http://cdimage.ubuntu.com/releases/18.04/release/ (as long as it matches your CPU and does not contain the word 'Live' in the file name).






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                As @olivierb2 states, only the non-Live DVD will allow you to automate.



                In your isolinux/txt.cfg




                • Live DVD has the kernel @ /casper/vmlinuz

                • The non-Live has the kernel @ /install/vmlinuz


                From your code above, it looks like you are using the Live DVD..



                Download from here http://cdimage.ubuntu.com/releases/18.04/release/ (as long as it matches your CPU and does not contain the word 'Live' in the file name).






                share|improve this answer












                As @olivierb2 states, only the non-Live DVD will allow you to automate.



                In your isolinux/txt.cfg




                • Live DVD has the kernel @ /casper/vmlinuz

                • The non-Live has the kernel @ /install/vmlinuz


                From your code above, it looks like you are using the Live DVD..



                Download from here http://cdimage.ubuntu.com/releases/18.04/release/ (as long as it matches your CPU and does not contain the word 'Live' in the file name).







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 27 at 11:29









                mohclips

                1




                1






























                    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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2f1036783%2funattended-bionic-server-install-set-language%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?

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

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents