On Sat, 20 Dec 2003, Simon Haynes wrote:

> Now I'm trying to tweak the Firebird settings. By default, it has a 50
> meg web cache which I'd like to trim to 0, and I also need to set the
> proxy and home page (and font sizes, and... etc)
>
> Unfortunately it creates a settings folder using a random string of
> characters, so duplicating the 'ws000' setup user's folder doesn't
> work. I've tried to decypher the user.js settings, but is there a way
> to preset the Firebird options?


I use the mk_homedir PAM module. 

Then I set up /etc/skel carefully. Sometimes /etc/skel is not enough,
where config files must have the username patched in or something.

I create uppercase versions of the filenames in skel, and then run the
appended script (placed in /etc/X11/xinit/xinitrc.d/* ) that looks
for these files and edits them appropriately on user login.

Might seem a little complicated, but I have several installations
and thousands of users.

/etc/skel has these files :-

skel/.bash_logout
skel/.bash_profile
skel/.bashrc
skel/.galeon/bookmarks.xbel
skel/.galeon/mozilla/galeon/PREFS.JS
skel/.gconf/apps/galeon/Advanced/Network/%GCONF.XML
skel/.gconf/apps/galeon/Browsing/General/%GCONF.XML
skel/.gnome2/gdm
skel/.mozilla/default/60et3lk5.slt/bookmarks.html
skel/.mozilla/default/60et3lk5.slt/PREFS.JS
skel/.netscape/PREFERENCES.JS
skel/.phoenix/default/m9p125rr.slt/PREFS.JS

Mostly this sets up a proxy, and the home page, for galeon/mozilla/firebird.

Cheers,   Andy!

        http://www.wizzy.org.za/


#######################################################3
# /etc/profile.d/wizzy - startup customisations

WIZZYFILES="$HOME/.gconf/apps/galeon/Advanced/Network/%gconf.xml 
$HOME/.netscape/preferences.js $HOME/.gconf/apps/galeon/Browsing/General/%gconf.xml 
$HOME/.galeon/mozilla/galeon/prefs.js $HOME/.mozilla/default/60et3lk5.slt/prefs.js 
$HOME/.phoenix/default/m9p125rr.slt/prefs.js"
WIZZY_HOSTNAME=$(hostname | sed -e 's/\..*//')
for f in $WIZZYFILES ; do
    BASENAME=$(basename $f)
    FILEPATH=$(echo $f | sed -e s:/[^/]*$::)
    SRCFILE=$FILEPATH/$(echo $BASENAME | tr [a-z] [A-Z])
    if [ -f $SRCFILE ]
    then
        sed -e s/_WIZZY_USER_/$USER/g \
           -e s/_WIZZY_UID_/$UID/g \
           -e s/_WIZZY_HOSTNAME_/$WIZZY_HOSTNAME/g < $SRCFILE > $f
        rm $SRCFILE
    fi
done
rm -r $HOME/.gconf*/*lock




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to