[schaefer at alphanet.ch: Simple system-wide autoconfiguration for GNOME 3]

Marc SCHAEFER alphanet-linux-fai at alphanet.ch
Fri Jun 20 21:27:38 CEST 2014


On Fri, Jun 20, 2014 at 08:44:50PM +0200, Marc SCHAEFER wrote:
> Yes, I will do that, at the first user's login using a custom auto-deleted
> .xinitrc.  It looks the simpler path.  GNOME 3 seems to be intermixed

The following seems to work (I can't test it just now, I have tested it
without FAI). Apparently, gsettings starts the appropriate daemons at
the right time.

Thank you for the efficient help!

---scripts/PCLABO/20-gnome3-desktop-config---
#! /bin/bash

error=0 ; trap "error=$((error|1))" ERR

fcopy -m root,root,0755 /usr/local/etc/gnome3-user-settings
fcopy -m root,root,0755 /etc/skel/.xsession

exit $error

---files/usr/local/etc/gnome3-user-settings/PCLABO---
#! /bin/bash

gsettings set org.gnome.nautilus.desktop volumes-visible true
gsettings set org.gnome.desktop.background show-desktop-icons true
gsettings set org.gnome.desktop.background picture-uri ''
gsettings set org.gnome.desktop.background primary-color '#000000'
gsettings set org.gnome.desktop.background secondary-color '#000000'
gsettings set org.gnome.desktop.wm.preferences focus-mode 'sloppy'
gsettings set org.gnome.desktop.wm.preferences raise-on-click false
gsettings set org.gnome.shell.overrides button-layout :minimize,maximize,close

---files/etc/skel/.xsession/PCLABO---
#! /bin/bash

/usr/local/etc/gnome3-user-settings

rm -f $0

exec x-session-manager



More information about the linux-fai mailing list