Giter Club home page Giter Club logo

Comments (1)

PJ-Singh-001 avatar PJ-Singh-001 commented on July 17, 2024

You are correct. You would edit the preseed file in order to:

  • Configure the keyboard
  • Configure the time zone
  • Configure the location
  • Configure the new user, password, and groups

Reference Automating the installation using preseeding for more information.

Here is an example.

  1. Install the desired language packages.

    (You will find these are already installed in the Live ISO).

    apt install language-pack-pt language-pack-pt-base language-pack-gnome-pt language-pack-gnome-pt-base
    
  2. Tell the Ubiquity installer to not remove your language packages.

    Navigate to the Packages page.

    Click (anywhere) on the list, and begin typing the word "language" to search for packages that begin with this word.

    Uncheck the following four packages:

    • language-pack-pt
    • language-pack-pt-base
    • language-pack-gnome-pt
    • language-pack-gnome-pt-base

    This will ensure that the installer does not remove your language packages. This is not strictly necessary, since we will select your language and locale in the preseed below (step 5), but it is a good measure nevertheless.

    You will also notice that the English language packages are flagged (check-marked) to be automatically removed by the installer after installation of your customized OS (if English is not selected as your default language).

  3. Edit the preseed configuration.

    Navigate to the Options page, and select the Preseed tab.

    Click on /preseed/ubuntu.seed in the left pane.

  4. Configure the default keyboard.

    Add the following to the /preseed/ubuntu.seed file:

    # Disable automatic (interactive) keymap detection.
    d-i console-setup/ask_detect boolean false
    
    # Keyboard selection.
    d-i keyboard-configuration/xkb-keymap select us
    
    # Select a variant of the selected layout.
    d-i keyboard-configuration/xkb-keymap select us(dvorak)
    
    # d-i keyboard-configuration/toggle select No toggling
    
  5. Configure the default language and locale

    For this example, note that "pt" = Portuguese, and "BR" = Brazil.

    Add the following to the /preseed/ubuntu.seed file:

    # Set language, country and locale.
    d-i debian-installer/language string pt
    d-i debian-installer/country string BR
    d-i debian-installer/locale string pt_BR.UTF-8
    
    # Specify additional locales to be generated.
    d-i localechooser/supported-locales multiselect pt_BR.UTF-8
    
    # Set keyboard layout.
    d-i keyboard-configuration/xkb-keymap select pt
    
    # Set time zone and region.
    d-i time/zone string America/Belem
    d-i debian-installer/region string pt_BR.UTF-8
    

    Optionally, if you want multiple locales generated, separate them with commas as show here:

    For this example, note that "fr" = French, and "CH" = Switzerland.

    Add the following to the /preseed/ubuntu.seed file:

    # Specify additional locales to be generated.
    d-i localechooser/supported-locales multiselect pt_BR.UTF-8, fr_CH.UTF-8, en_US.UTF-8
    

    Here are some references if you are configuring different languages or locales:

  6. Configure the user, password, and group information.

    Add the following to the /preseed/ubuntu.seed file:

    # Create a normal user account.
    d-i passwd/user-fullname string Thiago Boeira
    d-i passwd/username string ubuntu
    
    # User's password in clear text.
    d-i passwd/user-password password insecure
    d-i passwd/user-password-again password insecure
    
    # Override weak password warning.
    d-i user-setup/allow-password-weak boolean true
    
    # Add user to specific groups.
    # d-i passwd/user-default-groups string audio cdrom video
    d-i passwd/user-default-groups string adm cdrom sudo dip plugdev lpadmin lxd sambashare
    

from cubic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.