Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

[org.gnome.Empathy.conversation]
theme="adium"
theme-variant="Normal"
adium-path="/usr/share/adium/message-styles/ubuntu.AdiumMessageStyle"

[org.gnome.desktop.interface]
gtk-theme="Ambiance"
icon-theme="ubuntu-mono-dark"
cursor-theme="DMZ-White"
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

 
discard

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.