Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create an unattended installation cd of Ubuntu 12.04 with several customizations. I've written a kickstart file to do so, and it works perfectly. (I know that preseed technology exists, but incomprehensibly it fails whenever kickstart works like a charm).

However, when I want to execute (in %post section) the "gsettings" command to customize my desktop, anything happens. I've read in forums that "gsettings" only works when there's a Gnome session initiated (Unity is only one incarnation), but this it's a mess: I only want to have a kickstart file to configure parameters of Gnome in a very fast way.

Is there a manner of achieve this? Thanks!!

share|improve this question

Create a file /usr/share/glib-2.0/schemas/99_my_custom_settings.gschema.override with a content like


font-name="Ubuntu 11"
monospace-font-name="Ubuntu Mono 13"

for whatever settings you want to change. Then run

glib-compile-schemas /usr/share/glib-2.0/schemas/

to merge your changes with the GSettings data base.

share|improve this answer
Oooohh!!! Thanks!!! Thanks!!!! – Osqui Aug 15 '12 at 23:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.