You need a gsettings override file.
Here is a the technique for setting gsettings values. You may need to add more keys and values depending on your needs (based on your original question). I've only shown two keys as an example...
Open a new empty document in gedit (or other text editor) on your host system.
Add the following contents to your file:
[org.gnome.desktop.screensaver]
lock-enabled = false
[org.gnome.settings-daemon.plugins.power]
idle-dim = false
Save the file with the following name:
90_ubuntu-settings.gschema.override
In Cubic's terminal page, type the following command and press the enter key.
cd /usr/share/glib-2.0/schemas/
Open Nautilus (or other file browser) on your host system, and naviage to the directory where you saved the file 90_ubuntu-settings.gschema.override
.
Drag the file onto Cubic's terminal window.
Click the Copy button in Cubic.
The file will be copied to the /usr/share/glib-2.0/schemas/
directory inside Cubic.
Then type the following command inside Cubic's terminal window.
glib-compile-schemas /usr/share/glib-2.0/schemas/
Finish making your other customizations, and generate your new Live ISO using Cubic.
Whenever you bootup or install your OS from the new Live ISO, Ubuntu will read default gsettings values from 90_ubuntu-settings.gschema.override
.
If you add other settings to 90_ubuntu-settings.gschema.override
, remember to execute the glib-compile-schemas
command each time.
As you may expect, the user can always personalize your defaults using tools like Gnome Tweaks, Dconf Editor or the gsettings
command.