Regional Settings especialy Keyboards

Asked by Didier Lamard

Hello,

How can I set the regional settings :

Region : Switzerland
Language : French (for Switzerland, here may be the French/France could be the option, I don't remembre right now)
Keyboard : Swiss French

To the created distribution so I can Have a bootable USB disk with the right regional settings for me ?

Thanks for help & Time

Didier L.

Question information

Language:
English Edit question
Status:
Solved
For:
Cubic Edit question
Assignee:
No assignee Edit question
Solved by:
Cubic PPA
Solved:
Last query:
Last reply:
Revision history for this message
Cubic PPA (cubic-wizard) said :
#1

The locale code for French, Switzerland is fr_CH.

KEYBOARD
-----------------

(1)
Create a file called "90_ubuntu-settings.gschema.override" and save it somewhere on your host computer.

(2)
In this file, enter the following text:

[org.gnome.desktop.input-sources]
sources = [('xkb', 'ch+fr'), ('xkb', 'us'), ('xkb', 'au'), ('xkb', 'cm'), ('xkb', 'gb')]

(3)
Launch Cubic, and navigate to the chroot terminal page.

(4)
Then change directory your current directoy:

$ cd /usr/share/glib-2.0/schemas/

(5)
Drag the new file "90_ubuntu-settings.gschema.override" from your host computer onto the chroot terminal in Cubic.
Click "Copy" to copy the file into the current directory, "/usr/share/glib-2.0/schemas/".

(6)
When you generate the new ISO, your keyboard will will be set to French, Switzerland.
This will be the default keyboard when you boot the live ISO and when you install the ISO to a new computer.

Note:
You can edit the other keyboard values in this list to add or remove other keyboards...
sources = [('xkb', 'ch+fr'), ('xkb', 'us'), ('xkb', 'au'), ('xkb', 'cm'), ('xkb', 'gb')]

OTHER LOCALE SETTINGS
----------------------------------------
I'll add additional posts regarding other settings.

Revision history for this message
Best Cubic PPA (cubic-wizard) said :
#2

The newest version of Cubic will support preseed files, and this will allow you to do exactly what you want.

You can get this version right now from the *Development* branch...

    # Remove Cubic
    # Your Cubic project will not be deleted, so you will not lose your custmizations.
    $ sudo apt autoremove --purge cubic

    # Remove the *Release* repository
    $ sudo apt-add-repository --remove ppa:cubic-wizard/release

    # Add the *Development* repository
    $ sudo add-apt-repository ppa:cubic-wizard/development

    # Install the *Development* version of Cubic
    $ sudo apt update
    $ sudo apt install cubic

Instructions...

1. Launch Cubic and open your existing project (or create a new one).
2. Navigate to the manage options page, and you will see two new tabs.
3. Click on this tab called "Preseed Files."
4. Then click on "/preseed/ubuntu.seed" in the panel on the left.
5. Paste the following text at the end of this file:

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

    # Set language, country and locale.
    d-i debian-installer/language string fr
    d-i debian-installer/country string CH
    d-i debian-installer/locale string fr_CH.UTF-8

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

    # Set keyboard layout.
    d-i keyboard-configuration/xkb-keymap select fr

    # Set time zone and region.
    d-i time/zone string Europe/Zurich
    d-i debian-installer/region string fr_CH.UTF-8

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

6. Then click the "Generate" button in the headerbar.

(One minor issue is that I didn't know how to set the number formats in the preseed file. If you find the answer, please add it to this question).

Note: With this solution, you do NOT need to use the "90_ubuntu-settings.gschema.override" file as described in the previous post. But remember, you can always add other customizations, like theme, font, background wallpaper to this file, if you want.

Revision history for this message
Didier Lamard (didierlamard) said :
#3

Thanks Cubic PPA, that solved my question.

Revision history for this message
Didier Lamard (didierlamard) said :
#4

Thank you a lot for your commitment.

Revision history for this message
Cubic PPA (cubic-wizard) said :
#5

This feature is now available in the Release branch:

    # Remove Cubic
    # Your Cubic project will not be deleted, so you will not lose your custmizations.
    $ sudo apt autoremove --purge cubic

    # Remove the *Development* repository
    $ sudo apt-add-repository --remove ppa:cubic-wizard/development

    # Add the *Release* repository
    $ sudo add-apt-repository ppa:cubic-wizard/release

    # Install the *Release* version of Cubic
    $ sudo apt update
    $ sudo apt install cubic

    # Check your version
    $ dpkg -l cubic
    # cubic - 2019.03-47-release